/* =============================================
   CYBERPUNK SECURITY PORTFOLIO - MAIN STYLES
   Created by: Reza Nemati
   Theme: Dark Cyberpunk with Neon Effects
   ============================================= */

/* ===== CSS VARIABLES ===== */
:root {
    /* Colors */
    --bg-primary: #0a0c0f;
    --bg-secondary: #12151a;
    --bg-tertiary: #1a1f28;

    --neon-green: #00ff41;
    --neon-blue: #00f0ff;
    --neon-purple: #b300ff;
    --neon-pink: #ff00ff;
    --neon-red: #ff0055;

    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --text-muted: #707070;

    --border-color: rgba(0, 255, 65, 0.2);
    --glow-color: rgba(0, 255, 65, 0.5);

    /* Typography */
    --font-primary: 'Cairo', 'Orbitron', sans-serif;
    --font-mono: 'Fira Code', monospace;
    --font-display: 'Orbitron', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Effects */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    --blur-sm: 10px;
    --blur-md: 20px;
    --blur-lg: 30px;
}

/* ===== RESET & BASE STYLES ===== */
* {
    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.6;
    overflow-x: hidden;
    direction: rtl;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--neon-green), var(--neon-blue));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--neon-blue), var(--neon-purple));
}

/* Selection */
::selection {
    background: var(--neon-green);
    color: var(--bg-primary);
}

/* ===== MATRIX BACKGROUND ===== */
.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
}

/* ===== PARTICLE CANVAS ===== */
.particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ===== CYBER GRID ===== */
.cyber-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 255, 65, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 65, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 12, 15, 0.9);
    backdrop-filter: blur(var(--blur-md));
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(10, 12, 15, 0.95);
    box-shadow: 0 10px 40px rgba(0, 255, 65, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo-text {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--neon-green);
    text-shadow: 0 0 20px var(--glow-color);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.logo-text:hover {
    text-shadow: 0 0 30px var(--neon-green);
}

.nav-menu {
    display: flex;
    gap: 0.9rem;
    list-style: none;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    position: relative;
    transition: all var(--transition-fast);
}

.nav-label {
    display: inline-flex;
    align-items: center;
}

.nav-icon {
    display: none;
    width: 1.15rem;
    height: 1.15rem;
    color: var(--neon-blue);
}

.nav-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 1.8;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-green), var(--neon-blue));
    transition: width var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
    color: var(--neon-green);
    text-shadow: 0 0 10px var(--glow-color);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--neon-green);
    transition: all var(--transition-normal);
    box-shadow: 0 0 10px var(--glow-color);
}

.mobile-menu-close,
.mobile-menu-backdrop {
    display: none;
}

/* ===== BUTTONS ===== */
.hire-btn {
    display: none;
}

.btn-neon {
    padding: 0.8rem 2rem;
    background: transparent;
    border: 2px solid var(--neon-green);
    color: var(--neon-green);
    font-family: var(--font-primary);
    font-weight: 600;
    text-decoration: none;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-neon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--neon-green);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.btn-neon:hover {
    color: var(--bg-primary);
    box-shadow: 0 0 30px var(--glow-color);
    transform: translateY(-2px);
}

.btn-neon:hover::before {
    width: 300px;
    height: 300px;
}

