/* ================================================
   NIKOLAOS PREVENIOS - PORTFOLIO
   Dual Theme: Dark (default) + Light
   ================================================ */

/* ── Dark Theme Variables (default) ── */
:root,
[data-theme="dark"] {
    --bg-primary:     #0d1117;
    --bg-secondary:   #161b22;
    --bg-card:        #1c2128;
    --accent:         #58a6ff;
    --accent-2:       #bc8cff;
    --accent-green:   #3fb950;
    --text-primary:   #e6edf3;
    --text-secondary: #8b949e;
    --border:         #30363d;
    --shadow:         0 8px 32px rgba(0,0,0,0.45);
    --nav-bg:         rgba(13, 17, 23, 0.85);
    --hero-grid-color:rgba(48,54,61,0.35);
    --hero-glow-1:    rgba(88,166,255,0.07);
    --hero-glow-2:    rgba(188,140,255,0.05);
    --loading-bg:     #0d1117;
    --stat-number:    #e6edf3;
}

/* ── Light Theme Variables ── */
[data-theme="light"] {
    --bg-primary:     #f8fafc;
    --bg-secondary:   #f1f5f9;
    --bg-card:        #ffffff;
    --accent:         #4f46e5;
    --accent-2:       #7c3aed;
    --accent-green:   #059669;
    --text-primary:   #0f172a;
    --text-secondary: #64748b;
    --border:         #e2e8f0;
    --shadow:         0 4px 24px rgba(15,23,42,0.08);
    --nav-bg:         rgba(248, 250, 252, 0.88);
    --hero-grid-color:rgba(226,232,240,0.8);
    --hero-glow-1:    rgba(79,70,229,0.06);
    --hero-glow-2:    rgba(124,58,237,0.04);
    --loading-bg:     #f8fafc;
    --stat-number:    #0f172a;
}

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

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a { color: var(--accent); text-decoration: none; transition: color 0.3s ease; }
a:hover { opacity: 0.8; }

/* ── Loading Screen ── */
.portfolio-loading {
    position: fixed;
    inset: 0;
    background: var(--loading-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    gap: 24px;
}

.loading-logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -2px;
}
.loading-logo span { color: var(--accent); }

.loading-bar {
    width: 200px;
    height: 3px;
    background: var(--border);
    border-radius: 99px;
    overflow: hidden;
}
.loading-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    border-radius: 99px;
    animation: loadBar 1.8s ease-in-out infinite;
}
@keyframes loadBar {
    0%   { width: 0%;  margin-left: 0; }
    50%  { width: 70%; margin-left: 15%; }
    100% { width: 0%;  margin-left: 100%; }
}

/* ── Blazor Error UI ── */
#blazor-error-ui {
    color-scheme: light only;
    background: var(--bg-secondary);
    border-top: 1px solid #f85149;
    color: var(--text-primary);
    bottom: 0; left: 0;
    display: none;
    padding: 0.8rem 1.5rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    font-size: 0.9rem;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 1rem; top: 0.6rem; }
.blazor-error-boundary { background: #3d1a1a; border: 1px solid #f85149; border-radius: 12px; padding: 1rem; color: white; }
.blazor-error-boundary::after { content: "An error has occurred."; display: block; }

/* ── Layout ── */
.page { min-height: 100vh; display: flex; flex-direction: column; }
.page main { flex: 1; padding: 0; }
.top-row { display: none; }

/* ── Theme Toggle Button ── */
.theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.theme-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: rotate(20deg);
}

/* ── Navbar ── */
.portfolio-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    height: 64px;
    transition: box-shadow 0.3s ease, background 0.3s ease;
}
.portfolio-nav.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.12); }

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nav-logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary) !important;
    letter-spacing: -1px;
}
.nav-logo span { color: var(--accent); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    list-style: none;
}
.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0.45rem 0.8rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.nav-links a:hover { color: var(--accent); background: rgba(79,70,229,0.07); opacity: 1; }

