:root{--bg:#0F172A;--surface:rgba(255,255,255,.06);--surface-2:rgba(255,255,255,.09);--white:#FFF;--text:#E2E8F0;--muted:#94A3B8;--teal:#00979D;--teal-light:#00C2C8;--radius:16px;--shadow:0 12px 32px rgba(0,0,0,.35)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body,html{margin:0;padding:0}body{background:var(--bg);color:var(--text);font-family:'Inter',system-ui,-apple-system,Segoe UI,Arial,sans-serif;line-height:1.7}h1,h2,h3{font-family:'Poppins',sans-serif;color:var(--white);margin:.4em 0;line-height:1.25}a{color:var(--teal-light)}section{scroll-margin-top:96px;width:min(1120px,90%);margin:0 auto;padding:5rem 0}img{max-width:100%}
header{position:sticky;top:0;z-index:999;backdrop-filter:blur(12px);background:rgba(15,23,42,.85);border-bottom:1px solid rgba(255,255,255,.08)}
#header-container{display:flex;justify-content:space-between;align-items:center;width:min(1120px,90%);margin:0 auto;padding:.8rem 0;position:relative}
#main-index{color:var(--white);text-decoration:none;font-family:'Poppins',sans-serif;font-size:1.45rem;font-weight:700}#main-index span{color:var(--teal-light);margin-left:.35rem}
#navbar{display:flex;gap:.4rem}#navbar a{color:var(--text);text-decoration:none;font-weight:500;padding:.45rem .8rem;border-radius:999px;transition:.25s}#navbar a:hover,#navbar a.active{color:var(--white);background:rgba(0,151,157,.22)}
#menu-toggle{display:none;border:1px solid rgba(255,255,255,.25);background:transparent;color:var(--white);font-size:1.35rem;border-radius:10px;padding:.2rem .6rem;cursor:pointer}
.hero{min-height:calc(100vh - 72px);display:flex;align-items:center;justify-content:space-between;gap:3rem;padding-top:3rem}
#hello-msg{letter-spacing:.35em;font-size:.85rem;font-weight:600;color:var(--teal-light)}
#my-name{font-size:clamp(2.6rem,6vw,4.2rem);margin:.25em 0}#my-name span{color:var(--teal-light)}
#typing-animation{display:inline-block;min-height:1.6em;font-size:clamp(1.15rem,2.5vw,1.6rem);font-weight:600;color:var(--white);border-right:2px solid var(--teal-light);padding-right:.25rem;white-space:nowrap;overflow:hidden}
.hero h2{font-size:clamp(1.05rem,2vw,1.35rem);font-family:'Inter',sans-serif;font-weight:600;color:var(--text)}
.hero-text{max-width:56ch;color:var(--muted);font-size:1.06rem}
.stat-chips{display:flex;flex-wrap:wrap;gap:.6rem;margin:1.4rem 0}.chip{background:var(--surface);border:1px solid rgba(0,194,200,.35);color:var(--text);padding:.45rem .85rem;border-radius:999px;font-size:.92rem}.chip strong{color:var(--teal-light)}
.cta-row{display:flex;flex-wrap:wrap;gap:.7rem;margin-top:1.2rem}.btn{display:inline-block;text-decoration:none;font-weight:600;padding:.75rem 1.35rem;border-radius:999px;transition:.25s;border:2px solid var(--teal)}.btn-primary{background:var(--teal);color:#fff}.btn-primary:hover{background:var(--teal-light);border-color:var(--teal-light);transform:translateY(-2px)}.btn-outline{background:transparent;color:var(--white)}.btn-outline:hover{background:rgba(0,151,157,.2);transform:translateY(-2px)}
#my-img{flex-shrink:0}#my-img img{width:420px;height:420px;object-fit:cover;border-radius:50%;border:6px solid rgba(0,194,200,.35);box-shadow:var(--shadow)}
.section-title{text-align:center;font-size:clamp(2rem,4vw,2.8rem);margin-bottom:.2rem}.section-title::after{content:'';display:block;width:72px;height:4px;border-radius:999px;background:linear-gradient(90deg,var(--teal),var(--teal-light));margin:.7rem auto 0}.section-subtitle{text-align:center;color:var(--muted);margin:0 auto 2.6rem;max-width:60ch}
.cards-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.4rem}.card{background:var(--surface);border:1px solid rgba(255,255,255,.08);border-radius:var(--radius);padding:1.6rem;box-shadow:0 8px 24px rgba(0,0,0,.22)}.card:hover{background:var(--surface-2)}
.year{color:var(--teal-light);font-weight:600;font-size:.92rem;margin:0 0 .4rem}.place{color:var(--white);font-weight:600;margin:.1rem 0 .8rem}.card ul{margin:.4rem 0 0;padding-left:1.15rem;color:var(--muted)}.card li{margin:.35rem 0}
#about-container{display:grid;grid-template-columns:.85fr 1.4fr;gap:1.4rem;align-items:start}#profile-img{width:150px;height:150px;object-fit:cover;border-radius:50%;border:4px solid rgba(0,194,200,.4);display:block;margin-bottom:1rem}#me-info p{margin:.45rem 0;color:var(--muted)}#me-info span{color:var(--white);font-weight:600;margin-right:.4rem}.about-text p{color:var(--muted);margin-top:0}.about-text strong{color:var(--white)}
.teach-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem;margin-top:1.4rem}.teach-item{background:rgba(0,151,157,.09);border:1px solid rgba(0,194,200,.2);border-radius:14px;padding:1rem}.teach-item i{font-size:1.5rem;color:var(--teal-light)}.teach-item h3{font-size:1rem;margin:.55rem 0 .25rem}.teach-item p{font-size:.93rem;margin:0}
.projects-grid{grid-template-columns:repeat(2,1fr)}.project{padding:0;overflow:hidden}.project-img,.project-visual{width:100%;height:210px;object-fit:cover;display:flex;align-items:center;justify-content:center}.project-visual i{font-size:4.2rem;color:#fff}.visual-car{background:linear-gradient(135deg,#00979D,#0F766E)}.visual-game{background:linear-gradient(135deg,#7C3AED,#00979D)}.visual-web{background:linear-gradient(135deg,#0EA5E9,#123B4F)}.project-content{padding:1.4rem 1.6rem 1.6rem}.project-content p{color:var(--muted)}
.tags{display:flex;flex-wrap:wrap;gap:.45rem;margin:.9rem 0 1.1rem}.tags span{background:rgba(0,151,157,.16);border:1px solid rgba(0,194,200,.3);color:var(--text);font-size:.8rem;font-weight:500;padding:.22rem .6rem;border-radius:999px}.project-link{font-weight:600;text-decoration:none}.project-link:hover{text-decoration:underline}.more-projects{text-align:center;color:var(--muted);margin-top:1.8rem}
.skills-grid{grid-template-columns:repeat(3,1fr)}.skill-card h3{font-size:1.05rem;color:var(--teal-light)}.skill-icons{display:flex;flex-wrap:wrap;gap:1.1rem;justify-content:center;margin-top:2.2rem;background:var(--surface);border:1px solid rgba(255,255,255,.08);border-radius:var(--radius);padding:1.3rem}.skill-icons img{width:46px;height:46px;object-fit:contain;transition:.25s}.skill-icons img:hover{transform:translateY(-4px) scale(1.08)}
.contact-grid{grid-template-columns:repeat(4,1fr)}.contact-card{text-align:center}.contact-card i{font-size:1.8rem;color:var(--teal-light)}.contact-card a{color:var(--text);text-decoration:none;word-break:break-word}.contact-card a:hover{color:var(--teal-light)}
.social-row{display:flex;justify-content:center;gap:1rem;margin-top:2.2rem}.social-row a{width:52px;height:52px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:var(--surface);border:1px solid rgba(255,255,255,.12);color:var(--white);font-size:1.35rem;text-decoration:none;transition:.25s}.social-row a:hover{background:var(--teal);transform:translateY(-3px)}
footer{border-top:1px solid rgba(255,255,255,.08);text-align:center;color:var(--muted);padding:1.6rem 5%;background:#0B1220}
@media(max-width:980px){.cards-grid,.skills-grid{grid-template-columns:repeat(2,1fr)}.contact-grid{grid-template-columns:repeat(2,1fr)}#about-container{grid-template-columns:1fr}.hero{flex-direction:column-reverse;text-align:center;justify-content:center}.stat-chips,.cta-row{justify-content:center}#my-img img{width:300px;height:300px}}
@media(max-width:760px){#menu-toggle{display:block}#navbar{display:none;flex-direction:column;position:absolute;top:110%;right:0;width:220px;background:#0B1220;border:1px solid rgba(0,194,200,.35);border-radius:14px;padding:.6rem;box-shadow:var(--shadow)}#navbar.show{display:flex}.projects-grid{grid-template-columns:1fr}section{padding:3.5rem 0}}
@media(max-width:560px){.cards-grid,.skills-grid,.contact-grid,.teach-grid{grid-template-columns:1fr}#my-img img{width:240px;height:240px}#typing-animation{white-space:normal;border-right:none}}