/* ===== HERO SECTION ===== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8rem 0 4rem;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-greeting {

    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
}

.terminal-prompt {
    color: var(--neon-green);
}

.terminal-command {
    color: var(--neon-blue);
}

.hero-title {
    margin-bottom: 1rem;
}

.hero-name {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--neon-green);
    display: block;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px var(--glow-color);
}

.hero-title-en {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-secondary);
    display: block;
    letter-spacing: 4px;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--neon-blue);
    margin-bottom: 2rem;
    min-height: 40px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.typing-role {

    font-weight: 500;
}

.cursor {
    animation: blink 1s infinite;
    color: var(--neon-green);
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 3rem;
    max-width: 600px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(0, 255, 65, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: all var(--transition-normal);
}

.stat-item:hover {
    background: rgba(0, 255, 65, 0.1);
    border-color: var(--neon-green);
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.2);
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    font-family: var(--font-primary);
    color: var(--neon-green);
    display: block;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px var(--glow-color);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
}

.btn-primary,
.btn-secondary {
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: all var(--transition-normal);
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--neon-green), var(--neon-blue));
    color: var(--bg-primary);
    border: none;
    box-shadow: 0 10px 30px rgba(0, 255, 65, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 255, 65, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(0, 255, 65, 0.1);
    border-color: var(--neon-green);
    transform: translateY(-3px);
}

/* Hero Image */
.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-container {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--neon-green);
    box-shadow: 0 0 50px var(--glow-color);
    position: relative;
    z-index: 2;
}

.neon-rings {
    position: absolute;
    width: 120%;
    height: 120%;
    border: 2px solid transparent;
    border-top-color: var(--neon-green);
    border-radius: 50%;
    animation: rotateRing 3s linear infinite;
}

.neon-rings::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    border: 2px solid transparent;
    border-right-color: var(--neon-blue);
    border-radius: 50%;
    animation: rotateRing 4s linear infinite reverse;
}

.profile-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--neon-green) 0%, transparent 70%);
    opacity: 0.3;
    filter: blur(40px);
    animation: pulse 2s ease-in-out infinite;
}

.scan-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
    animation: scan 3s ease-in-out infinite;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: bounce 2s infinite;
}

.scroll-text {
    font-size: 0.9rem;
    color: var(--text-muted);

}

.scroll-arrow {
    width: 30px;
    height: 50px;
    border: 2px solid var(--neon-green);
    border-radius: 20px;
    position: relative;
}

.scroll-arrow::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--neon-green);
    border-radius: 50%;
    animation: scrollDown 2s infinite;
}

/* ===== SECTIONS ===== */
section {
    padding: 6rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {

    color: var(--neon-blue);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 900;
    color: var(--neon-green);
    text-shadow: 0 0 30px var(--glow-color);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* ===== GLITCH EFFECT ===== */
.glitch {
    position: relative;
    display: inline-block;
}

.glitch:hover {
    animation: glitch 0.3s infinite;
}

.glitch:hover::before,
.glitch:hover::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch:hover::before {
    left: 2px;
    text-shadow: -2px 0 var(--neon-blue);
    animation: glitch-1 0.3s infinite;
}

.glitch:hover::after {
    left: -2px;
    text-shadow: 2px 0 var(--neon-pink);
    animation: glitch-2 0.3s infinite;
}

/* ===== EXPERTISE SECTION ===== */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.expertise-card {
    background: rgba(18, 21, 26, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.expertise-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(0, 255, 65, 0.1));
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.expertise-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    border-color: var(--neon-green);
    box-shadow: 0 20px 60px rgba(0, 255, 65, 0.3);
}

.expertise-card:hover::before {
    opacity: 1;
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 65, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-slow);
    pointer-events: none;
}

.expertise-card:hover .card-glow {
    opacity: 1;
}

.card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    color: var(--neon-green);
    filter: drop-shadow(0 0 10px var(--glow-color));
}

.card-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 1.5;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-family: var(--font-primary);
}

.card-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    padding: 0.4rem 1rem;
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--neon-green);

    transition: all var(--transition-fast);
}

.tag:hover {
    background: rgba(0, 255, 65, 0.2);
    border-color: var(--neon-green);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
}

/* ===== SKILLS SECTION ===== */
.skills-section {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.terminal-skills {
    margin-bottom: 4rem;
}

.terminal-window {
    background: var(--bg-secondary);
    border: 2px solid var(--neon-green);
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 255, 65, 0.2);
    overflow: hidden;
}

.section-terminal-banner {
    margin-bottom: 2rem;
}

.section-terminal-banner .terminal-titlebar {
    padding: 0.7rem 1rem;
}

