:root {
    --bg: #050816;
    --bg-alt: #0b1020;
    --card: #10172a;
    --primary: #6366f1;
    --primary-soft: rgba(99,102,241,0.18);
    --accent: #22c55e;
    --text: #e5e7eb;
    --muted: #9ca3af;
    --border: #1f2937;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --shadow-soft: 0 18px 45px rgba(15,23,42,0.8);
    --shadow-chip: 0 6px 18px rgba(15,23,42,0.7);
    --transition-fast: 0.2s ease;
    --transition-med: 0.3s ease;
    --nav-height: 70px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    height: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: "Vazirmatn", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: radial-gradient(circle at top, #111827 0, #020617 40%, #000 100%);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    padding-top: var(--nav-height);
}

/* حالت نئونی / Cyber Glow */
body.glow-mode {
    background: radial-gradient(circle at top, #020617 0, #020617 40%, #000 100%);
}

body.glow-mode .card,
body.glow-mode .project-card,
body.glow-mode .skill-card,
body.glow-mode .article-card,
body.glow-mode .hero-card,
body.glow-mode .service-card,
body.glow-mode .cert-card {
    background: rgba(15,23,42,0.86);
    border-color: rgba(94,234,212,0.4);
    box-shadow:
            0 20px 60px rgba(15,23,42,1),
            0 0 30px rgba(56,189,248,0.4);
    backdrop-filter: blur(16px);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
.project-card,
.btn,
.nav-link,
.hero-link,
.project-link {
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1120px, 92vw);
    margin: 0 auto;
}

/* Loader Cyber AG */
/* Ultra Modern Morph Loader */
#morph-loader {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at top, #020617 0, #050816 70%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 22px;
    z-index: 99999;
    transition: opacity .7s ease;
}

/* Morphing Shape */
.shape {
    width: 95px;
    height: 95px;
    background: linear-gradient(135deg, #22c55e, #4f46e5, #a855f7);
    background-size: 350%;
    animation:
            morph 1.9s infinite ease-in-out,
            colorShift 4s infinite linear,
            glow 2s infinite ease-in-out;
    filter: drop-shadow(0 0 20px #4f46e5);
}

/* Morph Motion */
@keyframes morph {
    0%   { border-radius: 50%;              transform: rotate(0deg)   scale(1);   }
    25%  { border-radius: 15%;              transform: rotate(90deg)  scale(1.05);}
    50%  { border-radius: 45% 20% 40% 25%;   transform: rotate(180deg) scale(1);   }
    75%  { border-radius: 30% 60% 20% 50%;   transform: rotate(270deg) scale(1.08);}
    100% { border-radius: 50%;              transform: rotate(360deg) scale(1);   }
}

/* Dynamic Gradient Motion */
@keyframes colorShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Glow Pulse */
@keyframes glow {
    0%   { filter: drop-shadow(0 0 8px #22c55e); }
    50%  { filter: drop-shadow(0 0 26px #4f46e5); }
    100% { filter: drop-shadow(0 0 8px #22c55e); }
}

/* Text */
.loader-text {
    font-size: 14px;
    letter-spacing: 6px;
    color: #cbd5e1;
    opacity: .8;
    text-shadow: 0 0 10px rgba(94,234,212,0.4);
    animation: blink 1.8s infinite ease-in-out;
}

@keyframes blink {
    0%   { opacity: .3; }
    50%  { opacity: 1; }
    100% { opacity: .3; }
}

/* Fade-Out Animation */
#morph-loader.fade-out {
    opacity: 0;
    transform: scale(1.05);
    transition: opacity .7s ease, transform .7s ease;
    pointer-events: none;
}


/* Glow Mode Toggle */
.glow-toggle {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid rgba(55,65,81,0.9);
    background: rgba(15,23,42,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text);
    transition: var(--transition-fast);
    box-shadow: 0 10px 30px rgba(15,23,42,0.9);
}

.glow-toggle:hover {
    transform: translateY(-2px) scale(1.03);
    border-color: rgba(94,234,212,0.9);
    box-shadow:
            0 22px 50px rgba(15,23,42,1),
            0 0 22px rgba(59,130,246,0.9);
}

body.glow-mode .glow-toggle {
    box-shadow:
            0 0 25px rgba(45,212,191,0.9),
            0 0 70px rgba(56,189,248,0.9);
}

/* Header / Navbar */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    backdrop-filter: blur(16px);
    background: linear-gradient(to bottom, rgba(2,6,23,0.95), rgba(2,6,23,0.75) 60%, transparent);
    border-bottom: 1px solid rgba(31,41,55,0.7);
    transition: box-shadow 0.25s ease, transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

header.scrolled {
    transform: translateY(-2px);
    background: radial-gradient(circle at top, rgba(15,23,42,0.96), rgba(15,23,42,0.98));
    box-shadow:
            0 20px 60px rgba(15,23,42,1),
            0 0 40px rgba(56,189,248,0.25);
    border-bottom-color: rgba(59,130,246,0.55);
}

.nav {
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 40%;
    background: radial-gradient(circle at 30% 20%, #22c55e, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    box-shadow:
            0 0 18px rgba(56,189,248,0.9),
            0 0 36px rgba(56,189,248,0.6);
}

.nav-logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-logo-main {
    font-weight: 600;
    font-size: 16px;
}

.nav-logo-sub {
    font-size: 11px;
    color: var(--muted);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--muted);
}

.nav-links a {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.nav-links a::after {
    content: "";
    position: absolute;
    inset-inline: 22%;
    bottom: 2px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(129,140,248,0), rgba(129,140,248,0.9), rgba(45,212,191,0));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
    opacity: 0.8;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
}

.nav-links a:hover,
.nav-links a.active {
    color: #f9fafb;
    border-color: rgba(99,102,241,0.6);
    background: radial-gradient(circle at top, rgba(99,102,241,0.24), transparent 70%);
    box-shadow: 0 0 0 1px rgba(15,23,42,0.7);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(55,65,81,0.9);
    font-size: 12px;
    color: var(--muted);
    background: rgba(15,23,42,0.9);
    box-shadow: 0 10px 30px rgba(15,23,42,0.9);
    white-space: nowrap;
}

.nav-cta-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: radial-gradient(circle at center, #22c55e, #16a34a);
    box-shadow: 0 0 14px rgba(34,197,94,0.8);
}

.nav-lang-wrapper {
    position: relative;
}

.nav-lang-btn {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid rgba(55,65,81,0.9);
    background: rgba(15,23,42,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text);
    transition: var(--transition-fast);
    box-shadow: 0 10px 30px rgba(15,23,42,0.9);
}

.nav-lang-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(129,140,248,0.9);
    box-shadow:
            0 18px 40px rgba(15,23,42,1),
            0 0 20px rgba(59,130,246,0.75);
}

.nav-lang-menu {
    position: absolute;
    top: 40px;
    left: 0;
    min-width: 120px;
    background: rgba(15,23,42,0.98);
    border-radius: 14px;
    border: 1px solid rgba(55,65,81,0.9);
    box-shadow: 0 18px 45px rgba(15,23,42,1);
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
    transition: var(--transition-fast);
    z-index: 60;
}

.nav-lang-menu.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.lang-item {
    padding: 6px 8px;
    border-radius: 10px;
    font-size: 12px;
    color: var(--muted);
    border: 1px solid transparent;
}

.lang-item:hover {
    border-color: rgba(55,65,81,0.9);
    background: rgba(15,23,42,0.95);
    color: var(--text);
}

.lang-item.active {
    border-color: rgba(129,140,248,0.9);
    background: rgba(30,64,175,0.5);
    color: #e5e7eb;
}

.nav-toggle {
    display: none;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid rgba(55,65,81,0.9);
    background: rgba(15,23,42,0.9);
    align-items: center;
    justify-content: center;
}

.nav-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--text);
    position: relative;
    transition: var(--transition-fast);
}

.nav-toggle span::before,
.nav-toggle span::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--text);
    transition: var(--transition-fast);
}

.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }

.nav-toggle.open span {
    background: transparent;
}

.nav-toggle.open span::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle.open span::after {
    top: 0;
    transform: rotate(-45deg);
}

.nav-links-mobile {
    display: none;
    flex-direction: column;
    padding: 10px 0 16px;
    gap: 6px;
    font-size: 14px;
    color: var(--muted);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
}

.nav-links-mobile a {
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid transparent;
}

.nav-links-mobile a:hover,
.nav-links-mobile a.active {
    color: #e5e7eb;
    border-color: rgba(55,65,81,0.8);
    background: rgba(15,23,42,0.95);
}

/* Hero */
.hero {
    padding: 40px 0 60px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 1.4fr);
    gap: 40px;
    align-items: center;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 999px;
    background: rgba(17,24,39,0.95);
    border: 1px solid rgba(55,65,81,0.9);
    color: var(--muted);
    box-shadow: var(--shadow-chip);
    margin-bottom: 16px;
}

.chip-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 16px rgba(34,197,94,0.8);
}