[data-theme="dark"] .nav-links a:hover { background: rgba(88,166,255,0.08); }

.nav-right { display: flex; align-items: center; gap: 0.6rem; }

.nav-cta {
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: var(--accent) !important;
    border: 1px solid var(--accent) !important;
    padding: 0.4rem 1rem !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
}
.nav-cta:hover { background: rgba(79,70,229,0.08) !important; opacity: 1 !important; }
[data-theme="dark"] .nav-cta:hover { background: rgba(88,166,255,0.1) !important; }

.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}
.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 99px;
    transition: all 0.3s ease;
}

.nav-mobile {
    display: none;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    z-index: 999;
    flex-direction: column;
    gap: 0.25rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0.65rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.nav-mobile a:hover { color: var(--text-primary); background: var(--bg-card); opacity: 1; }

/* ── Section Wrapper ── */
.section { max-width: 1100px; margin: 0 auto; padding: 80px 1.5rem; }

.section-header { margin-bottom: 3rem; }

.section-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-line {
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    border-radius: 99px;
}

/* Alternating section backgrounds */
#skills, #projects { background-color: var(--bg-secondary); }

/* ── Hero Section ── */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 80px 1.5rem 40px;
}

.hero-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, var(--hero-glow-1) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 80% 80%, var(--hero-glow-2) 0%, transparent 50%);
    pointer-events: none;
}

.hero-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(var(--hero-grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--hero-grid-color) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 30%, black 0%, transparent 80%);
    pointer-events: none;
}

.hero-content {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(63,185,80,0.1);
    border: 1px solid rgba(63,185,80,0.3);
    color: var(--accent-green);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.35rem 0.85rem;
    border-radius: 99px;
    margin-bottom: 1.5rem;
}
[data-theme="light"] .hero-badge {
    background: rgba(5,150,105,0.08);
    border-color: rgba(5,150,105,0.25);
}
.hero-badge::before {
    content: '';
    width: 7px; height: 7px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.8); }
}

.hero-name {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 0.5rem;
}

.hero-title {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}
.hero-title .highlight { color: var(--accent); font-weight: 700; }

.hero-description {
    max-width: 560px;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 2.5rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }

.btn-primary-custom {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.7rem 1.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}
[data-theme="dark"] .btn-primary-custom { color: #0d1117 !important; }
.btn-primary-custom:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(79,70,229,0.3);
    opacity: 1;
}
[data-theme="dark"] .btn-primary-custom:hover { box-shadow: 0 8px 24px rgba(88,166,255,0.3); }

.btn-secondary-custom {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--text-primary) !important;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.7rem 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    cursor: pointer;
}
.btn-secondary-custom:hover {
    border-color: var(--accent);
    color: var(--accent) !important;
    background: rgba(79,70,229,0.05);
    transform: translateY(-2px);
    opacity: 1;
}
[data-theme="dark"] .btn-secondary-custom:hover { background: rgba(88,166,255,0.05); }

.hero-stats { display: flex; gap: 2.5rem; flex-wrap: wrap; }

.stat-item { text-align: left; }
.stat-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--stat-number);
    line-height: 1;
    margin-bottom: 0.2rem;
}
.stat-number span { color: var(--accent); }
.stat-label { font-size: 0.78rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; }