.terminal-titlebar {
    background: linear-gradient(90deg, var(--neon-green), var(--neon-blue));
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.terminal-buttons {
    display: flex;
    gap: 0.5rem;
}

.terminal-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-primary);
}

.terminal-title {

    color: var(--bg-primary);
    font-weight: 600;
    flex: 1;
}

.terminal-content {
    padding: 2rem;

    font-size: 0.95rem;
}

.terminal-line {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.prompt {
    color: var(--neon-green);
    font-weight: 600;
}

.command {
    color: var(--neon-blue);
}

.skills-category {
    margin: 2rem 0;
}

.category-title {
    color: var(--neon-green);
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.folder-icon {
    font-size: 1.2rem;
}

.skills-list {
    padding-right: 2rem;
}

.skills-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    padding-right: 2rem;
}

.skill-chip {
    padding: 0.55rem 1rem;
    background: rgba(0, 255, 65, 0.08);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    color: var(--text-primary);
    font-size: 0.85rem;
    line-height: 1.4;
    transition: all var(--transition-fast);
}

.skill-chip:hover {
    border-color: var(--neon-green);
    color: var(--neon-green);
    box-shadow: 0 0 16px rgba(0, 255, 65, 0.25);
}

.skill-item {
    display: grid;
    grid-template-columns: 250px 1fr 100px;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.8rem;
    background: rgba(0, 255, 65, 0.03);
    border-radius: 5px;
    transition: all var(--transition-fast);
}

.skill-item:hover {
    background: rgba(0, 255, 65, 0.08);
}

.skill-name {
    color: var(--text-primary);
}

.skill-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-green), var(--neon-blue));
    border-radius: 10px;
    position: relative;
    box-shadow: 0 0 15px var(--glow-color);
    animation: fillBar 1s ease-out;
}

.skill-level {
    color: var(--neon-blue);
    font-size: 0.85rem;
    text-align: center;
}

.top-skills-section {
    margin-top: 2.5rem;
}

.top-skills-list {
    display: grid;
    gap: 1rem;
}

.top-skill-item {
    display: grid;
    grid-template-columns: 250px 1fr 70px;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem;
    border-radius: 6px;
    background: rgba(0, 255, 65, 0.04);
    border: 1px solid rgba(0, 255, 65, 0.15);
}

.top-skill-item:hover {
    background: rgba(0, 255, 65, 0.08);
}

.cursor-blink {
    animation: blink 1s infinite;
}

/* Tool Arsenal */
.tool-arsenal {
    margin-top: 4rem;
}

.arsenal-title {
    text-align: center;

    font-size: 1.5rem;
    color: var(--neon-green);
    margin-bottom: 2rem;
    letter-spacing: 3px;
    text-shadow: 0 0 20px var(--glow-color);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.tool-icon {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.tool-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 15px;
    transition: all var(--transition-normal);
}

.tool-icon:hover {
    transform: translateY(-10px) scale(1.1);
}

.tool-icon:hover img {
    box-shadow: 0 15px 40px rgba(0, 255, 65, 0.4);
}

.tool-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, var(--neon-green) 0%, transparent 70%);
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity var(--transition-normal);
    pointer-events: none;
}

.tool-icon:hover .tool-glow {
    opacity: 0.3;
}

/* ===== PROJECTS SECTION ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--neon-green);
    box-shadow: 0 20px 60px rgba(0, 255, 65, 0.3);
}

.project-image {
    height: 250px;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
    position: relative;
    overflow: hidden;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent, rgba(10, 12, 15, 0.9));
}

.project-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;

    z-index: 2;
}

.project-badge.critical {
    background: var(--neon-red);
    color: white;
    box-shadow: 0 0 20px rgba(255, 0, 85, 0.5);
}

.project-badge.active {
    background: var(--neon-green);
    color: var(--bg-primary);
    box-shadow: 0 0 20px var(--glow-color);
}

.project-badge.hall-of-fame {
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
    color: white;
    box-shadow: 0 0 20px rgba(179, 0, 255, 0.5);
}

.project-content {
    padding: 2rem;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-family: var(--font-primary);
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    padding: 0.4rem 1rem;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--neon-blue);

}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.meta-item svg {
    width: 16px;
    height: 16px;
}

.severity-critical {
    color: var(--neon-red);
}

.severity-high {
    color: #ff9800;
}

.project-link {
    color: var(--neon-green);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.project-link:hover {
    text-shadow: 0 0 10px var(--glow-color);
}

/* ===== ARTICLES SECTION ===== */
.articles-section {
    background: var(--bg-secondary);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.article-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 1.2rem;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.article-thumbnail {
    height: 170px;
    border-radius: 12px;
    margin-bottom: 1.2rem;
    border: 1px solid var(--border-color);
    background-size: cover;
    background-position: center;
}

.thumb-waf {
    background-image: linear-gradient(135deg, rgba(0, 255, 65, 0.35), rgba(0, 0, 0, 0.75)),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='400'%3E%3Crect width='100%25' height='100%25' fill='%230d1216'/%3E%3Ctext x='50%25' y='52%25' text-anchor='middle' fill='%2300ff41' font-size='44' font-family='Arial'%3EWAF Bypass%3C/text%3E%3C/svg%3E");
}

.thumb-idor {
    background-image: linear-gradient(135deg, rgba(0, 240, 255, 0.35), rgba(0, 0, 0, 0.75)),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='400'%3E%3Crect width='100%25' height='100%25' fill='%23101620'/%3E%3Ctext x='50%25' y='52%25' text-anchor='middle' fill='%2300f0ff' font-size='44' font-family='Arial'%3EIDOR Exploitation%3C/text%3E%3C/svg%3E");
}

.thumb-wireshark {
    background-image: linear-gradient(135deg, rgba(179, 0, 255, 0.35), rgba(0, 0, 0, 0.75)),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='400'%3E%3Crect width='100%25' height='100%25' fill='%23140f1f'/%3E%3Ctext x='50%25' y='52%25' text-anchor='middle' fill='%23b300ff' font-size='44' font-family='Arial'%3EWireshark Analysis%3C/text%3E%3C/svg%3E");
}

.article-card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-blue);
    box-shadow: 0 15px 40px rgba(0, 240, 255, 0.2);
}