.chip-highlight {
    color: #e5e7eb;
    font-weight: 500;
}

.hero-title {
    font-size: clamp(28px, 4vw, 34px);
    font-weight: 700;
    letter-spacing: -0.04em;
    margin-bottom: 14px;
}

.hero-title span {
    background: linear-gradient(90deg, #a855f7, #22c55e, #60a5fa);
    -webkit-background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: 16px;
    color: var(--muted);
    margin-bottom: 18px;
}

.hero-quote {
    font-size: 12px;
    color: #6b7280;
    border-right: 2px solid rgba(75,85,99,0.7);
    padding-right: 10px;
    margin-bottom: 24px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 13px;
    transition: var(--transition-med);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    right: -40%;
    width: 40%;
    height: 100%;
    background: linear-gradient(120deg, rgba(249,250,251,0), rgba(249,250,251,0.35), rgba(249,250,251,0));
    transform: skewX(-22deg);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.btn:hover::before {
    opacity: 1;
    transform: translateX(-120%) skewX(-22deg);
}

.btn-primary {
    background: radial-gradient(circle at 10% 0, #4f46e5, #22c55e);
    color: #f9fafb;
    box-shadow: 0 20px 45px rgba(30,64,175,0.75);
    font-family: "Vazirmatn", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

}

.btn-primary:hover {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 26px 60px rgba(30,64,175,0.9);
}

.btn-ghost {
    border-color: rgba(55,65,81,0.9);
    background: rgba(15,23,42,0.9);
    color: var(--muted);
}

.btn-ghost:hover {
    background: rgba(17,24,39,0.95);
    color: #e5e7eb;
}

.btn-icon {
    font-size: 16px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 12px;
    color: var(--muted);
}

.hero-meta-item span {
    display: block;
}

.hero-meta-label {
    color: #6b7280;
    margin-bottom: 2px;
}

.hero-meta-value {
    color: #e5e7eb;
    font-weight: 500;
}

.hero-card {
    position: relative;
    border-radius: 26px;
    padding: 18px 18px 16px;
    background:
            radial-gradient(circle at top left, rgba(129,140,248,0.16), transparent 65%),
            radial-gradient(circle at bottom, rgba(34,197,94,0.18), transparent 60%),
            #020617;
    border: 1px solid rgba(55,65,81,0.9);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.hero-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at -10% -10%, rgba(248,250,252,0.06), transparent 60%);
    opacity: 0.9;
    pointer-events: none;
}

.hero-card:hover {
    transform: translateY(-4px) rotateX(-3deg) rotateY(3deg);
    box-shadow:
            0 26px 70px rgba(15,23,42,1),
            0 0 30px rgba(56,189,248,0.4);
    border-color: rgba(129,140,248,0.9);
}

.hero-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.hero-card-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-avatar {
    width: 40px;
    height: 40px;
    border-radius: 16px;
    background: radial-gradient(circle at 30% 0, #22c55e, #6366f1);
    border: 1px solid rgba(148,163,184,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 12px 25px rgba(15,23,42,0.9);
}

.hero-avatar span { font-size: 18px; }

.hero-card-name {
    font-size: 14px;
    font-weight: 500;
}

.hero-card-role {
    font-size: 11px;
    color: var(--muted);
}

.hero-card-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: #9ca3af;
}

.hero-badge {
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(55,65,81,0.9);
    background: rgba(15,23,42,0.9);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.hero-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 10px rgba(34,197,94,0.8);
}

.hero-card-body {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 12px;
    align-items: flex-end;
}

.hero-card-main {
    font-size: 12px;
    color: var(--muted);
}

.hero-card-main h3 {
    font-size: 13px;
    color: #e5e7eb;
    margin-bottom: 4px;
}

.hero-card-main p {
    margin-bottom: 8px;
}

.hero-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.hero-tag {
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid rgba(55,65,81,0.9);
    font-size: 10px;
    color: #9ca3af;
    background: rgba(17,24,39,0.95);
}

.hero-card-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
    font-size: 11px;
}

.hero-stat {
    padding: 7px 10px;
    border-radius: 16px;
    border: 1px solid rgba(55,65,81,0.9);
    background: rgba(15,23,42,0.9);
    min-width: 120px;
}

.hero-stat-label {
    color: #9ca3af;
    margin-bottom: 4px;
}

.hero-stat-value {
    color: #e5e7eb;
    font-weight: 500;
}

.hero-card-footer {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px dashed rgba(55,65,81,0.9);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #9ca3af;
    position: relative;
    z-index: 1;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-card-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid rgba(55,65,81,0.9);
    background: rgba(15,23,42,0.9);
    transition: var(--transition-fast);
}

.hero-link:hover {
    border-color: rgba(129,140,248,0.9);
    color: #e5e7eb;
}

.hero-card-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 10px rgba(34,197,94,0.9);
    margin-left: 4px;
}

section {
    padding: 24px 0 40px;
}

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 10px;
    flex-wrap: wrap;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title-pill {
    width: 5px;
    height: 20px;
    border-radius: 999px;
    background: linear-gradient(to bottom, #818cf8, #22c55e);
}

.section-subtitle {
    font-size: 12px;
    color: var(--muted);
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr);
    gap: 24px;
}

.card {
    background: var(--bg-alt);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    padding: 18px 18px 16px;
    box-shadow: 0 16px 40px rgba(15,23,42,0.85);
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(129,140,248,0.08), transparent 55%);
    opacity: 0.9;
    pointer-events: none;
}

