* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; font-family: 'Poppins', sans-serif; }
:root {
  --bg: #071226;
  --panel: #0b1624;
  --accent1: #7b06ff;
  --accent2: #00a0ff;
  --text: #e6f3ff;
  --muted: #a9c5e7;
  --glass: rgba(255, 255, 255, 0.12);
  --border: rgba(255, 255, 255, 0.22);
}
:root.dark {
  --bg: #030713;
  --panel: #0a0f1e;
  --text: #dbecff;
  --muted: #a3c4ff;
}
html, body { min-height: 100%; width: 100%; background: radial-gradient(circle at 20% 20%, rgba(123,6,255,0.16), transparent 45%), radial-gradient(circle at 80% 90%, rgba(0,160,255,0.14), transparent 48%), var(--bg); color: var(--text); overflow-x: hidden; }
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(150deg, rgba(123,6,255,0.15), rgba(0,160,255,0.12), rgba(7,18,38,0.35));
  mix-blend-mode: screen;
  animation: backwave 20s ease-in-out infinite;
}
@keyframes backwave { 0% { transform: translateY(0);} 50% { transform: translateY(12px);} 100% { transform: translateY(0);} }
.welcome-screen { position: fixed; inset: 0; z-index: 9999; background: linear-gradient(135deg, rgba(7,18,38,0.95), rgba(11,22,52,0.95)); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.welcome-vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 30% 30%, rgba(123,6,255,0.35), transparent 50%), radial-gradient(circle at 75% 70%, rgba(0,160,255,0.35), transparent 46%); filter: blur(8px); animation: gentlespin 30s linear infinite; }
@keyframes gentlespin { 0% { transform: rotate(0deg);} 100% { transform: rotate(360deg);} }
.welcome-content { position: relative; z-index: 1; text-align: center; max-width: 680px; padding: 2rem; animation: fadeInZoom 0.8s ease forwards; }
@keyframes fadeInZoom { from { opacity: 0; transform: scale(0.9);} to { opacity: 1; transform: scale(1);} }
@keyframes explosionBurst { 0% { opacity: 1; transform: scale(1) rotate(0deg); filter: blur(0px); } 40% { opacity: 1; transform: scale(1.3) rotate(8deg); } 100% { opacity: 0; transform: scale(0.1) rotate(720deg); filter: blur(20px); } }
.welcome-content.exit { animation: explosionBurst 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
.welcome-content h1 { font-size: clamp(2rem, 5vw, 4rem); font-weight: 800; line-height: 1.1; color: var(--text); }
.welcome-content h1 span { background: linear-gradient(90deg, var(--accent1), var(--accent2)); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.welcome-content p { margin: 1.2rem 0 1.8rem; font-size: 1.15rem; color: var(--muted); }
.browse-btn { padding: 1rem 2rem; border: 2px solid transparent; border-radius: 0.8rem; cursor: pointer; font-weight: 700; font-size: 1rem; color: #fff; background: linear-gradient(135deg, var(--accent1), var(--accent2)); box-shadow: 0 12px 28px rgba(123,6,255,0.35); position: relative; overflow: visible; transition: transform .25s ease, box-shadow .25s ease; animation: intensePulse 1.8s ease-in-out infinite; }
@keyframes intensePulse { 0%, 100% { box-shadow: 0 12px 28px rgba(123,6,255,0.35), 0 0 20px rgba(123,6,255,0.2); transform: scale(1); } 50% { box-shadow: 0 18px 48px rgba(0,160,255,0.8), 0 0 40px rgba(123,6,255,0.5); transform: scale(1.05); } }
.browse-btn:hover { transform: scale(1.05) translateY(-3px); box-shadow: 0 15px 36px rgba(0,160,255,0.45); animation: none; }
.browse-btn.clicked { animation: buttonExplode 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
@keyframes buttonExplode { 0% { transform: scale(1); box-shadow: 0 12px 28px rgba(123,6,255,0.35), 0 0 0px rgba(0,160,255,0); } 40% { transform: scale(1.3); box-shadow: 0 0 60px rgba(0,160,255,1), 0 0 100px rgba(123,6,255,0.8); } 100% { transform: scale(0.6) translateY(-40px); opacity: 0; box-shadow: 0 0 0px rgba(0,160,255,0); } }
.browse-btn::before { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(255,255,255,0.2), rgba(255,255,255,0)); transform: translateX(-105%); transition: transform .55s ease; }
.browse-btn:hover::before { transform: translateX(105%); }
.welcome-screen.hidden { animation: screenWarp 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
@keyframes screenWarp { 0% { opacity: 1; transform: scale(1) perspective(1200px) rotateX(0deg) rotateY(0deg); } 30% { opacity: 1; transform: scale(1.1) perspective(1200px) rotateX(15deg) rotateY(-15deg); } 100% { opacity: 0; visibility: hidden; transform: scale(0.5) perspective(1200px) rotateX(-45deg) rotateY(45deg); } }
body > * { position: relative; z-index: 1; }
.top-nav { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; padding: 1rem 2rem; display: flex; align-items: center; justify-content: space-between; background: rgba(8,14,30,0.7); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(123,6,255,0.2); }
.logo { font-size: 1.6rem; font-weight: 800; color: var(--text); background: linear-gradient(130deg, var(--accent1), var(--accent2)); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links { display: flex; gap: 1.5rem; }
@media (max-width: 850px) { .nav-links { right: -100% !important; } }
.nav-links li a { color: var(--text); font-weight: 500; font-size: .95rem; position: relative; transition: .25s ease; }
.nav-links li a:hover, .nav-links li a.active { color: #fff; }
.nav-links li a::after { content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: linear-gradient(90deg, var(--accent1), var(--accent2)); transition: width .25s ease; }
.nav-links li a:hover::after { width: 100%; }
#menu-toggle { display: none; color: var(--text); font-size: 1.8rem; cursor: pointer; }
.nav-actions { display: flex; gap: 0.8rem; align-items: center; }
section { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 10rem 2rem 6rem; min-height: 82vh; }
.hero-section { display: flex; align-items: center; justify-content: center; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.hero-text h2 { font-size: clamp(2rem, 5vw, 4rem); line-height: 1.1; margin-bottom: 1rem; }
.hero-text h2 span { background: linear-gradient(90deg, var(--accent1), var(--accent2)); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.type-target { font-size: 1.2rem; color: var(--muted); min-height: 1.5rem; margin-bottom: 1.4rem; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; border: 2px solid rgba(255,255,255,0.2); border-radius: .65rem; padding: .75rem 1.25rem; font-weight: 700; font-size: .95rem; cursor: pointer; transition: .3s ease; text-decoration: none; color: #fff; }
.btn.primary { background: linear-gradient(135deg, var(--accent1), var(--accent2)); box-shadow: 0 10px 24px rgba(123,6,255,0.4); }
.btn.outline { background: rgba(255,255,255,0.06); }
.btn.small { font-size: .82rem; padding: .5rem .9rem; border-radius: .5rem; }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; margin-top: 1.5rem; }
.stat-card { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.17); border-radius: 1rem; padding: 1rem 1.15rem; backdrop-filter: blur(10px); opacity:0; transform: translateY(14px); transition: opacity .4s ease, transform .4s ease; }
.stat-card.visible { opacity: 1; transform: translateY(0); }
.stat-card h3 { color: #fff; font-size: 1.5rem; margin-bottom: .25rem; }
.stat-card p { color: var(--muted); font-size: .9rem; }
.hero-card-wrap { display: flex; flex-direction: column; gap: 1.5rem; align-items: center; width: 100%; max-width: 380px; }
.profile-photo-frame { width: 100%; max-width: 320px; position: relative; border-radius: 16px; overflow: hidden; box-shadow: 0 0 30px rgba(123,6,255,0.4), 0 20px 60px rgba(0,160,255,0.3), inset 0 0 20px rgba(0,160,255,0.1); border: 2px solid rgba(123,6,255,0.5); padding: 8px; background: linear-gradient(135deg, rgba(123,6,255,0.2), rgba(0,160,255,0.2)); animation: photoGlow 3s ease-in-out infinite; }
@keyframes photoGlow { 0%, 100% { box-shadow: 0 0 30px rgba(123,6,255,0.4), 0 20px 60px rgba(0,160,255,0.3), inset 0 0 20px rgba(0,160,255,0.1); } 50% { box-shadow: 0 0 50px rgba(0,160,255,0.6), 0 25px 80px rgba(123,6,255,0.5), inset 0 0 30px rgba(0,160,255,0.2); } }
.profile-photo { width: 100%; height: auto; display: block; border-radius: 12px; transition: transform .3s ease, filter .3s ease; }
.hero-card { width: 100%; max-width: 380px; background: rgba(9,14,29,0.72); border: 1px solid rgba(123,6,255,0.3); border-radius: 20px; box-shadow: 0 22px 40px rgba(0,0,0,0.35); padding: 1.6rem; transform-style: preserve-3d; transition: transform .25s ease, box-shadow .25s ease; }
.profile-photo-frame { width: 100%; max-width: 320px; position: relative; border-radius: 16px; overflow: hidden; box-shadow: 0 0 30px rgba(123,6,255,0.4), 0 20px 60px rgba(0,160,255,0.3), inset 0 0 20px rgba(0,160,255,0.1); border: 2px solid rgba(123,6,255,0.5); padding: 8px; background: linear-gradient(135deg, rgba(123,6,255,0.2), rgba(0,160,255,0.2)); animation: photoGlow 3s ease-in-out infinite; }
@keyframes photoGlow { 0%, 100% { box-shadow: 0 0 30px rgba(123,6,255,0.4), 0 20px 60px rgba(0,160,255,0.3), inset 0 0 20px rgba(0,160,255,0.1); } 50% { box-shadow: 0 0 50px rgba(0,160,255,0.6), 0 25px 80px rgba(123,6,255,0.5), inset 0 0 30px rgba(0,160,255,0.2); } }
.profile-photo { width: 100%; height: auto; display: block; border-radius: 12px; transition: transform .3s ease, filter .3s ease; }
.hero-card:hover { box-shadow: 0 30px 70px rgba(123,6,255,0.45); }
.hero-card h3 { color: #fff; font-size: 1.4rem; margin-bottom: .8rem; }
.hero-card ul { display: grid; gap: .7rem; list-style: none; }
.hero-card li { display: flex; align-items: center; gap: .6rem; color: var(--muted); font-size: .98rem; }
.hero-card p { margin-top: 1rem; color: rgba(230,243,255,0.72); font-size: .9rem; }
.glass-section { background: rgba(11,22,36,0.48); border: 1px solid rgba(123,6,255,0.2); border-radius: 1.25rem; padding: 3rem 2rem; margin-top: -3rem; backdrop-filter: blur(11px); box-shadow: 0 20px 35px rgba(0,0,0,0.35); }
.glass-section h2 { font-size: 2rem; line-height: 1.2; margin-bottom: 1rem; color: #fff; }
.glass-section p { color: var(--muted); font-size: 1rem; line-height: 1.7; max-width: 850px; margin-bottom: 1.5rem; }
.cta-cards { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
.card { display: block; padding: 1.25rem; border: 1px solid rgba(255,255,255,0.16); border-radius: 1rem; background: rgba(8,14,30,0.5); transition: .3s ease; }
.card:hover { transform: translateY(-4px); border-color: rgba(123,6,255,0.35); box-shadow: 0 14px 28px rgba(0,0,0,0.26); }
.card i { font-size: 1.25rem; color: var(--accent2); margin-bottom: .8rem; display: block; }
.card h3 { color: #fff; margin-bottom: .35rem; }
.card p { color: var(--muted); font-size: .9rem; }
.skill-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1.5rem; align-items: center; }
.skill { margin-bottom: 1rem; opacity:0; transform: translateY(15px); transition: opacity .5s ease, transform .5s ease; }
.skill.visible { opacity:1; transform: translateY(0); }
.skill header { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: .4rem; color: #fff; }
.bar-bg { background: rgba(255,255,255,0.12); border-radius: 999px; height: 12px; overflow: hidden; }
.bar-fill { background: linear-gradient(135deg, var(--accent1), var(--accent2)); height: 100%; width: 0; transition: width 1.2s ease; }
.skill-sphere { display: flex; align-items: center; justify-content: center; min-height: 220px; }
.orb { width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle at 35% 25%, rgba(123,6,255,0.65), rgba(0,160,255,0.3) 60%, rgba(7,18,38,0.3)); box-shadow: 0 0 36px rgba(0,160,255,0.5), 0 0 18px rgba(123,6,255,0.5); animation: orbPulse 2.8s ease-in-out infinite; }
@keyframes orbPulse { 0%,100% { transform: scale(1);} 50% { transform: scale(1.08);} }
.projects-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.project-card { background: rgba(12,21,39,0.6); border: 1px solid rgba(123,6,255,0.25); border-radius: 1rem; padding: 1.2rem; display: flex; flex-direction: column; gap: .6rem; transition: .25s ease; opacity:0; transform: translateY(15px); }
.project-card:hover { transform: translateY(-5px); border-color: rgba(0,160,255,0.65); }
.project-card.visible { opacity:1; transform: translateY(0); }
.project-card h3 { color: #fff; }
.project-card p { color: var(--muted); font-size: .92rem; }
.profiles-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.profile-card { background: rgba(12,21,39,0.6); border: 1px solid rgba(123,6,255,0.25); border-radius: 1rem; padding: 1.2rem; display: flex; flex-direction: column; gap: .6rem; transition: .25s ease; opacity:0; transform: translateY(15px); }
.profile-card:hover { transform: translateY(-5px); border-color: rgba(0,160,255,0.65); }
.profile-card.visible { opacity:1; transform: translateY(0); }
.profile-card i { font-size: 1.8rem; color: var(--accent2); }
.profile-card h3 { color: #fff; }
.profile-card p { color: var(--muted); font-size: .9rem; }
.site-foot { text-align: center; padding: 1.2rem 1rem; color: var(--muted); font-size: .85rem; }
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.contact-info { background: rgba(11,22,36,0.5); border: 1px solid rgba(123,6,255,0.2); border-radius: 1rem; padding: 1.3rem; }
.contact-info p { color: var(--muted); margin: .7rem 0; font-size: .95rem; display: flex; align-items: center; gap: .6rem; }
.contact-form { display: grid; gap: .8rem; background: rgba(11,22,36,0.4); border: 1px solid rgba(123,6,255,0.2); border-radius: 1rem; padding: 1rem; }
.contact-form input, .contact-form textarea { background: rgba(10,15,26,0.85); border: 1px solid rgba(123,6,255,0.3); color: #fff; padding: .8rem 1rem; border-radius: .7rem; font-size: .95rem; outline: none; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent2); box-shadow: 0 0 0 2px rgba(0,160,255,0.2); }
#particle-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; mix-blend-mode: screen; opacity: 0.95; }
.competencies-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin-top: 1.5rem; }
.competency-group { opacity: 0; transform: translateY(15px); transition: opacity .5s ease, transform .5s ease; }
.competency-group.visible { opacity: 1; transform: translateY(0); }
.competency-group h3 { color: var(--accent2); font-size: 1.15rem; margin-bottom: 1rem; font-weight: 700; }
.competency-group ul { list-style: none; display: flex; flex-direction: column; gap: .8rem; }
.competency-group li { color: var(--muted); font-size: .95rem; line-height: 1.6; padding-left: 1.5rem; position: relative; }
.competency-group li::before { content: '▸'; position: absolute; left: 0; color: var(--accent1); font-weight: bold; }
@media (max-width: 1060px) { .hero-grid { grid-template-columns: 1fr; } .skill-layout { grid-template-columns: 1fr; } .cta-cards { grid-template-columns: 1fr; } .profiles-grid { grid-template-columns: 1fr; } .contact-wrap { grid-template-columns: 1fr; } .competencies-grid { grid-template-columns: 1fr; } }
@media (max-width: 850px) { .top-nav { padding: 1rem .75rem; } .nav-links { display: none !important; } #menu-toggle { display: none !important; } }
@media (max-width: 768px) { .welcome-screen { z-index: 9998; } .top-nav { z-index: 9997; } }
@media (max-width: 540px) { section { padding: 7rem 1rem 5rem; } .hero-card { max-width: 100%; } .hero-text h2 { font-size: 2.1rem; } .nav-links { width: min(70vw, 240px); padding: 3.5rem 1rem; } .top-nav { padding: 0.8rem 0.5rem; } .logo { font-size: 1.3rem; } }
@media (max-width: 375px) { .nav-links { width: min(65vw, 220px); padding: 3.5rem 0.8rem; gap: 0.8rem; } .nav-links li a { font-size: 0.95rem; } .top-nav { padding: 0.8rem 0.5rem; } .logo { font-size: 1.2rem; } section { padding: 6rem 0.75rem 4rem; } .welcome-content { padding: 1.5rem; } .welcome-content h1 { font-size: clamp(1.5rem, 4vw, 3rem); } .hero-text h2 { font-size: 1.8rem; } }
@media (prefers-reduced-motion: reduce) { * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } }

