/* ===== CSS Variables ===== */
:root {
    --bg-primary: #0f0f13;
    --bg-secondary: #16161d;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --border-color: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --text-primary: #e8e8ed;
    --text-secondary: #9b9ba4;
    --text-muted: #5c5c66;
    --accent: #6366f1;
    --accent-glow: rgba(99, 102, 241, 0.3);
    --accent-secondary: #818cf8;
    --danger: #ef4444;
    --success: #10b981;
    --warning: #f59e0b;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-sm: 8px;
    --font-ar: 'IBM Plex Sans Arabic', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

a {
    text-decoration: none;
    color: inherit;
}

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

/* ===== Particle Canvas ===== */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ===== Glass Card ===== */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

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

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(15, 15, 19, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
}

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

.nav-logo {
    font-family: var(--font-mono);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.logo-bracket {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 14px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-weight: 500;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding: 120px 24px 60px;
}

.hero-content {
    text-align: center;
    max-width: 700px;
}

.hero-avatar-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 32px;
}

.hero-avatar {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border-color);
    position: relative;
    z-index: 2;
}

.avatar-ring {
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--accent);
    border-right-color: var(--accent);
    animation: ring-spin 3s linear infinite;
    z-index: 1;
}

@keyframes ring-spin {
    to { transform: rotate(360deg); }
}

.avatar-status {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 16px;
    height: 16px;
    background: var(--success);
    border: 3px solid var(--bg-primary);
    border-radius: 50%;
    z-index: 3;
}

.hero-greeting {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 8px;
}

.hero-name {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 12px;
    font-family: var(--font-mono);
}

.text-glitch {
    position: relative;
    display: inline-block;
    color: var(--text-primary);
}

.text-glitch::before,
.text-glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    overflow: hidden;
    opacity: 0;
}

.text-glitch::before {
    color: #ff0040;
    animation: glitch-1 4s infinite;
}

.text-glitch::after {
    color: #0ff;
    animation: glitch-2 4s infinite;
}

@keyframes glitch-1 {
    0%, 90%, 100% { opacity: 0; transform: none; }
    92% { opacity: 0.8; transform: translate(-2px, -1px); clip-path: inset(20% 0 40% 0); }
    94% { opacity: 0; }
    96% { opacity: 0.6; transform: translate(2px, 1px); clip-path: inset(60% 0 10% 0); }
    98% { opacity: 0; }
}

@keyframes glitch-2 {
    0%, 90%, 100% { opacity: 0; transform: none; }
    91% { opacity: 0.6; transform: translate(2px, 1px); clip-path: inset(40% 0 20% 0); }
    93% { opacity: 0; }
    95% { opacity: 0.8; transform: translate(-2px, -1px); clip-path: inset(10% 0 60% 0); }
    97% { opacity: 0; }
}

.hero-titles {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--accent-secondary);
    margin-bottom: 16px;
    min-height: 32px;
}

.typing-cursor {
    animation: blink 0.7s step-end infinite;
    color: var(--accent);
}

@keyframes blink {
    50% { opacity: 0; }
}

.hero-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-ar);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}

.btn-primary:hover {
    background: var(--accent-secondary);
    border-color: var(--accent-secondary);
    box-shadow: 0 0 30px var(--accent-glow);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
    color: var(--accent-secondary);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border-color: transparent;
}

.btn-ghost:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

/* ===== Scroll Indicator ===== */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-dot {
    width: 3px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 3px;
    animation: scroll-bounce 1.5s ease-in-out infinite;
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(8px); opacity: 0.3; }
}

/* ===== Sections ===== */
.section {
    position: relative;
    z-index: 1;
    padding: 100px 0;
}

.section-alt {
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent);
    display: block;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.section-subtitle {
    color: var(--text-secondary);
    margin-top: 8px;
    font-size: 1rem;
}

.subsection-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 48px 0 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.subsection-title i {
    color: var(--accent);
    font-size: 1rem;
}

/* ===== About Grid ===== */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 48px;
}

.about-card {
    padding: 28px 24px;
    text-align: center;
}

.about-icon {
    width: 52px;
    height: 52px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 1.2rem;
    color: var(--accent-secondary);
}

.about-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.about-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===== Stats ===== */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    padding: 32px 0;
    border-top: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
    padding: 16px;
}