.card:hover {
    transform: translateY(-4px) rotateX(-3deg) rotateY(3deg);
    box-shadow:
            0 26px 70px rgba(15,23,42,1),
            0 0 28px rgba(56,189,248,0.35);
    border-color: rgba(129,140,248,0.8);
}

.card h3 {
    font-size: 15px;
    margin-bottom: 8px;
}

.card p {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 8px;
}

.card ul {
    list-style: none;
    padding-right: 14px;
    font-size: 13px;
    color: var(--muted);
}

.card ul li {
    position: relative;
    margin-bottom: 6px;
}

.card ul li::before {
    content: "•";
    position: absolute;
    right: -10px;
    color: var(--accent);
}

.about-highlight {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    background: rgba(34,197,94,0.1);
    border: 1px solid rgba(34,197,94,0.6);
    color: #bbf7d0;
    margin-bottom: 6px;
}

.timeline {
    border-right: 1px solid rgba(55,65,81,0.8);
    padding-right: 14px;
    margin-right: 4px;
}

.timeline-item {
    position: relative;
    margin-bottom: 16px;
    padding-right: 12px;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
    position: absolute;
    right: -19px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #6366f1;
    box-shadow: 0 0 0 4px rgba(99,102,241,0.2);
}

.timeline-title {
    font-size: 13px;
    color: #e5e7eb;
    margin-bottom: 4px;
    font-weight: 500;
}