/* ── About Section ── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }

.about-text p { color: var(--text-secondary); line-height: 1.8; margin-bottom: 1.2rem; font-size: 0.97rem; }
.about-text p strong { color: var(--text-primary); }

.about-info-cards { display: flex; flex-direction: column; gap: 1rem; }

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.2rem 1.4rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}
.info-card:hover { border-color: var(--accent); transform: translateX(4px); }

.info-card-icon {
    width: 42px; height: 42px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.info-card-icon.blue   { background: rgba(79,70,229,0.1);  color: var(--accent); }
.info-card-icon.purple { background: rgba(124,58,237,0.1); color: var(--accent-2); }
.info-card-icon.green  { background: rgba(5,150,105,0.1);  color: var(--accent-green); }
.info-card-icon.orange { background: rgba(234,88,12,0.1);  color: #ea580c; }

[data-theme="dark"] .info-card-icon.blue   { background: rgba(88,166,255,0.1);  color: var(--accent); }
[data-theme="dark"] .info-card-icon.purple { background: rgba(188,140,255,0.1); color: var(--accent-2); }
[data-theme="dark"] .info-card-icon.green  { background: rgba(63,185,80,0.1);   color: var(--accent-green); }
[data-theme="dark"] .info-card-icon.orange { background: rgba(255,166,77,0.1);  color: #ffa64d; }

.info-card-label  { font-size: 0.72rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.15rem; }
.info-card-value  { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); }

/* ── Skills Section ── */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }

.skill-category {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}
.skill-category:hover { border-color: var(--accent); transform: translateY(-3px); }

.skill-category-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.skill-tag {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 500;
    padding: 0.3rem 0.8rem;
    border-radius: 99px;
    transition: all 0.3s ease;
    cursor: default;
}
.skill-tag:hover { color: var(--accent); border-color: var(--accent); background: rgba(79,70,229,0.06); transform: translateY(-2px); }
[data-theme="dark"] .skill-tag:hover { background: rgba(88,166,255,0.08); }
.skill-tag.primary {
    background: rgba(79,70,229,0.08);
    border-color: rgba(79,70,229,0.3);
    color: var(--accent);
    font-weight: 600;
}
[data-theme="dark"] .skill-tag.primary {
    background: rgba(88,166,255,0.1);
    border-color: rgba(88,166,255,0.3);
}

/* ── Experience Timeline ── */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
    content: '';
    position: absolute;
    left: 0; top: 8px; bottom: 8px;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), transparent);
}

.timeline-item { position: relative; margin-bottom: 2.5rem; padding-left: 1.5rem; }
.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.15rem; top: 6px;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--bg-primary);
    box-shadow: 0 0 0 3px rgba(79,70,229,0.2);
}
[data-theme="dark"] .timeline-item::before { box-shadow: 0 0 0 3px rgba(88,166,255,0.2); }
.timeline-item.featured::before { background: var(--accent-2); box-shadow: 0 0 0 3px rgba(124,58,237,0.2); }

.timeline-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}
.timeline-card:hover { border-color: var(--accent); transform: translateX(4px); }

.timeline-header { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.6rem; }
.timeline-role { font-size: 1rem; font-weight: 700; color: var(--text-primary); }
.timeline-period {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    padding: 0.25rem 0.7rem;
    border-radius: 99px;
    border: 1px solid var(--border);
    white-space: nowrap;
}

.timeline-company { font-size: 0.875rem; color: var(--accent); font-weight: 600; margin-bottom: 0.8rem; }
.timeline-company i { font-size: 0.75rem; margin-right: 0.25rem; }
.timeline-description { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 0.8rem; }

.timeline-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.timeline-tag {
    font-size: 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
}

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

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.project-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    opacity: 0;
    transition: opacity 0.3s ease;
}
.project-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.project-card:hover::before { opacity: 1; }

.project-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; }
.project-icon {
    width: 44px; height: 44px;
    background: rgba(79,70,229,0.08);
    border: 1px solid rgba(79,70,229,0.2);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    color: var(--accent);
}
[data-theme="dark"] .project-icon {
    background: rgba(88,166,255,0.08);
    border-color: rgba(88,166,255,0.2);
}

.project-links { display: flex; gap: 0.4rem; }
.project-link {
    width: 32px; height: 32px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary) !important;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}
.project-link:hover { border-color: var(--accent); color: var(--accent) !important; transform: translateY(-2px); opacity: 1; }

.project-name { font-size: 1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.5rem; }
.project-description { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; flex: 1; margin-bottom: 1.2rem; }