.stat-number {
    font-family: var(--font-mono);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent-secondary);
    display: block;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 4px;
    display: block;
}

/* ===== Chat Feed (Journey) ===== */
.chat-feed {
    max-width: 800px;
    margin: 0 auto 48px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.chat-msg {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.chat-avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), #818cf8);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
}

.chat-avatar span {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 800;
    color: #fff;
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

.chat-avatar-img {
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.chat-avatar-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    border-radius: inherit;
}

.chat-bubble {
    flex: 1;
    padding: 22px 24px;
    border-radius: 4px 16px 16px 16px;
    position: relative;
}

.chat-bubble::before {
    content: '';
    position: absolute;
    top: 12px;
    right: calc(100%);
    border: 6px solid transparent;
    border-left-color: var(--border-color);
    transform: scaleX(-1);
}

.chat-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.chat-name {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--accent-secondary);
}

.chat-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 2px 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 20px;
}

.chat-langs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.lang-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: var(--font-mono);
    border-radius: 20px;
    background: color-mix(in srgb, var(--lang) 12%, transparent);
    color: color-mix(in srgb, var(--lang) 80%, #fff);
    border: 1px solid color-mix(in srgb, var(--lang) 25%, transparent);
}

.chat-avatar-dim {
    background: linear-gradient(135deg, #4b5563, #6b7280);
    opacity: 0.85;
}

.chat-bubble-dim {
    opacity: 0.8;
    border-style: dashed;
}

.chat-bubble p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 10px;
}

.chat-bubble p:last-child {
    margin-bottom: 0;
}

.chat-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-secondary);
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.chat-link:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--accent);
    transform: translateX(-4px);
}

.chat-code-block {
    margin-top: 12px;
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.chat-code-block span {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.chat-code-block code {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--accent-secondary);
    font-weight: 600;
}

/* Journey Quote */
.journey-quote {
    max-width: 800px;
    margin: 0 auto;
    padding: 36px 32px;
    text-align: center;
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.quote-icon {
    width: 48px;
    height: 48px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--accent-secondary);
}

.quote-main {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.quote-formula {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-secondary);
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.quote-detail {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.9;
    max-width: 700px;
    margin: 0 auto 16px;
}

.quote-footer {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-muted);
    font-style: normal;
}

.quote-credit {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 12px;
    font-style: italic;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .chat-msg {
        gap: 10px;
    }

    .chat-avatar {
        width: 36px;
        height: 36px;
        min-width: 36px;
        border-radius: 10px;
    }

    .chat-avatar span {
        font-size: 0.72rem;
    }

    .chat-bubble {
        padding: 16px 18px;
    }

    .quote-main {
        font-size: 1.2rem;
    }

    .quote-formula {
        font-size: 1rem;
    }

    .journey-quote {
        padding: 28px 20px;
    }
}

/* ===== Projects Grid ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.project-card {
    padding: 28px 24px;
    position: relative;
}

.project-icon {
    width: 44px;
    height: 44px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 1.1rem;
    color: var(--accent, #6366f1);
}

.project-icon[style] {
    background: color-mix(in srgb, var(--accent) 15%, transparent);
    color: var(--accent);
}

.project-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    font-family: var(--font-mono);
}

.project-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 14px;
}

.project-card a {
    color: var(--accent-secondary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.project-badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 10px;
}

.badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-classified {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.badge-archived {
    background: rgba(100, 116, 139, 0.15);
    color: #94a3b8;
    border: 1px solid rgba(100, 116, 139, 0.25);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.project-tags span {
    padding: 4px 10px;
    font-size: 0.72rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-muted);
    font-weight: 500;
}

.project-card-private {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--border-color);
    background: rgba(255, 255, 255, 0.02);
    min-height: 200px;
}

.project-private-inner {
    text-align: center;
}

.project-private-inner i {
    font-size: 1.6rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: block;
}

.project-private-count {
    font-family: var(--font-mono);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    display: block;
    margin-bottom: 8px;
}

.project-private-inner p {
    font-size: 0.85rem;
    color: var(--text-muted);
    max-width: 220px;
    line-height: 1.7;
}

/* ===== Cyber Highlights ===== */
.cyber-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    margin-bottom: 48px;
}