.timeline-meta {
    font-size: 11px;
    color: #9ca3af;
    margin-bottom: 3px;
}

.timeline-desc {
    font-size: 12px;
    color: var(--muted);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.skill-card {
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 12px 12px 10px;
    font-size: 12px;
    color: var(--muted);
    box-shadow: 0 12px 30px rgba(15,23,42,0.9);
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.skill-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(129,140,248,0.16), transparent 60%);
    opacity: 0.7;
    pointer-events: none;
}

.skill-card:hover {
    transform: translateY(-4px) rotateX(-3deg) rotateY(3deg);
    box-shadow:
            0 20px 50px rgba(15,23,42,1),
            0 0 24px rgba(56,189,248,0.3);
    border-color: rgba(129,140,248,0.8);
}

.skill-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.skill-title {
    font-size: 13px;
    color: #e5e7eb;
    font-weight: 500;
}

.skill-pill {
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(55,65,81,0.9);
    font-size: 10px;
    background: rgba(15,23,42,0.9);
    color: #9ca3af;
}

.skill-list {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.skill-badge {
    padding: 3px 7px;
    border-radius: 999px;
    border: 1px solid rgba(55,65,81,0.8);
    background: rgba(15,23,42,0.9);
    font-size: 11px;
    color: #d1d5db;
    white-space: nowrap;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.service-card {
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 14px 14px 12px;
    box-shadow: 0 14px 35px rgba(15,23,42,0.9);
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(45,212,191,0.16), transparent 60%);
    opacity: 0.7;
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-4px) rotateX(-3deg) rotateY(3deg);
    box-shadow:
            0 22px 60px rgba(15,23,42,1),
            0 0 26px rgba(34,197,94,0.4);
    border-color: rgba(45,212,191,0.8);
}

