* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', system-ui, sans-serif; background: #f8fafc; color: #1e293b; line-height: 1.6; }
a { color: inherit; text-decoration: none; }

.nav-bar { width: 100%; background: #2dd4bf; margin: 0 auto; padding: 18px 40px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; align-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); }
.nav-link { border-radius: 999px; }
.nav-bar .btn { background: rgba(255,255,255,0.12); border: 0.5px solid rgba(255,255,255,0.4); color: #0f172a; }
.nav-bar .btn:hover { background: rgba(255,255,255,0.25); }
.nav-bar .btn-primary { background: rgba(255,255,255,0.3); color: #0f172a; border-color: rgba(255,255,255,0.65); }
@media (max-width: 640px) { .nav-bar { justify-content: center; padding: 18px 20px; } }

.hero { padding: 80px 40px 60px; max-width: 900px; margin: 0 auto; border-bottom: 0.5px solid #e2e8f0; }
.hero-tag { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: #0f172a; margin-bottom: 16px; }
.hero h1 { font-size: 48px; font-weight: 600; letter-spacing: -1px; margin-bottom: 8px; color: #0f172a; }
.hero h1 span { color: #166534; }
.hero .role { font-size: 20px; color: #475569; margin-bottom: 24px; }
.hero .bio { font-size: 16px; color: #64748b; max-width: 580px; line-height: 1.8; margin-bottom: 32px; }
.hero-links { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-contact-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 900px; background: #2dd4bf; border-radius: 28px; padding: 24px; }
.contact-box { display: flex; flex-direction: column; gap: 12px; width: min(100%, 420px); padding: 16px; background: #ffffff; border: 1px solid #dbeafe; border-radius: 16px; box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06); }
.contact-item { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; }
.contact-label { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #2563eb; }
.contact-text { font-size: 15px; color: #334155; font-weight: 600; }
.contact-link { font-size: 15px; font-weight: 600; color: #0f172a; text-decoration: none; transition: color 0.2s ease, text-decoration 0.2s ease; }
.contact-link:hover { color: #2563eb; text-decoration: underline; }
.social-item { display: flex; align-items: center; gap: 10px; justify-content: flex-start; }
.linkedin-link, .instagram-link, .youtube-link { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 8px; border-radius: 10px; box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08); position: relative; }
.linkedin-link { background: #0a66c2; }
.instagram-link { background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af, #515bd4); }
.youtube-link { background: #ff0000; }
.linkedin-link img, .instagram-link img, .youtube-link img { width: 18px; height: 18px; filter: brightness(0) invert(1); }
.linkedin-link:hover, .instagram-link:hover, .youtube-link:hover { text-decoration: none; transform: translateY(-1px); }
.linkedin-link:hover::after, .instagram-link:hover::after, .youtube-link:hover::after { content: attr(title); position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%); background: #0f172a; color: #fff; font-size: 10px; font-weight: 600; letter-spacing: 0.04em; padding: 5px 8px; border-radius: 6px; white-space: nowrap; }
.contact-illustration { width: min(100%, 360px); height: auto; display: block; border-radius: 20px; background: #2dd4bf; padding: 10px; box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 8px; font-size: 14px; font-weight: 500; transition: all 0.2s ease; }
.btn-primary { background: #2563eb; color: #fff; border: none; }
.btn-primary:hover { background: #1d4ed8; }
.btn-ghost { border: 0.5px solid #cbd5e1; color: #475569; }
.btn-ghost:hover { border-color: #2563eb; color: #2563eb; }

.section { max-width: 900px; margin: 0 auto; padding: 60px 40px; border-bottom: 0.5px solid #e2e8f0; }
.section-label { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: #2563eb; margin-bottom: 32px; }

.skills-grid, .services-grid, .infra-grid { display: grid; gap: 16px; }
.skills-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.services-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.infra-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.skill-card, .service-card, .infra-card, .login-card { background: #ffffff; border: 0.5px solid #e2e8f0; border-radius: 12px; padding: 24px; transition: all 0.2s ease; }
.skill-card:hover, .service-card:hover { border-color: #2563eb; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(37,99,235,0.08); }
.thumbnail-card { margin-top: 20px; border-radius: 14px; overflow: hidden; border: 0.5px solid #e2e8f0; }
.thumbnail-card img { display: block; width: 100%; height: auto; }
.skill-icon { font-size: 24px; margin-bottom: 12px; }
.skill-name { font-size: 14px; font-weight: 500; color: #0f172a; margin-bottom: 4px; }
.skill-desc, .service-desc, .bio { font-size: 14px; color: #64748b; line-height: 1.7; }
.service-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.service-name { font-size: 15px; font-weight: 500; color: #0f172a; }
.service-badge { font-size: 11px; padding: 3px 10px; border-radius: 20px; }
.badge-live { background: #f0fdf4; color: #16a34a; border: 0.5px solid #bbf7d0; }
.badge-pending { background: #fefce8; color: #ca8a04; border: 0.5px solid #fef08a; }
.service-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 11px; padding: 3px 8px; border-radius: 4px; background: #f1f5f9; color: #64748b; }

.infra-id { font-size: 11px; color: #2563eb; font-family: monospace; margin-bottom: 8px; }
.infra-name { font-size: 14px; font-weight: 500; color: #0f172a; margin-bottom: 4px; }
.infra-type { font-size: 11px; padding: 2px 8px; border-radius: 4px; display: inline-block; }
.type-vm { background: #ede9fe; color: #6d28d9; border: 0.5px solid #ddd6fe; }
.type-lxc { background: #e0f2fe; color: #0369a1; border: 0.5px solid #bae6fd; }

.network-flow { background: #ffffff; border: 0.5px solid #e2e8f0; border-radius: 12px; padding: 24px; }
.flow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.flow-node { background: #f1f5f9; border-radius: 8px; padding: 8px 16px; font-size: 13px; font-family: monospace; color: #475569; }
.flow-node.highlight { background: #eff6ff; color: #2563eb; border: 0.5px solid #bfdbfe; }
.flow-arrow { color: #2563eb; font-size: 18px; }
.network-note { font-size: 12px; color: #94a3b8; line-height: 1.6; }

.footer { max-width: 900px; margin: 0 auto; padding: 40px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-left { font-size: 13px; color: #94a3b8; }
.footer-links { display: flex; gap: 16px; }
.footer-link { font-size: 13px; color: #64748b; transition: color 0.2s; }
.footer-link:hover { color: #2563eb; }

.login-card { max-width: 520px; margin: 0 auto; }
.login-input { width: 100%; padding: 14px 16px; margin-bottom: 16px; border-radius: 10px; border: 1px solid #cbd5e1; font-size: 15px; }
.login-error { display: none; margin-bottom: 16px; color: #b91c1c; font-size: 14px; }

@media (max-width: 740px) { .hero { padding: 60px 20px 40px; } .section { padding: 40px 20px; } }
