* { margin: 0; padding: 0; box-sizing: border-box; }
:root { --bg: #070e1c; --bg-card: #0d1a30; --bg-card-hover: #132545; --text: #ffffff; --text-secondary: #94a3b8; --border: rgba(255, 255, 255, 0.08); --accent: #0ea5e9; }
::selection { background: var(--accent); color: #fff; }
img { -webkit-user-drag: none; user-select: none; }
body { user-select: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; overflow-x: hidden; display: flex; flex-direction: column; align-items: center; }
.bio-section p { user-select: text; -webkit-user-select: text; -moz-user-select: text; -ms-user-select: text; }
html { scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.15) var(--bg); }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.25); }
.bg-grid { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: radial-gradient(circle at 15% 50%, rgba(205, 133, 63, 0.15), transparent 50%), radial-gradient(circle at 85% 20%, rgba(59, 130, 246, 0.15), transparent 50%); z-index: 0; pointer-events: none; transform: translateZ(0); }
#particles-js { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.cursor-glow { position: fixed; width: 200px; height: 200px; background: radial-gradient(circle, rgba(14, 165, 233, 0.08) 0%, transparent 70%); z-index: 1; border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.lang-switch { position: fixed; top: 20px; right: 20px; z-index: 100; background: var(--bg-card); border: 1px solid var(--border); padding: 8px 15px; border-radius: 12px; cursor: pointer; font-weight: 600; font-size: 0.9rem; transition: 0.3s; }
.lang-switch:hover { border-color: var(--accent); }
.lang-switch span { color: var(--text-secondary); transition: 0.3s; }
.lang-switch span.active { color: var(--accent); }
.container { position: relative; z-index: 1; width: 100%; max-width: 700px; margin: 0 auto; padding: 80px 36px; display: flex; flex-direction: column; align-items: center; gap: 40px; }
.container > * { max-width: 100%; }
.avatar-wrapper { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.avatar { position: relative; width: 180px; height: 180px; }
.avatar-ring { position: absolute; inset: -3px; border-radius: 50%; background: linear-gradient(135deg, #061529, #0ea5e9, #0b1f3a); animation: rotate 3s linear infinite; }
.avatar-img { position: absolute; inset: 3px; width: calc(100% - 6px); height: calc(100% - 6px); object-fit: cover; border-radius: 50%; border: 3px solid var(--bg); }
@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.info { text-align: center; width: 100%; }
.name { font-size: 3rem; font-weight: 700; margin-bottom: 10px; }
.username { font-size: 1.3rem; color: var(--text-secondary); margin-bottom: 10px; }
.tagline { font-size: 1.1rem; color: var(--accent); font-style: italic; min-height: 24px; transition: opacity 0.5s ease-in-out; }
.bio-section { width: 100%; text-align: center; margin-bottom: 10px; padding: 0 10px; }
.bio-section p { color: var(--text-secondary); font-size: 1rem; line-height: 1.6; max-width: 500px; margin: 0 auto; }
.cta-buttons { display: flex; gap: 15px; justify-content: center; margin-top: 25px; flex-wrap: wrap; width: 100%; }
.cta-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: 12px; font-weight: 600; text-decoration: none; transition: 0.3s; }
.cta-btn.primary { background: var(--accent); color: #fff; border: 1px solid var(--accent); }
.cta-btn.primary:hover { background: #38bdf8; border-color: #38bdf8; transform: translateY(-3px); }
.cta-btn.secondary { background: var(--bg-card); border: 1px solid var(--border); color: var(--text); }
.cta-btn.secondary:hover { border-color: var(--accent); transform: translateY(-3px); }
.roles { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; width: 100%; max-width: 650px; }
.role { display: flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; color: var(--text-secondary); font-size: 0.95rem; font-weight: 500; transition: 0.2s; white-space: nowrap; }
.role i { font-size: 1.1rem; display: flex; align-items: center; justify-content: center; }
.role > span { display: flex; align-items: center; line-height: 1; margin-top: 1px; }
.role:hover { border-color: var(--accent); color: var(--text); }
.links, .projects { width: 100%; display: flex; flex-direction: column; gap: 15px; }
.link-card, .project-card { display: flex; align-items: center; gap: 20px; padding: 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px; text-decoration: none; color: var(--text); transition: 0.2s; cursor: pointer; width: 100%; box-sizing: border-box; }
.link-card:hover, .project-card:hover { background: var(--bg-card-hover); border-color: var(--accent); transform: translateY(-3px); }
.project-card.static { cursor: default; }
.project-card.static:hover { background: var(--bg-card); transform: none; border-color: var(--accent); }
.edu-card { display: flex; align-items: center; gap: 20px; padding: 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px; width: 100%; box-sizing: border-box; cursor: default; transition: 0.2s; }
.edu-card:hover { border-color: var(--accent); }
.edu-info h3 { font-size: 1.1rem; color: var(--text); margin-bottom: 4px; }
.edu-info p { font-size: 0.9rem; color: var(--text-secondary); }
.skills-wrapper { width: 100%; display: flex; flex-direction: column; gap: 15px; }
.skill-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px; padding: 20px; transition: 0.2s; }
.skill-box:hover { border-color: var(--accent); transform: translateY(-3px); }
.skill-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-weight: 600; font-size: 1rem; color: var(--text); }
.skill-header > span i { font-size: 1.2rem; margin-right: 8px; vertical-align: middle; }
.progress-bar { width: 100%; height: 10px; background: rgba(255, 255, 255, 0.05); border-radius: 10px; overflow: hidden; position: relative; }
.progress { height: 100%; border-radius: 10px; animation: fillProgress 1.5s ease-out forwards; }
@keyframes fillProgress { from { width: 0; } }
.java-steaming-container { position: relative; display: inline-flex; align-items: center; justify-content: center; margin-right: 8px; vertical-align: middle; }
.java-icon { font-size: 1.2rem !important; color: #f89820 !important; position: relative; z-index: 2; margin: 0 !important; }
.java-steaming-container::before, .java-steaming-container::after { content: ''; position: absolute; background: rgba(255, 255, 255, 0.5); border-radius: 50%; pointer-events: none; opacity: 0; z-index: 1; }
.java-steaming-container::before { width: 4px; height: 4px; top: -5px; left: 3px; animation: steamRise 2s infinite ease-out; animation-delay: 0s; }
.java-steaming-container::after { width: 6px; height: 6px; top: -7px; left: 7px; animation: steamRise 2s infinite ease-out; animation-delay: 0.7s; }
@keyframes steamRise { 0% { transform: translateY(0) scale(1); opacity: 0; } 15% { opacity: 0.8; } 100% { transform: translateY(-20px) scale(2); opacity: 0; } }
.animated-calendar { display: inline-block; transform-origin: top center; transition: transform 0.5s; }
#openEventModal:hover .animated-calendar { animation: flipIcon 0.8s forwards ease-in-out; }
@keyframes flipIcon { 0% { transform: perspective(400px) rotateX(0deg); } 100% { transform: perspective(400px) rotateX(-360deg); } }
.glowing-award { transition: all 0.3s ease; }
#openCertModal:hover .glowing-award { filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.8)); transform: scale(1.1); }
.animated-rocket { display: inline-block; transition: transform 0.5s; }
#openProjectsListModal:hover .animated-rocket { animation: rocketLaunch 0.8s ease-in-out; }
@keyframes rocketLaunch { 0% { transform: translateY(0) rotate(0deg) scale(1); opacity: 1; } 40% { transform: translateY(-20px) rotate(15deg) scale(1.1); opacity: 0; } 50% { transform: translateY(20px) rotate(-15deg) scale(0.8); opacity: 0; } 100% { transform: translateY(0) rotate(0deg) scale(1); opacity: 1; } }
.link-card i:first-child { font-size: 1.8rem; width: 30px; text-align: center; }
.project-icon { width: 60px; height: 60px; background: linear-gradient(135deg, #061529, #0ea5e9); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: #fff; flex-shrink: 0; }
.section-title { width: 100%; display: flex; align-items: center; gap: 15px; margin: 25px 0 15px 0; }
.section-title span { color: var(--text-secondary); font-weight: bold; text-transform: uppercase; letter-spacing: 2px; }
.section-title::before, .section-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.footer { position: fixed !important; bottom: 20px; left: 20px; font-size: 0.8rem; opacity: 0.5; z-index: 999; }
.visitor-count { position: fixed !important; bottom: 20px; right: 20px; background: var(--bg-card); padding: 10px 15px; border-radius: 12px; border: 1px solid var(--border); display: flex; gap: 8px; align-items: center; font-weight: bold; z-index: 999; transition: 0.3s; cursor: default; }
.time-widget { position: fixed !important; top: 20px; left: 20px; background: var(--bg-card); padding: 10px 15px; border-radius: 12px; border: 1px solid var(--border); display: flex; gap: 8px; align-items: center; z-index: 999; font-weight: bold; transition: 0.3s; cursor: default; }
.time-widget i, .visitor-count i { color: var(--accent); }
.time-widget:hover, .visitor-count:hover { border-color: var(--accent); background: var(--bg-card-hover); }
.time-widget::after { content: attr(data-tooltip); position: absolute; top: calc(100% + 5px); left: 0; background: var(--accent); color: #fff; padding: 6px 12px; border-radius: 8px; font-size: 0.85rem; font-weight: bold; white-space: nowrap; opacity: 0; visibility: hidden; transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); pointer-events: none; z-index: 1000; }
.time-widget:hover::after { opacity: 1; visibility: visible; top: calc(100% + 10px); }
.visitor-count::after { content: attr(data-tooltip); position: absolute; bottom: calc(100% + 5px); right: 0; background: var(--accent); color: #fff; padding: 6px 12px; border-radius: 8px; font-size: 0.85rem; font-weight: bold; white-space: nowrap; opacity: 0; visibility: hidden; transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); pointer-events: none; z-index: 1000; }
.visitor-count:hover::after { opacity: 1; visibility: visible; bottom: calc(100% + 10px); }
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 1000; display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: 0.3s; padding: 20px; }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content { background: var(--bg); border: 1px solid var(--border); width: 100%; max-width: 600px; padding: 30px; border-radius: 20px; position: relative; transform: scale(0.9); transition: 0.3s; max-height: 90vh; overflow-y: auto; }
.modal-overlay.active .modal-content { transform: scale(1); }
.modal-close { position: absolute; top: 20px; right: 20px; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }
.modal-header { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.modal-icon { width: 60px; height: 60px; background: linear-gradient(135deg, #061529, #0ea5e9); border-radius: 15px; display: flex; justify-content: center; align-items: center; font-size: 1.5rem; color: #fff; flex-shrink: 0; }
.modal-features { list-style: none; margin-top: 10px; }
.modal-features li::before { content: '✓'; color: #57F287; margin-right: 10px; }
.cert-list, .events-wrapper { display: flex; flex-direction: column; gap: 12px; margin-top: 15px; }
.cert-item, .event-item { display: flex; align-items: center; gap: 15px; padding: 15px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; transition: 0.2s; }
.cert-item:hover, .event-item:hover { background: var(--bg-card-hover); border-color: var(--accent); }
.cert-icon { width: 45px; height: 45px; background: rgba(255,255,255,0.05); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--accent); flex-shrink: 0; }
.cert-details h4 { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.cert-details p { font-size: 0.85rem; color: var(--text-secondary); }
.event-date-box { background: rgba(14, 165, 233, 0.15); color: var(--accent); padding: 10px; border-radius: 10px; text-align: center; font-weight: 700; min-width: 65px; flex-shrink: 0; transition: 0.3s; }
@keyframes pulseGlow { 0% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.3); } 70% { box-shadow: 0 0 0 8px rgba(14, 165, 233, 0); } 100% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0); } }
.event-item:hover .event-date-box { transform: scale(1.1) rotate(5deg); background: rgba(14, 165, 233, 0.25); animation: pulseGlow 1.5s infinite; }
.event-date-box span.month { display: block; font-size: 0.95rem; margin-bottom: 2px; }
.event-date-box span.year { display: block; font-size: 0.8rem; opacity: 0.8; }
.event-details h3 { color: #fff; font-size: 1.05rem; margin-bottom: 3px;}
.event-details p { color: var(--text-secondary); font-size: 0.85rem; }
.copy-email-wrapper { position: relative; width: 100%; margin-top: 10px; display: flex; flex-direction: column; gap: 10px; }
.copy-email-box { display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.05); height: 54px; border-radius: 12px; border: 1px solid var(--border); font-size: 1.1rem; font-weight: bold; color: var(--accent); cursor: pointer; transition: 0.3s; user-select: none; -webkit-user-select: none; }
.copy-email-box:hover { border-color: var(--accent); background: rgba(14, 165, 233, 0.1); }
.copy-email-box:active { transform: scale(0.98); }

.email-inner { display: flex; align-items: center; width: 250px; justify-content: flex-start; }
.lang-prefix { font-weight: bold; color: var(--text-secondary); width: 50px; text-align: left; }
.copy-text-span { transition: opacity 0.8s ease-in-out, color 0.4s ease-in-out; width: 200px; text-align: left; }

.cookie-banner { position: fixed; bottom: -100px; left: 50%; transform: translateX(-50%); background: var(--bg-card); border: 1px solid var(--border); padding: 15px 25px; border-radius: 16px; display: flex; align-items: center; gap: 20px; z-index: 9999; opacity: 0; visibility: hidden; transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55); box-shadow: 0 10px 30px rgba(0,0,0,0.5); width: 90%; max-width: 600px; }
.cookie-banner.show { bottom: 20px; opacity: 1; visibility: visible; }
.cookie-content { display: flex; align-items: center; gap: 15px; flex: 1; }
.cookie-content p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.4; margin: 0; }
.cookie-btn { background: var(--accent); color: #fff; border: none; padding: 10px 20px; border-radius: 10px; font-weight: 600; cursor: pointer; transition: 0.3s; white-space: nowrap; }
.cookie-btn:hover { background: #38bdf8; transform: translateY(-2px); }

@media (max-width: 600px) {
  .container { padding: 80px 20px; }
  .name { font-size: 2rem; }
  .bio-section p { font-size: 0.95rem; }
  .lang-switch { top: 15px; right: 15px; padding: 6px 12px; }
  body { background-attachment: fixed; }
  .bg-grid, #particles-js { position: fixed !important; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1; transform: translateZ(0); }
  .time-widget, .visitor-count { position: fixed !important; z-index: 999; transform: translateZ(0); }
  
  .cookie-banner { flex-direction: column; text-align: center; gap: 15px; padding: 20px; bottom: -150px; }
  .cookie-content { flex-direction: column; }
  .cookie-btn { width: 100%; }
}