.article-header {
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.article-date {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.article-category {
    padding: 0.3rem 0.8rem;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 15px;
    font-size: 0.85rem;
    color: var(--neon-blue);
}

.article-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.article-excerpt {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.article-stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.article-stats svg {
    width: 16px;
    height: 16px;
}

.article-link {
    color: var(--neon-blue);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.article-link:hover {
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

/* ===== ACHIEVEMENTS TIMELINE ===== */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding-right: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: linear-gradient(180deg, var(--neon-green), var(--neon-blue), var(--neon-purple));
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-right: 3rem;
}

.timeline-marker {
    position: absolute;
    right: -8px;
    top: 0;
    width: 18px;
    height: 18px;
    background: var(--neon-green);
    border: 3px solid var(--bg-primary);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--glow-color);
    z-index: 2;
}

.timeline-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    transition: all var(--transition-normal);
    position: relative;
}

.timeline-content:hover {
    border-color: var(--neon-green);
    box-shadow: 0 10px 40px rgba(0, 255, 65, 0.2);
    transform: translateX(-10px);
}

.timeline-date {

    color: var(--neon-blue);
    font-size: 0.9rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.timeline-description {
    color: var(--text-secondary);
    line-height: 1.7;
}

.timeline-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;

}

.timeline-badge.cve {
    background: var(--neon-red);
    color: white;
    box-shadow: 0 0 15px rgba(255, 0, 85, 0.5);
}

.timeline-badge.hof {
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
    color: white;
    box-shadow: 0 0 15px rgba(179, 0, 255, 0.5);
}

.timeline-badge.cert {
    background: var(--neon-blue);
    color: var(--bg-primary);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
}

.timeline-badge.achievement {
    background: var(--neon-green);
    color: var(--bg-primary);
    box-shadow: 0 0 15px var(--glow-color);
}


/* ===== WORK / EDUCATION / RESEARCH / TRAINING ===== */
.work-section {
    background: linear-gradient(180deg, var(--bg-primary), #0f141b);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.work-card {
    background: rgba(0, 255, 65, 0.06);
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
}

.work-company {
    color: var(--neon-green);
    margin-bottom: .5rem;
}

.work-role {
    color: var(--neon-blue);
    margin-bottom: .6rem;
}

.work-description {
    color: var(--text-secondary);
}

.education-section {
    background: linear-gradient(180deg, #0c1117, var(--bg-secondary));
}

.education-list {
    display: grid;
    gap: 1rem;
}

.education-card {
    border-right: 4px solid var(--neon-blue);
    background: rgba(0, 240, 255, 0.06);
    border-radius: 12px;
    padding: 1.4rem;
}

.education-title {
    color: var(--text-primary);
    margin-bottom: .4rem;
}

.education-place {
    color: var(--text-secondary);
}

.research-section {
    background: radial-gradient(circle at top, rgba(179, 0, 255, .1), var(--bg-primary));
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.research-card {
    background: rgba(179, 0, 255, 0.08);
    border: 1px solid rgba(179, 0, 255, 0.35);
    border-radius: 18px;
    padding: 1.8rem;
    box-shadow: 0 0 25px rgba(179, 0, 255, 0.15);
}

.research-title {
    color: #d884ff;
    margin-bottom: .8rem;
}

.research-text {
    color: var(--text-secondary);
}

.training-section {
    background: linear-gradient(180deg, var(--bg-secondary), #0a1015);
}

.training-box {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
    background: rgba(0, 255, 65, 0.08);
    border: 2px dashed var(--neon-green);
    border-radius: 18px;
    padding: 2rem;
}

.training-title {
    color: var(--neon-green);
    margin-bottom: .8rem;
}

.training-description {
    color: var(--text-secondary);
}

/* ===== TESTIMONIALS ===== */
.testimonials-section {
    background: linear-gradient(180deg, var(--bg-secondary), var(--bg-primary));
}

.testimonials-slider {
    position: relative;
    margin-bottom: 2rem;
}

.testimonials-viewport {
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    gap: 1.5rem;
    margin-top: 12px;
    direction: ltr;
    transition: transform var(--transition-normal);
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(var(--blur-md));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    flex: 0 0 calc((100% - 3rem) / 3);
    opacity: 1;
    pointer-events: auto;
    transform: none;
    transition: all var(--transition-normal);
    direction: rtl;
}

.testimonial-card.glass {
    box-shadow: 0 8px 32px rgba(0, 255, 65, 0.1);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-green);
    box-shadow: 0 15px 50px rgba(0, 255, 65, 0.2);
}

.quote-icon {
    font-size: 4rem;
    color: var(--neon-green);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 1rem;
}

.testimonial-text {
    color: var(--text-primary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid var(--neon-green);
    object-fit: cover;
    box-shadow: 0 0 16px rgba(0, 255, 65, 0.35);
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--neon-green);
    margin-bottom: 0.3rem;
}

.author-role {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.slider-controls {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.testimonials-slider.slider-enabled+.slider-controls {
    display: flex;
}

.slider-btn {
    width: 50px;
    height: 50px;
    border: 2px solid var(--neon-green);
    background: transparent;
    border-radius: 50%;
    color: var(--neon-green);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.slider-btn:hover {
    background: var(--neon-green);
    color: var(--bg-primary);
    box-shadow: 0 0 30px var(--glow-color);
    transform: scale(1.1);
}

.slider-btn svg {
    width: 24px;
    height: 24px;
}

.slider-dots {
    display: flex;
    gap: 0.8rem;
}

/* ===== CONTACT SECTION ===== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    transition: all var(--transition-normal);
}

.info-card:hover {
    border-color: var(--neon-green);
    box-shadow: 0 10px 30px rgba(0, 255, 65, 0.2);
    transform: translateX(-5px);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 255, 65, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-green);
    flex-shrink: 0;
}

.info-icon svg {
    width: 24px;
    height: 24px;
}

.info-content {
    flex: 1;
}

.info-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
}

.info-link {
    color: var(--neon-green);
    text-decoration: none;
    font-size: 1.05rem;
    transition: all var(--transition-fast);
}

.info-link:hover {
    text-shadow: 0 0 10px var(--glow-color);
}

.contact-form {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem;
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-label {
    display: block;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.form-input {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all var(--transition-normal);
}

.form-input:focus {
    outline: none;
    border-color: var(--neon-green);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
    background: rgba(0, 255, 65, 0.05);
}

.form-textarea {
    resize: vertical;
    min-height: 150px;
}

.form-select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--neon-green) 50%),
        linear-gradient(135deg, var(--neon-green) 50%, transparent 50%);
    background-position:
        calc(1.5rem) calc(50% - 4px),
        calc(1rem) calc(50% - 4px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-left: 3rem;
    color-scheme: dark;
    font-family: var(--font-primary);
    line-height: 1.6;
}

.form-select option {
    background: #0f1418;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.98rem;
    padding: 0.8rem;
}

.form-select option:checked,
.form-select option:hover,
.form-select option:focus {
    background: var(--bg-tertiary);
    color: var(--neon-green);
}

.input-focus-effect {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-green), var(--neon-blue));
    transition: width var(--transition-normal);
}

.form-input:focus+.input-focus-effect {
    width: 100%;
}

.btn-submit {
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, var(--neon-green), var(--neon-blue));
    border: none;
    border-radius: 10px;
    color: var(--bg-primary);
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 255, 65, 0.5);
}

.btn-icon svg {
    width: 20px;
    height: 20px;
}

/* ===== NEWSLETTER ===== */
.newsletter-section {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.newsletter-box {
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.1), rgba(0, 240, 255, 0.1));
    border: 2px solid var(--neon-green);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 255, 65, 0.2);
}

.newsletter-title {
    font-size: 2.5rem;
    font-family: var(--font-primary);
    margin-bottom: 1rem;
}

.newsletter-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all var(--transition-normal);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--neon-green);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
}

.newsletter-btn {
    padding: 1rem 2rem;
    background: var(--neon-green);
    color: var(--bg-primary);
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-family: var(--font-primary);
    gap: 0.5rem;
    transition: all var(--transition-normal);
    white-space: nowrap;
}

.newsletter-btn:hover {
    background: var(--neon-blue);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.4);
    transform: translateY(-3px);
}

.newsletter-btn svg {
    width: 18px;
    height: 18px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-secondary);
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer-grid {
    opacity: 0.05;
}

.footer-container {
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-logo {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 900;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 1rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(0, 255, 65, 0.1);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-green);
    transition: all var(--transition-normal);
}

.social-link:hover {
    background: var(--neon-green);
    color: var(--bg-primary);
    border-color: var(--neon-green);
    box-shadow: 0 0 30px var(--glow-color);
    transform: translateY(-5px);
}

.social-link svg {
    width: 22px;
    height: 22px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-heading {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--neon-green);
    margin-bottom: 0.5rem;
}

.footer-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-list a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.footer-list a:hover {
    color: var(--neon-green);
    padding-right: 5px;
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
}

.footer-copyright {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.heart {
    color: var(--neon-red);
    animation: heartbeat 1.5s infinite;
}

.footer-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.85rem;

}

.footer-security svg {
    width: 16px;
    height: 16px;
    color: var(--neon-green);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 50px;
    height: 50px;
    background: var(--neon-green);
    color: var(--bg-primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px var(--glow-color);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--glow-color);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}