* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --green: #4ade80;
    --purple: #a78bfa;
    --pink: #f472b6;
    --amber: #fbbf24;
    --sky: #38bdf8;
    --text: #f1f5f9;
    --text-dim: #94a3b8;
    --text-muted: #64748b;
    --bg: #020617;
    --card: rgba(15, 23, 42, 0.7);
    --card-border: rgba(148, 163, 184, 0.08);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body, html {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

#particles-js {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: radial-gradient(ellipse at 20% 50%, rgba(74, 222, 128, 0.03) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 20%, rgba(167, 139, 250, 0.03) 0%, transparent 50%),
                linear-gradient(180deg, #020617 0%, #0f172a 100%);
}

/* ─── Layout ─── */
.container {
    display: flex;
    flex-direction: column;
    padding: 4rem 2rem 2rem;
    max-width: 780px;
    margin: 0 auto;
    width: 100%;
    min-height: 100vh;
}

/* ─── Hero ─── */
header {
    display: flex;
    align-items: center;
    margin-bottom: 4rem;
    padding: 2rem 0;
}

.header-center {
    text-align: center;
    justify-content: center;
    flex-direction: column;
}

.profile-img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 3px solid rgba(74, 222, 128, 0.4);
    object-fit: cover;
    margin-bottom: 2rem;
    transition: var(--transition);
    box-shadow: 0 0 0 8px rgba(74, 222, 128, 0.05),
                0 0 60px rgba(74, 222, 128, 0.08);
}

.profile-img:hover {
    transform: scale(1.04);
    border-color: var(--green);
    box-shadow: 0 0 0 8px rgba(74, 222, 128, 0.1),
                0 0 80px rgba(74, 222, 128, 0.15);
}

.title-block { text-align: center; }

.title-block h1 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 0.6rem;
    background: linear-gradient(135deg, #f1f5f9, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0.04em;
    margin-bottom: 2rem;
}

/* ─── Contact ─── */
.contact-bubble {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    align-items: center;
}

.contact-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(148, 163, 184, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    text-decoration: none;
}

.contact-btn:hover {
    background: rgba(74, 222, 128, 0.1);
    border-color: rgba(74, 222, 128, 0.3);
    transform: translateY(-2px);
}

.contact-icon {
    width: 22px;
    height: 22px;
    opacity: 0.7;
    transition: var(--transition);
}

.contact-btn:hover .contact-icon { opacity: 1; }

.phone-link {
    margin-top: 1rem;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.phone-link a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.phone-link a:hover { color: var(--green); }

/* ─── Language Switcher ─── */
.lang-switcher {
    display: flex;
    gap: 0.15rem;
    justify-content: center;
    align-items: center;
    margin-top: 1.8rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(148, 163, 184, 0.06);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.lang-switcher a {
    color: rgba(148, 163, 184, 0.3);
    text-decoration: none;
    padding: 0.35rem 0.55rem;
    border-radius: 6px;
    transition: var(--transition);
}

.lang-switcher a:hover {
    color: var(--text);
    background: rgba(148, 163, 184, 0.08);
}

.lang-switcher strong {
    color: var(--green);
    padding: 0.35rem 0.55rem;
    background: rgba(74, 222, 128, 0.08);
    border-radius: 6px;
}

/* ─── Section Cards ─── */
.section {
    margin-bottom: 1.5rem;
    animation: fadeIn 0.8s ease-out both;
}

.content {
    position: relative;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2.5rem 2.8rem;
    transition: var(--transition);
    overflow: hidden;
}

.content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--green);
    opacity: 0.5;
    transition: var(--transition);
}

.content:hover {
    border-color: rgba(148, 163, 184, 0.15);
    background: rgba(15, 23, 42, 0.85);
    transform: translateY(-4px);
    box-shadow: 0 24px 80px -12px rgba(0, 0, 0, 0.5);
}

.content:hover::before { opacity: 1; width: 4px; }

#software .content::before  { background: var(--green); }
#blockchain .content::before { background: var(--purple); }
#blindstack .content::before { background: var(--pink); }
#solar .content::before      { background: var(--amber); }
#research .content::before   { background: var(--sky); }

/* ─── Section Titles ─── */
.content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

#software .content h2  { color: var(--green); }
#blockchain .content h2 { color: var(--purple); }
#blindstack .content h2 { color: var(--pink); }
#solar .content h2      { color: var(--amber); }
#research .content h2   { color: var(--sky); }

/* ─── Section Text ─── */
.section-description {
    color: var(--text-dim);
    line-height: 1.8;
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
}

/* ─── Timeline ─── */
.timeline {
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.timeline-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 1rem;
    align-items: start;
}

.timeline-period {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--green);
    padding-top: 0.15rem;
    white-space: nowrap;
}

#blockchain .timeline-period { color: var(--purple); }

.timeline-role {
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.5;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.06);
}

.timeline-item:last-child .timeline-role {
    border-bottom: none;
    padding-bottom: 0;
}

.timeline-role strong {
    color: var(--text);
    font-weight: 600;
}

/* ─── Expertise ─── */
.expertise-tags {
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.03em;
    line-height: 1.8;
}

/* ─── Buttons ─── */
.buttons-container {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 1.8rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(148, 163, 184, 0.06);
}

.btn {
    padding: 0.6rem 1.6rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.btn {
    background: var(--green);
    color: #020617;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px -8px currentColor;
    filter: brightness(1.15);
}

#blockchain .btn { background: var(--purple); }
#blindstack .btn { background: var(--pink); }
#solar .btn { background: var(--amber); }
#research .btn { background: var(--sky); }

.btn-secondary {
    background: rgba(148, 163, 184, 0.08);
    color: var(--text-dim);
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.btn-secondary:hover {
    background: rgba(148, 163, 184, 0.15);
    color: var(--text);
    border-color: rgba(148, 163, 184, 0.25);
    box-shadow: none;
    filter: none;
}

/* ─── Footer ─── */
.site-footer {
    margin-top: 2rem;
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ─── Animations ─── */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in-up { animation: fadeIn 0.6s ease-out both; }

.section:nth-child(2) { animation-delay: 0.08s; }
.section:nth-child(3) { animation-delay: 0.16s; }
.section:nth-child(4) { animation-delay: 0.24s; }
.section:nth-child(5) { animation-delay: 0.32s; }
.section:nth-child(6) { animation-delay: 0.40s; }

.loading { opacity: 0.6; pointer-events: none; }

.btn:focus, .contact-btn:focus {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

/* ─── Responsive ─── */
@media (max-width: 640px) {
    .container { padding: 2rem 1rem 1rem; }
    .title-block h1 { font-size: 2.2rem; }
    .subtitle { font-size: 0.95rem; }
    .profile-img { width: 120px; height: 120px; }
    .content { padding: 2rem 1.8rem; border-radius: 16px; }
    .content h2 { font-size: 1.25rem; }
    .timeline-item { grid-template-columns: 1fr; gap: 0.2rem; }
    .timeline-period { padding-top: 0; }
    .timeline-role { padding-bottom: 0.8rem; }
    .btn { padding: 0.55rem 1.3rem; font-size: 0.82rem; }
    header { margin-bottom: 2.5rem; }
}