.project-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
.project-lang { display: flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; color: var(--text-secondary); }

.lang-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.lang-csharp { background: #178600; }
.lang-js     { background: #f1e05a; }
.lang-html   { background: #e34c26; }
.lang-react  { background: #61dafb; }

/* ── Education ── */
.education-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }

.edu-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    gap: 1.2rem;
    box-shadow: var(--shadow);
}
.edu-card:hover { border-color: var(--accent); transform: translateY(-3px); }

.edu-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    background: rgba(79,70,229,0.08);
    color: var(--accent);
}
[data-theme="dark"] .edu-icon { background: rgba(88,166,255,0.08); }

.edu-degree      { font-size: 0.95rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.2rem; }
.edu-institution { font-size: 0.82rem; color: var(--accent); font-weight: 600; margin-bottom: 0.25rem; }
.edu-period      { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: var(--text-secondary); margin-bottom: 0.5rem; }
.edu-description { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.6; }

/* ── Contact ── */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contact-text p  { color: var(--text-secondary); line-height: 1.8; margin-bottom: 1.5rem; font-size: 0.97rem; }
.contact-links   { display: flex; flex-direction: column; gap: 0.85rem; }

.contact-link-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary) !important;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}
.contact-link-item:hover { border-color: var(--accent); transform: translateX(4px); opacity: 1; }

.contact-link-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.contact-link-icon.email    { background: rgba(79,70,229,0.1);  color: var(--accent); }
.contact-link-icon.github   { background: rgba(0,0,0,0.06);     color: var(--text-primary); }
.contact-link-icon.linkedin { background: rgba(10,102,194,0.1); color: #0a66c2; }
[data-theme="dark"] .contact-link-icon.email  { background: rgba(88,166,255,0.1); }
[data-theme="dark"] .contact-link-icon.github { background: rgba(255,255,255,0.05); }

.contact-link-label { font-size: 0.72rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; }
.contact-link-value { font-size: 0.88rem; font-weight: 600; }

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
}
.contact-card-title    { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.5rem; }
.contact-card-subtitle { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 1.5rem; }

.lang-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 1.5rem; }
.lang-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.85rem 1rem;
}
.lang-name  { font-weight: 600; font-size: 0.88rem; color: var(--text-primary); margin-bottom: 0.15rem; }
.lang-level { font-size: 0.75rem; color: var(--text-secondary); }

.cert-list { display: flex; flex-direction: column; gap: 0.6rem; }
.cert-item { display: flex; align-items: center; gap: 0.75rem; font-size: 0.85rem; color: var(--text-secondary); }
.cert-item i { color: var(--accent); width: 16px; }

/* ── Footer ── */
.portfolio-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 2rem 1.5rem;
}
.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-logo { font-family: 'JetBrains Mono', monospace; font-size: 1.1rem; font-weight: 700; color: var(--text-primary); letter-spacing: -1px; }
.footer-logo span { color: var(--accent); }
.footer-text { font-size: 0.82rem; color: var(--text-secondary); }
.footer-text span { color: var(--accent-2); }

.footer-social { display: flex; gap: 0.5rem; }
.footer-social a {
    width: 36px; height: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary) !important;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}
.footer-social a:hover { border-color: var(--accent); color: var(--accent) !important; transform: translateY(-2px); opacity: 1; }

/* ── Fade Animations ── */
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ── */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-hamburger { display: flex; }
    .about-grid, .contact-wrapper { grid-template-columns: 1fr; gap: 2rem; }
    .hero-stats { gap: 1.5rem; }
    .section { padding: 60px 1.25rem; }
    .projects-grid { grid-template-columns: 1fr; }
    .lang-grid { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
    .hero-name { letter-spacing: -1px; }
    .hero-actions { flex-direction: column; }
    .btn-primary-custom, .btn-secondary-custom { width: 100%; justify-content: center; }
}