.service-card h3 {
    font-size: 14px;
    margin-bottom: 6px;
    color: #e5e7eb;
}

.service-card p {
    font-size: 13px;
    color: var(--muted);
}

/* Certificates */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.cert-card {
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 14px 14px 12px;
    box-shadow: 0 14px 35px rgba(15,23,42,0.9);
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.cert-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(129,140,248,0.18), transparent 60%);
    opacity: 0.8;
    pointer-events: none;
}

.cert-card:hover {
    transform: translateY(-4px) rotateX(-3deg) rotateY(3deg);
    box-shadow:
            0 22px 60px rgba(15,23,42,1),
            0 0 26px rgba(129,140,248,0.5);
    border-color: rgba(129,140,248,0.9);
}

.cert-card h3 {
    font-size: 14px;
    margin-bottom: 4px;
    color: #e5e7eb;
}

.cert-card p {
    font-size: 12px;
    color: #9ca3af;
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.project-card {
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 14px 14px 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 14px 35px rgba(15,23,42,0.9);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.project-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(129,140,248,0.14), transparent 60%);
    opacity: 0.8;
    pointer-events: none;
}

.project-card:hover {
    transform: translateY(-4px) rotateX(-3deg) rotateY(3deg);
    box-shadow:
            0 24px 60px rgba(15,23,42,1),
            0 0 26px rgba(129,140,248,0.5);
    border-color: rgba(129,140,248,0.9);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.project-title {
    font-size: 14px;
    font-weight: 500;
    color: #e5e7eb;
}

.project-pill {
    padding: 2px 7px;
    border-radius: 999px;
    border: 1px solid rgba(55,65,81,0.9);
    font-size: 10px;
    background: rgba(15,23,42,0.9);
    color: #9ca3af;
    white-space: nowrap;
}

.project-desc {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #9ca3af;
    position: relative;
    z-index: 1;
    gap: 8px;
    flex-wrap: wrap;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 3px 8px;
    border: 1px solid rgba(55,65,81,0.9);
    background: rgba(15,23,42,0.95);
}

/* Articles */
.articles-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

.article-card {
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 14px 14px 12px;
    box-shadow: 0 14px 35px rgba(15,23,42,0.9);
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.article-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(129,140,248,0.12), transparent 60%);
    opacity: 0.9;
    pointer-events: none;
}

.article-card:hover {
    transform: translateY(-4px) rotateX(-3deg) rotateY(3deg);
    box-shadow:
            0 22px 60px rgba(15,23,42,1),
            0 0 26px rgba(129,140,248,0.5);
    border-color: rgba(129,140,248,0.9);
}