.highlight-card {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.highlight-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--accent-secondary);
}

.highlight-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.highlight-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Platforms */
.platforms-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.platform-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: var(--transition);
}

.platform-chip:hover {
    border-color: var(--accent);
    background: rgba(99, 102, 241, 0.08);
    transform: translateY(-2px);
}

.platform-chip i {
    font-size: 1.1rem;
    color: var(--accent-secondary);
}

/* CVE Cards */
.cve-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
}

.cve-card {
    padding: 24px;
}

.cve-id {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.cve-type {
    margin-bottom: 12px;
}

.cve-type span {
    padding: 3px 10px;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 20px;
}

.badge-xss {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.badge-upload {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.25);
}

.badge-sqli {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.cve-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Countries */
.countries-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.country-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.country-chip:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

/* ===== GhostByte ===== */
.ghostbyte-showcase {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 24px;
    margin-bottom: 40px;
    align-items: start;
}

.gb-main {
    padding: 36px 28px;
}

.gb-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(239, 68, 68, 0.15));
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 24px;
    color: #fbbf24;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.gb-badge i {
    font-size: 1rem;
}

.gb-main h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 12px;
    font-family: var(--font-mono);
}

.gb-main p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
    line-height: 1.8;
}

.gb-media {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gb-image {
    overflow: hidden;
    padding: 0;
}

.gb-image img {
    width: 100%;
    display: block;
    border-radius: var(--radius);
}

.gb-video {
    overflow: hidden;
    padding: 0;
}

.gb-video video {
    width: 100%;
    display: block;
    border-radius: var(--radius);
}

.gb-achievements {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.gb-ach-item {
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 500;
}

.gb-ach-item i {
    color: var(--accent-secondary);
    font-size: 1.1rem;
}

/* ===== Malware Section ===== */
.malware-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.malware-card {
    padding: 28px 24px;
}

.malware-icon {
    width: 48px;
    height: 48px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 1.1rem;
    color: #f87171;
}

.malware-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.malware-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===== Certs ===== */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.cert-card {
    padding: 24px;
    text-align: center;
}

.cert-image {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-image img {
    max-width: 80px;
    max-height: 80px;
    object-fit: contain;
}

.cert-card h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.5;
}

.cert-card p {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-weight: 600;
}

/* ===== Contact ===== */
.contact-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.contact-card {
    padding: 28px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 180px;
}

.contact-card i {
    font-size: 1.8rem;
    color: var(--accent-secondary);
    transition: var(--transition);
}

.contact-card:hover i {
    transform: scale(1.15);
    color: var(--accent);
}

.contact-card span {
    font-weight: 600;
    font-size: 0.95rem;
}

.contact-card small {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* ===== Footer ===== */
.footer {
    position: relative;
    z-index: 1;
    padding: 32px 0;
    border-top: 1px solid var(--border-color);
}

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

.footer-logo {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 700;
}

.footer p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===== Scroll Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(15, 15, 19, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 80px 24px 24px;
        gap: 4px;
        transition: var(--transition);
        border-left: 1px solid var(--border-color);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-link {
        width: 100%;
        padding: 14px 16px;
        font-size: 1rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero-name {
        font-size: 2.8rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .ghostbyte-showcase {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .cve-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .certs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero-name {
        font-size: 2.2rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .certs-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .stats-row {
        grid-template-columns: 1fr;
    }
}

/* ===== Troll Overlay ===== */
#troll-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: trollFadeIn 0.3s ease;
}

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

.troll-box {
    text-align: center;
    max-width: 520px;
    padding: 48px 36px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    direction: rtl;
}

.troll-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    animation: trollShake 0.5s ease infinite alternate;
}

@keyframes trollShake {
    from { transform: rotate(-5deg) scale(1); }
    to { transform: rotate(5deg) scale(1.05); }
}

.troll-box h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #ef4444;
    margin-bottom: 16px;
}

.troll-main {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.troll-sub {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.troll-ascii pre {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #ef4444;
    margin-bottom: 20px;
    direction: ltr;
    display: inline-block;
    text-align: center;
}

.troll-tip {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    font-style: italic;
}

.troll-box button {
    padding: 10px 28px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-sm);
    color: #ef4444;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.troll-box button:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: #ef4444;
}
