/* ============================================
   CYBERPORTFOLIO - Mohannad Hassounah
   Complete Dark Cyberpunk Theme
   ============================================ */

/* ====== CSS VARIABLES ====== */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #0f0f1a;
    --bg-card: #12121e;
    --bg-card-hover: #1a1a2e;
    --border-color: #1e1e3a;
    --border-glow: #2a2a5a;
    
    --accent-primary: #6c5ce7;
    --accent-secondary: #00d4ff;
    --accent-tertiary: #a855f7;
    --accent-glow: rgba(108, 92, 231, 0.3);
    --accent-glow-2: rgba(0, 212, 255, 0.3);
    
    --text-primary: #e8e8f0;
    --text-secondary: #8888a0;
    --text-muted: #555570;
    
    --gradient-1: linear-gradient(135deg, #6c5ce7, #a855f7);
    --gradient-2: linear-gradient(135deg, #6c5ce7, #00d4ff);
    --gradient-3: linear-gradient(135deg, #00d4ff, #a855f7);
    
    --font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-mono: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
    
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(108, 92, 231, 0.15);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ====== LIGHT THEME ====== */
[data-theme="light"] {
    --bg-primary: #f0f0f8;
    --bg-secondary: #e8e8f2;
    --bg-card: #ffffff;
    --bg-card-hover: #f5f5ff;
    --border-color: #d0d0e0;
    --border-glow: #b0b0d0;
    
    --text-primary: #1a1a2e;
    --text-secondary: #555570;
    --text-muted: #8888a0;
    
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 30px rgba(108, 92, 231, 0.1);
}

/* ====== RESET & BASE ====== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) var(--bg-secondary);
}

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    transition: background 0.3s ease, color 0.3s ease;
}

::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-tertiary);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ====== PARTICLE CANVAS ====== */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

/* ====== HOLOGRAPHIC ORB ====== */
.holographic-orb {
    position: fixed;
    top: 20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.08), transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
    pointer-events: none;
    animation: orbFloat 8s ease-in-out infinite;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-30px, -30px) scale(1.05); }
    66% { transform: translate(20px, 20px) scale(0.95); }
}

/* ====== SCROLL PROGRESS ====== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient-2);
    z-index: 1000;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px var(--accent-glow);
}

/* ====== NAVIGATION ====== */
.cyber-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 24px;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.cyber-nav.scrolled {
    background: rgba(10, 10, 15, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .cyber-nav {
    background: rgba(240, 240, 248, 0.8);
}
[data-theme="light"] .cyber-nav.scrolled {
    background: rgba(240, 240, 248, 0.95);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    box-shadow: 0 0 20px var(--accent-glow);
    animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { box-shadow: 0 0 20px var(--accent-glow); }
    50% { box-shadow: 0 0 40px var(--accent-glow); }
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--text-primary);
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--accent-secondary);
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
}

.nav-link i {
    font-size: 14px;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(108, 92, 231, 0.1);
}

.nav-link.active {
    color: var(--accent-secondary);
    background: rgba(0, 212, 255, 0.1);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: var(--accent-secondary);
    border-radius: 1px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    color: var(--accent-secondary);
    border-color: var(--accent-secondary);
    background: rgba(0, 212, 255, 0.05);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
}

/* ====== HERO SECTION ====== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 24px 60px;
    overflow: hidden;
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(108, 92, 231, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(108, 92, 231, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(108, 92, 231, 0.1);
    border: 1px solid rgba(108, 92, 231, 0.2);
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-secondary);
    margin-bottom: 32px;
    animation: fadeInUp 0.6s ease;
}

.hero-badge i {
    font-size: 12px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-greeting {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--accent-secondary);
    margin-bottom: 16px;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-title {
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.typing-line {
    display: block;
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary);
}

.hero-gradient-text {
    display: block;
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 900;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    position: relative;
}

.hero-gradient-text::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-2);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    animation: lineExpand 1s ease 0.8s forwards;
}

@keyframes lineExpand {
    to { transform: scaleX(1); }
}

.hero-description {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 520px;
    line-height: 1.8;
    margin-bottom: 32px;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.highlight-text {
    color: var(--accent-secondary);
    font-weight: 700;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.stat-item {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px;
}

.stat-number {
    font-size: 36px;
    font-weight: 900;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-plus, .stat-percent {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-primary);
    -webkit-text-fill-color: var(--accent-primary);
}

.stat-label {
    display: block;
    width: 100%;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

.hero-actions {
    display: flex;
    gap: 16px;
    animation: fadeInUp 0.6s ease 0.5s both;
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-primary i {
    transition: transform 0.3s ease;
}

.btn-primary:hover i {
    transform: translateX(4px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    background: rgba(108, 92, 231, 0.05);
    transform: translateY(-2px);
}

/* ====== HERO VISUAL ====== */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.avatar-container {
    position: relative;
    width: 320px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(108, 92, 231, 0.2);
    animation: ringRotate 10s linear infinite;
}