.article-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-size: 11px;
    background: rgba(15,23,42,0.9);
    color: var(--muted);
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}

.article-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
    position: relative;
    z-index: 1;
}

.article-meta {
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.article-desc {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr);
    gap: 22px;
}

.contact-list {
    list-style: none;
    font-size: 13px;
    color: var(--muted);
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.contact-icon {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: 1px solid rgba(55,65,81,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    background: rgba(15,23,42,0.9);
}

.contact-label {
    font-size: 11px;
    color: #9ca3af;
}

.contact-value {
    font-size: 13px;
    color: #e5e7eb;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 13px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.field label {
    font-size: 12px;
    color: #9ca3af;
}

.field input,
.field textarea {
    background: rgba(15,23,42,0.95);
    border-radius: 12px;
    border: 1px solid rgba(55,65,81,0.9);
    padding: 8px 10px;
    color: #e5e7eb;
    font-size: 13px;
    outline: none;
    transition: var(--transition-fast);
}

.field input:focus,
.field textarea:focus {
    border-color: rgba(129,140,248,0.9);
    box-shadow: 0 0 0 1px rgba(15,23,42,0.8);
}

.field textarea {
    min-height: 110px;
    resize: vertical;
}

.form-note {
    font-size: 11px;
    color: #6b7280;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    background: rgba(15,23,42,0.98);
    border: 1px solid rgba(55,65,81,0.9);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 12px;
    color: #e5e7eb;
    box-shadow: 0 16px 40px rgba(15,23,42,1);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 60;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(-6px);
    pointer-events: auto;
}

footer {
    padding: 14px 0 24px;
    font-size: 11px;
    color: #6b7280;
    border-top: 1px solid rgba(31,41,55,0.9);
    margin-top: 10px;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-links a {
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(55,65,81,0.9);
    background: rgba(15,23,42,0.95);
}

.scroll-top {
    position: fixed;
    left: 16px;
    bottom: 18px;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(55,65,81,0.9);
    background: rgba(15,23,42,0.96);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #e5e7eb;
    box-shadow: 0 16px 40px rgba(15,23,42,1);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 40;
}

.scroll-top.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-4px);
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

html {
    scrollbar-width: thin;
    scrollbar-color: #6366f1 #020617;
}

::-webkit-scrollbar {
    width: 9px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(180deg, rgba(15,23,42,0.9), rgba(2,6,23,1));
    border-radius: 999px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #6366f1, #22c55e);
    border-radius: 999px;
    border: 2px solid rgba(15,23,42,1);
    box-shadow:
            0 0 12px rgba(99,102,241,0.8),
            0 0 18px rgba(34,197,94,0.7);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #4f46e5, #16a34a);
    box-shadow:
            0 0 16px rgba(129,140,248,1),
            0 0 24px rgba(34,197,94,0.9);
}

@keyframes loaderPulse {
    0% {
        transform: scale(1) rotate(0deg);
        box-shadow:
                0 0 25px rgba(56,189,248,0.75),
                0 0 60px rgba(129,140,248,0.7);
    }
    50% {
        transform: scale(1.06) rotate(6deg);
        box-shadow:
                0 0 35px rgba(56,189,248,1),
                0 0 80px rgba(56,189,248,1);
    }
    100% {
        transform: scale(1) rotate(0deg);
        box-shadow:
                0 0 25px rgba(56,189,248,0.75),
                0 0 60px rgba(129,140,248,0.7);
    }
}

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .hero-card {
        order: -1;
    }

    .about-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .skills-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .services-grid,
    .certs-grid,
    .projects-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 720px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .nav-links-mobile {
        display: flex;
    }

    .hero {
        padding-top: 26px;
    }

    .skills-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .nav-right {
        gap: 6px;
    }

    .nav-cta {
        display: none;
    }

    .glow-toggle {
        top: 80px;
        left: 12px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 24px;
    }

    .section-title {
        font-size: 18px;
    }

    .hero-card {
        padding: 14px;
    }

    .card,
    .service-card,
    .cert-card {
        padding: 14px;
    }
}