:root {
  --violet: #7c3aed;
  --pink: #ec4899;
  --amber: #f59e0b;
  --cyan: #06b6d4;
  --green: #10b981;
  --ink: #1e1b3a;
  --muted: #6b6a85;
  --bg: #fbf9ff;
  --grad: linear-gradient(135deg, var(--violet), var(--pink) 55%, var(--amber));
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
a { color: var(--violet); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 8px; }

/* ================= LOGIN PAGE ================= */
.auth-page {
  min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; overflow: hidden; position: relative;
  background: linear-gradient(120deg, #4f46e5, #7c3aed, #db2777, #f97316);
  background-size: 300% 300%; animation: shift 14s ease infinite;
}
@keyframes shift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.55; animation: float 12s ease-in-out infinite; }
.b1 { width: 340px; height: 340px; background: #22d3ee; top: -80px; left: -60px; }
.b2 { width: 300px; height: 300px; background: #fde047; bottom: -90px; right: -40px; animation-delay: -4s; }
.b3 { width: 240px; height: 240px; background: #f472b6; bottom: 20%; left: 12%; animation-delay: -8s; }
@keyframes float { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(30px, -40px) scale(1.12); } }

.card {
  position: relative; z-index: 1; width: min(420px, 100%); padding: 2.2rem 2rem 1.8rem;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.7); border-radius: 28px;
  box-shadow: 0 30px 70px rgba(30, 27, 58, 0.35);
}
.logo {
  width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; margin: -3.2rem auto 1rem;
  font-weight: 800; font-size: 1.7rem; color: #fff; background: var(--grad); box-shadow: 0 10px 24px rgba(236, 72, 153, 0.5);
}
.card h1 { font-size: 1.7rem; text-align: center; font-weight: 700; }
.sub { text-align: center; color: var(--muted); font-size: 0.93rem; margin: 0.4rem 0 1.4rem; }
label { display: block; font-size: 0.82rem; font-weight: 600; margin: 0.9rem 0 0.3rem; }
input[type='text'], input[type='password'] {
  width: 100%; padding: 0.8rem 1rem; font: inherit; color: var(--ink);
  border: 2px solid #e6e1f5; border-radius: 14px; background: #fff; transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15); }
.otp { text-align: center; letter-spacing: 0.35em; font-size: 1.4rem !important; font-weight: 600; }

.btn {
  display: block; width: 100%; margin-top: 1.3rem; padding: 0.85rem 1rem; font: 600 1rem var(--font);
  border: 0; border-radius: 999px; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary { color: #fff; background: var(--grad); box-shadow: 0 10px 24px rgba(236, 72, 153, 0.4); }
.btn.primary:hover { box-shadow: 0 14px 28px rgba(236, 72, 153, 0.55); }
.google-fake { margin: 0; background: #fff; color: var(--ink); border: 2px solid #e6e1f5; }
.google-holder { display: flex; justify-content: center; min-height: 44px; }
.divider { display: flex; align-items: center; gap: 0.8rem; color: var(--muted); font-size: 0.8rem; margin: 1.3rem 0 1rem; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: #e6e1f5; }
.switch { text-align: center; font-size: 0.88rem; color: var(--muted); margin: 1.3rem 0 0; }
.msg { padding: 0.7rem 0.9rem; border-radius: 12px; font-size: 0.87rem; margin-bottom: 1rem; }
.msg.error { background: #ffe4ea; color: #9f1239; }
.msg.info { background: #e0f2fe; color: #075985; }
.qr { display: grid; place-items: center; width: 204px; height: 204px; margin: 0 auto 0.8rem; padding: 12px; background: #fff; border: 2px solid #e6e1f5; border-radius: 18px; font-size: 0.8rem; text-align: center; }
.hint { text-align: center; color: var(--muted); font-size: 0.82rem; margin: 0.4rem 0; }
.secret { font-family: ui-monospace, Menlo, Consolas, monospace; text-align: center; background: #f3efff; color: var(--violet); border-radius: 10px; padding: 0.5rem; margin: 0 0 0.4rem; font-size: 0.9rem; word-break: break-all; }

/* ================= PORTFOLIO ================= */
body.locked { visibility: hidden; }
.wrap { width: min(1080px, 100% - 2.5rem); margin-inline: auto; }
.nav { position: sticky; top: 0; z-index: 10; background: rgba(251, 249, 255, 0.85); backdrop-filter: blur(12px); border-bottom: 1px solid #ece6fb; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.75rem; }
.brand { font-weight: 800; font-size: 1.15rem; text-decoration: none; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav ul { display: flex; gap: 1.3rem; list-style: none; margin: 0; padding: 0; }
.nav ul a { color: var(--ink); text-decoration: none; font-size: 0.9rem; font-weight: 500; }
.nav ul a:hover { color: var(--pink); }
.who { display: flex; align-items: center; gap: 0.6rem; font-size: 0.85rem; color: var(--muted); }
.who img { width: 30px; height: 30px; border-radius: 50%; }
.pill-btn { border: 2px solid var(--violet); color: var(--violet); background: transparent; border-radius: 999px; padding: 0.3rem 0.9rem; font: 600 0.82rem var(--font); cursor: pointer; }
.pill-btn:hover { background: var(--violet); color: #fff; }

.hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(120deg, #4f46e5, #7c3aed 40%, #db2777 75%, #f97316); padding: clamp(3rem, 8vw, 6rem) 0; }
.hero::before, .hero::after { content: ''; position: absolute; border-radius: 50%; filter: blur(50px); opacity: 0.5; }
.hero::before { width: 320px; height: 320px; background: #22d3ee; top: -100px; right: 10%; }
.hero::after { width: 260px; height: 260px; background: #fde047; bottom: -90px; left: 5%; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.5fr 0.8fr; gap: 2.5rem; align-items: center; }
.tag { display: inline-block; background: rgba(255, 255, 255, 0.2); padding: 0.3rem 0.9rem; border-radius: 999px; font-size: 0.8rem; font-weight: 600; margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2.4rem, 6.5vw, 4.4rem); font-weight: 800; }
.hero h1 span { color: #fde047; }
.hero p { font-size: 1.1rem; max-width: 52ch; opacity: 0.95; }
.cta { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.5rem; }
.cta a { text-decoration: none; font-weight: 600; padding: 0.75rem 1.3rem; border-radius: 999px; border: 2px solid #fff; color: #fff; transition: transform 0.15s; }
.cta a:hover { transform: translateY(-2px); }
.cta a.solid { background: #fff; color: var(--violet); }
.photo { width: min(280px, 100%); aspect-ratio: 1; margin-inline: auto; border-radius: 50%; border: 6px solid #fff; box-shadow: 0 24px 50px rgba(0, 0, 0, 0.3); overflow: hidden; background: var(--violet); display: grid; place-items: center; font-size: 4rem; font-weight: 800; }
.photo img { width: 100%; height: 100%; object-fit: cover; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: -2.2rem; position: relative; z-index: 2; }
.stat { background: #fff; border-radius: 20px; padding: 1.1rem 1.2rem; box-shadow: 0 12px 30px rgba(124, 58, 237, 0.15); text-align: center; }
.stat b { display: block; font-size: 1.8rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-size: 0.82rem; color: var(--muted); }

section.block { padding: clamp(2.5rem, 6vw, 4rem) 0 0; }
.title { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 800; margin-bottom: 1.4rem; }
.title i { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about-card { background: #fff; border-radius: 24px; padding: 1.6rem 1.8rem; box-shadow: 0 10px 30px rgba(30, 27, 58, 0.07); border-left: 8px solid var(--pink); }
.about-card ul { padding-left: 1.2rem; margin: 0.6rem 0 0; }

.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.edu { background: #fff; border-radius: 22px; padding: 1.3rem 1.4rem; box-shadow: 0 10px 30px rgba(30, 27, 58, 0.07); border-top: 6px solid var(--violet); }
.edu:nth-child(2) { border-color: var(--pink); }
.edu:nth-child(3) { border-color: var(--amber); }
.edu .when { font-size: 0.8rem; font-weight: 700; color: var(--violet); }
.edu h3 { font-size: 1.15rem; margin: 0.2rem 0 0.4rem; }
.edu p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.edu .score { margin-top: 0.7rem; font-size: 1.6rem; font-weight: 800; color: var(--pink); }

.skill { background: #fff; border-radius: 22px; padding: 1.3rem 1.4rem; box-shadow: 0 10px 30px rgba(30, 27, 58, 0.07); }
.skill h3 { font-size: 1.05rem; margin-bottom: 0.8rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; list-style: none; margin: 0; padding: 0; }
.chips li { padding: 0.3rem 0.85rem; border-radius: 999px; font-size: 0.88rem; font-weight: 600; color: #fff; background: var(--violet); }
.chips li:nth-child(4n+2) { background: var(--pink); }
.chips li:nth-child(4n+3) { background: var(--cyan); }
.chips li:nth-child(4n+4) { background: var(--amber); color: #3b2a00; }

.cert { background: #fff; border-radius: 20px; padding: 1.2rem 1.3rem; box-shadow: 0 10px 30px rgba(30, 27, 58, 0.07); position: relative; overflow: hidden; }
.cert::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--violet); }
.cert:nth-child(4n+2)::before { background: var(--pink); }
.cert:nth-child(4n+3)::before { background: var(--cyan); }
.cert:nth-child(4n+4)::before { background: var(--amber); }
.cert .date { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--pink); }
.cert h3 { font-size: 1rem; margin: 0.25rem 0; }
.cert p { margin: 0; font-size: 0.86rem; color: var(--muted); }

.contact { margin-top: 4rem; color: #fff; border-radius: 30px; padding: clamp(1.8rem, 5vw, 3rem); background: linear-gradient(120deg, #4f46e5, #7c3aed 45%, #db2777); display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; }
.contact h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; margin-bottom: 0.6rem; }
.contact ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; align-content: center; }
.contact small { display: block; opacity: 0.75; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; }
.contact a { color: #fde68a; word-break: break-all; }
footer { text-align: center; color: var(--muted); font-size: 0.85rem; padding: 2.5rem 0; }

@media (max-width: 820px) {
  .hero-grid, .contact { grid-template-columns: 1fr; }
  .photo { width: 200px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .nav ul { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