.avatar-ring.ring-2 {
    inset: 20px;
    border-color: rgba(0, 212, 255, 0.15);
    animation-duration: 8s;
    animation-direction: reverse;
}

.avatar-ring.ring-3 {
    inset: 40px;
    border-color: rgba(168, 85, 247, 0.1);
    animation-duration: 6s;
}

@keyframes ringRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.avatar-icon {
    width: 160px;
    height: 160px;
    background: var(--bg-card);
    border: 2px solid var(--border-glow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: var(--accent-secondary);
    box-shadow: 0 0 40px var(--accent-glow-2);
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.avatar-icon:hover {
    box-shadow: 0 0 60px var(--accent-glow-2);
    transform: scale(1.05);
}

.avatar-status {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    z-index: 2;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.floating-cards {
    position: absolute;
    inset: -40px;
    pointer-events: none;
}

.float-card {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--accent-primary);
    box-shadow: var(--shadow-md);
    animation: floatCard 6s ease-in-out infinite;
}

.float-card.card-1 {
    top: 0;
    left: 10%;
    animation-delay: 0s;
    color: var(--accent-primary);
}
.float-card.card-2 {
    top: 20%;
    right: 0;
    animation-delay: 1.5s;
    color: var(--accent-secondary);
}
.float-card.card-3 {
    bottom: 10%;
    left: 0;
    animation-delay: 3s;
    color: var(--accent-tertiary);
}
.float-card.card-4 {
    bottom: 0;
    right: 15%;
    animation-delay: 4.5s;
    color: #22c55e;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(5deg); }
    50% { transform: translateY(-5px) rotate(-3deg); }
    75% { transform: translateY(-20px) rotate(2deg); }
}

/* ====== SCROLL INDICATOR ====== */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 60px;
    animation: fadeInUp 0.6s ease 0.8s both;
}

.scroll-indicator span {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-wheel {
    width: 3px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 2px;
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(12px); opacity: 0; }
}

/* ====== SECTION COMMON ====== */
.section {
    position: relative;
    padding: 100px 24px;
    z-index: 1;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 60px;
}

.section-number {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-secondary);
    opacity: 0.6;
}

.section-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.section-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border-color), transparent);
}

/* ====== ABOUT SECTION ====== */
.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.about-card:hover {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
}

.card-glow {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.05), transparent);
    border-radius: 50%;
    pointer-events: none;
}

.main-card {
    grid-row: span 2;
}

.card-content {
    position: relative;
    z-index: 1;
}

.about-badge {
    width: 48px;
    height: 48px;
    background: rgba(108, 92, 231, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--accent-primary);
    margin-bottom: 20px;
}

.about-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
}

.about-text strong {
    color: var(--accent-secondary);
}

.about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.about-tag {
    padding: 6px 14px;
    background: rgba(108, 92, 231, 0.08);
    border: 1px solid rgba(108, 92, 231, 0.15);
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-primary);
    transition: var(--transition);
}

.about-tag:hover {
    background: rgba(108, 92, 231, 0.15);
    transform: translateY(-1px);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.card-header i {
    font-size: 20px;
    color: var(--accent-primary);
}

.card-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.credentials-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.credential-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.credential-item:hover {
    background: rgba(108, 92, 231, 0.05);
}

.credential-icon {
    width: 36px;
    height: 36px;
    background: rgba(108, 92, 231, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.credential-info {
    display: flex;
    flex-direction: column;
}

.credential-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.credential-org {
    font-size: 11px;
    color: var(--text-muted);
}

.focus-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.focus-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    cursor: default;
}

.focus-item:hover {
    background: rgba(108, 92, 231, 0.08);
    transform: translateY(-2px);
}

.focus-item i {
    font-size: 24px;
    color: var(--accent-primary);
}

.focus-item span {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
}

/* ====== SKILLS SECTION ====== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.skill-category {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: var(--transition);
}

.skill-category:hover {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

.skill-category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.skill-category-header i {
    font-size: 20px;
    color: var(--accent-primary);
}

.skill-category-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.skill-bars {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.skill-bar-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.skill-bar-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

.skill-bar-info span:first-child {
    font-weight: 600;
    color: var(--text-secondary);
}

.skill-percent {
    font-weight: 700;
    color: var(--accent-secondary);
    font-family: var(--font-mono);
}

.skill-bar-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    background: var(--gradient-2);
    border-radius: 3px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px var(--accent-glow-2);
}

.skill-bar-fill.animated {
    /* width set by JS */
}

/* ====== SKILLS CLOUD ====== */
.skills-cloud {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.cloud-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.cloud-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cloud-tag {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    cursor: default;
}

.cloud-tag:hover {
    background: rgba(108, 92, 231, 0.1);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-2px);
}

/* ====== TIMELINE ====== */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 32px;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.6s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-marker {
    position: absolute;
    left: -40px;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.marker-dot {
    width: 16px;
    height: 16px;
    background: var(--accent-primary);
    border-radius: 50%;
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 0 3px var(--accent-primary);
    z-index: 1;
    transition: var(--transition);
}

.timeline-item.active .marker-dot {
    background: var(--accent-secondary);
    box-shadow: 0 0 0 3px var(--accent-secondary), 0 0 20px var(--accent-glow-2);
}

.marker-line {
    width: 2px;
    flex: 1;
    background: var(--border-color);
    min-height: 20px;
}

.timeline-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: var(--transition);
}

.timeline-card:hover {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
    transform: translateX(4px);
}

.timeline-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(108, 92, 231, 0.1);
    border: 1px solid rgba(108, 92, 231, 0.2);
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-secondary);
    margin-bottom: 16px;
}

.timeline-date i {
    font-size: 12px;
}

.timeline-role {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.timeline-company {
    font-size: 13px;
    color: var(--accent-primary);
    font-weight: 600;
    margin-bottom: 16px;
}

.timeline-company span {
    color: var(--text-muted);
    font-weight: 400;
}

.timeline-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.timeline-details li {
    font-size: 13px;
    color: var(--text-secondary);
    padding-left: 16px;
    position: relative;
    line-height: 1.6;
}

.timeline-details li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.timeline-subsection {
    margin-top: 16px;
    margin-bottom: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent-primary);
}

.timeline-subsection:last-of-type {
    margin-bottom: 20px;
}

.subsection-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.subsection-title i {
    font-size: 14px;
    color: var(--accent-primary);
}

.timeline-subsection .timeline-details {
    margin-bottom: 0;
}

.timeline-subsection .timeline-details li {
    font-size: 12px;
    padding-left: 14px;
    margin-bottom: 4px;
}

.timeline-tags span {
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
}

/* ====== CERTIFICATIONS ====== */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.cert-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.cert-card:hover {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.cert-icon {
    width: 44px;
    height: 44px;
    background: rgba(108, 92, 231, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.cert-info {
    flex: 1;
    min-width: 0;
}

.cert-info h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.cert-info p {
    font-size: 11px;
    color: var(--text-muted);
}

.cert-verify {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 14px;
    transition: var(--transition);
    flex-shrink: 0;
}

.cert-verify:hover {
    background: rgba(108, 92, 231, 0.1);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* ====== PROJECTS ====== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

.project-card-glow {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.05), transparent);
    border-radius: 50%;
    pointer-events: none;
}

.project-badge {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(108, 92, 231, 0.15);
    border: 1px solid rgba(108, 92, 231, 0.25);
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    color: var(--accent-primary);
    letter-spacing: 1px;
    margin-bottom: 16px;
    align-self: flex-start;
}

.project-badge.local-llm {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.2);
    color: var(--accent-secondary);
}

.project-badge.live {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.project-badge.advanced {
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.2);
    color: var(--accent-tertiary);
}

.project-badge.education {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.project-badge.agent {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.2);
    color: #ffd700;
}

.project-badge.os {
    background: rgba(0, 255, 127, 0.1);
    border-color: rgba(0, 255, 127, 0.2);
    color: #00ff7f;
}

.project-badge.done {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.project-icon {
    width: 44px;
    height: 44px;
    background: rgba(108, 92, 231, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--accent-primary);
    margin-bottom: 16px;
}

.project-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.project-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.project-tech span {
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
}

.project-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-secondary);
}

.project-status i {
    font-size: 14px;
}

.project-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: rgba(108, 92, 231, 0.08);
    border: 1px solid rgba(108, 92, 231, 0.15);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-primary);
    transition: var(--transition);
}

.project-link:hover {
    background: rgba(108, 92, 231, 0.15);
}

.project-link i {
    transition: transform 0.3s ease;
}

.project-link:hover i {
    transform: translateX(3px);
}

.project-progress {
    display: flex;
    align-items: center;
    gap: 12px;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-2);
    border-radius: 3px;
    box-shadow: 0 0 10px var(--accent-glow-2);
}

.project-progress span {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-secondary);
    white-space: nowrap;
}

/* ====== CONTACT ====== */
.contact-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.contact-card:hover {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
}

.contact-glow {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.05), transparent);
    border-radius: 50%;
    pointer-events: none;
}

.contact-heading {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.contact-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.contact-method:hover {
    background: rgba(108, 92, 231, 0.05);
    border-color: var(--accent-primary);
    transform: translateX(4px);
}

.method-icon {
    width: 44px;
    height: 44px;
    background: rgba(108, 92, 231, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.method-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.method-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.method-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.method-arrow {
    color: var(--text-muted);
    font-size: 14px;
    transition: var(--transition);
}

.contact-method:hover .method-arrow {
    color: var(--accent-primary);
    transform: translateX(3px);
}

.quick-contact-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.quick-contact-header i {
    font-size: 20px;
    color: var(--accent-primary);
}

.quick-contact-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 13px;
    font-family: var(--font-main);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-primary);
    background: rgba(108, 92, 231, 0.05);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-focus {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-2);
    border-radius: 1px;
    transition: width 0.3s ease;
}

.form-group input:focus ~ .form-focus,
.form-group textarea:focus ~ .form-focus {
    width: 100%;
}

.form-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    background: var(--gradient-1);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 20px var(--accent-glow);
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.form-submit i {
    transition: transform 0.3s ease;
}

.form-submit:hover i {
    transform: translateX(3px);
}

/* ====== FOOTER ====== */
.cyber-footer {
    position: relative;
    z-index: 1;
    padding: 48px 24px 24px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--text-primary);
}

.footer-logo i {
    color: var(--accent-primary);
    font-size: 18px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-secondary);
}

.footer-divider {
    height: 1px;
    background: var(--border-color);
    margin-bottom: 24px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-bottom p {
    font-size: 11px;
    color: var(--text-muted);
}

.footer-tags {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-tags span {
    font-size: 11px;
    color: var(--text-muted);
}

.footer-tags .dot {
    color: var(--border-color);
}

/* ====== BACK TO TOP ====== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--gradient-1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    z-index: 50;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: 0 4px 20px var(--accent-glow);
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

/* ====== ANIMATIONS ====== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .main-card {
        grid-row: auto;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        padding: 16px;
        gap: 4px;
        transform: translateY(-100%);
        opacity: 0;
        transition: var(--transition);
        pointer-events: none;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .nav-link {
        width: 100%;
        padding: 12px 16px;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .mobile-overlay.active {
        display: block;
    }
    
    .hero-section {
        padding: 80px 16px 40px;
    }
    
    .hero-stats {
        gap: 16px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .avatar-container {
        width: 240px;
        height: 240px;
    }
    
    .avatar-icon {
        width: 120px;
        height: 120px;
        font-size: 44px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 60px 16px;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .timeline {
        padding-left: 32px;
    }
    
    .timeline-marker {
        left: -32px;
    }
    
    .footer-top {
        flex-direction: column;
        gap: 16px;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .floating-cards {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .hero-stats {
        flex-wrap: wrap;
    }
    
    .stat-divider {
        display: none;
    }
    
    .about-card {
        padding: 24px;
    }
    
    .focus-grid {
        grid-template-columns: 1fr 1fr;
    }
}