*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --white:    #ffffff;
      --bg:       #f5f5f7;
      --bg-card:  #ffffff;
      --text:     #1d1d1f;
      --text-2:   #3a3a3c;
      --text-3:   #6e6e73;
      --text-4:   #a1a1a6;
      --border:   #d2d2d7;
      --border-light: #e8e8ed;
      --blue:     #0071e3;
      --blue-h:   #0077ed;
      --blue-bg:  #f0f6ff;
      --radius:   18px;
      --nav-h:    52px;
      --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
      --shadow-md: 0 8px 32px rgba(0,0,0,.09);
      --shadow-lg: 0 20px 60px rgba(0,0,0,.11);
    }

    html { scroll-behavior: smooth; }

    body {
      font-family: -apple-system, 'Inter', 'Helvetica Neue', Arial, sans-serif;
      background: var(--bg);
      color: var(--text);
      overflow-x: hidden;
      -webkit-font-smoothing: antialiased;
    }

    /* ─── NAV ─── */
    nav {
      position: fixed; top: 0; left: 0; right: 0; z-index: 200;
      height: var(--nav-h);
      background: rgba(255,255,255,.82);
      backdrop-filter: saturate(180%) blur(20px);
      -webkit-backdrop-filter: saturate(180%) blur(20px);
      border-bottom: 1px solid rgba(0,0,0,.08);
      display: flex; align-items: center; justify-content: space-between;
      padding: 0 24px;
    }
    .nav-logo {
      font-size: 15px; font-weight: 600; letter-spacing: -.01em;
      color: var(--text); text-decoration: none;
    }
    .nav-links { display: flex; gap: 30px; list-style: none; }
    .nav-links a {
      font-size: 12px; color: var(--text-3); text-decoration: none;
      letter-spacing: .01em; transition: color .2s;
    }
    .nav-links a:hover { color: var(--text); }

    .hamburger {
      display: none; flex-direction: column; gap: 5px;
      cursor: pointer; padding: 4px;
    }
    .hamburger span {
      display: block; width: 20px; height: 1.5px;
      background: var(--text); border-radius: 2px; transition: all .3s;
    }
    .mobile-menu {
      display: none; position: fixed; top: var(--nav-h); left: 0; right: 0;
      background: rgba(255,255,255,.97);
      backdrop-filter: blur(30px);
      z-index: 199; flex-direction: column; padding: 8px 0 20px;
      border-bottom: 1px solid var(--border-light);
    }
    .mobile-menu.open { display: flex; }
    .mobile-menu a {
      padding: 14px 28px; font-size: 17px; color: var(--text-2);
      text-decoration: none; border-bottom: 1px solid var(--border-light);
    }
    .mobile-menu a:last-child { border-bottom: none; }
    .mobile-menu a:hover { color: var(--blue); }

    /* ─── HERO ─── */
    .hero {
      min-height: 100vh;
      display: flex; flex-direction: column;
      align-items: center; justify-content: center; text-align: center;
      padding: calc(var(--nav-h) + 80px) 24px 100px;
      background: linear-gradient(180deg, #ffffff 0%, #f5f5f7 100%);
      position: relative; overflow: hidden;
    }
    .hero::before {
      content: '';
      position: absolute; top: -10%; left: 50%; transform: translateX(-50%);
      width: 900px; height: 600px;
      background: radial-gradient(ellipse, rgba(0,113,227,.055) 0%, transparent 70%);
      pointer-events: none;
    }
    .hero-chip {
      display: inline-flex; align-items: center; gap: 7px;
      background: var(--blue-bg); border: 1px solid rgba(0,113,227,.2);
      border-radius: 980px; padding: 6px 16px; margin-bottom: 28px;
      font-size: 11px; font-weight: 600; color: var(--blue);
      letter-spacing: .08em; text-transform: uppercase;
      animation: fadeUp .7s ease both;
    }
    .hero-chip::before { content: '●'; font-size: 7px; color: var(--blue); }
    .hero h1 {
      font-size: clamp(52px, 11vw, 104px);
      font-weight: 700; line-height: 1.03; letter-spacing: -.04em;
      color: var(--text);
      animation: fadeUp .7s .08s ease both;
    }
    .hero h1 em { font-style: normal; color: var(--blue); }
    .hero-sub {
      margin-top: 22px; font-size: clamp(17px, 2.5vw, 22px);
      color: var(--text-3); font-weight: 300;
      max-width: 520px; line-height: 1.55;
      animation: fadeUp .7s .16s ease both;
    }
    .hero-cta {
      margin-top: 40px; display: flex; gap: 12px;
      flex-wrap: wrap; justify-content: center;
      animation: fadeUp .7s .24s ease both;
    }
    .btn {
      display: inline-flex; align-items: center; gap: 6px;
      padding: 12px 24px; border-radius: 980px;
      font-size: 15px; font-weight: 500; text-decoration: none;
      transition: all .22s; cursor: pointer; border: none; letter-spacing: -.01em;
    }
    .btn-primary { background: var(--blue); color: #fff; }
    .btn-primary:hover { background: var(--blue-h); transform: translateY(-1px); box-shadow: 0 4px 18px rgba(0,113,227,.28); }
    .btn-ghost { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); }
    .btn-ghost:hover { background: var(--blue-bg); transform: translateY(-1px); }

    .hero-scroll {
      position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
      display: flex; flex-direction: column; align-items: center; gap: 8px;
      animation: fadeIn 1s 1.1s ease both;
    }
    .hero-scroll span { font-size: 10px; color: var(--text-4); letter-spacing: .14em; text-transform: uppercase; }
    .scroll-line {
      width: 1px; height: 36px;
      background: linear-gradient(to bottom, var(--text-4), transparent);
      animation: scrollPulse 2s 1.6s infinite;
    }

    /* ─── SHARED ─── */
    section { padding: 100px 0; }
    .container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
    .divider { height: 1px; background: var(--border-light); }
    .section-eyebrow {
      font-size: 11px; font-weight: 600; letter-spacing: .18em;
      text-transform: uppercase; color: var(--blue); margin-bottom: 12px;
    }
    .section-title {
      font-size: clamp(30px, 5vw, 50px); font-weight: 700;
      letter-spacing: -.03em; line-height: 1.08; color: var(--text);
    }
    .section-sub {
      margin-top: 14px; font-size: 17px; color: var(--text-3);
      font-weight: 300; max-width: 540px; line-height: 1.65;
    }

    /* ─── ABOUT ─── */
    #about { background: var(--white); }
    .about-grid {
      display: grid; grid-template-columns: 1fr 1fr;
      gap: 72px; align-items: center; margin-top: 64px;
    }
    .about-visual { display: flex; justify-content: center; }
    .avatar-ring {
      width: 256px; height: 256px; border-radius: 50%;
      background: radial-gradient(circle at top left, rgba(0,113,227,.16), transparent 38%),
                  linear-gradient(180deg, #ffffff 0%, #eef4ff 100%);
      display: flex; align-items: center; justify-content: center;
      position: relative; overflow: hidden;
      border: 1px solid rgba(0,113,227,.18);
      box-shadow: 0 24px 60px rgba(0,0,0,.12);
    }
    .avatar-ring::before {
      content: '';
      position: absolute; inset: 0;
      border-radius: 50%;
      box-shadow: inset 0 0 0 1px rgba(255,255,255,.75), inset 0 0 0 12px rgba(0,113,227,.06);
      pointer-events: none;
    }
    .avatar-logo {
      width: calc(100% - 40px);
      height: calc(100% - 40px);
      border-radius: 50%;
      object-fit: cover;
      border: 6px solid #fff;
      box-shadow: 0 18px 40px rgba(0,0,0,.12);
      display: block;
    }

    .about-body p {
      font-size: 17px; color: var(--text-2); line-height: 1.75; margin-bottom: 16px;
    }
    .about-body strong { color: var(--text); font-weight: 600; }
    .edu-card {
      margin-top: 28px; display: inline-flex; align-items: center; gap: 14px;
      background: var(--blue-bg); border: 1px solid rgba(0,113,227,.18);
      border-radius: 14px; padding: 16px 22px;
    }
    .edu-icon { font-size: 26px; }
    .edu-info strong { display: block; font-size: 14px; font-weight: 600; color: var(--text); }
    .edu-info span { font-size: 12px; color: var(--text-3); margin-top: 2px; display: block; }

    /* ─── SKILLS ─── */
    #skills { background: var(--bg); }
    .skills-grid {
      display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
      gap: 14px; margin-top: 56px;
    }
    .skill-card {
      background: var(--white); border: 1px solid var(--border-light);
      border-radius: var(--radius); padding: 30px 18px 24px;
      text-align: center; transition: all .28s; box-shadow: var(--shadow-sm);
    }
    .skill-card:hover {
      border-color: rgba(0,113,227,.28); transform: translateY(-5px);
      box-shadow: var(--shadow-md), 0 0 0 1px rgba(0,113,227,.08);
    }
    .skill-icon { font-size: 38px; display: block; margin-bottom: 14px; }
    .skill-name { font-size: 13px; font-weight: 600; color: var(--text); }
    .skill-bar { margin-top: 12px; height: 3px; background: var(--border-light); border-radius: 3px; overflow: hidden; }
    .skill-fill { height: 100%; background: linear-gradient(90deg, var(--blue), #34aadc); border-radius: 3px; }

    /* ─── PROJECTS ─── */
    #projects { background: var(--white); }
    .projects-grid {
      display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 20px; margin-top: 56px;
    }
    .project-card {
      background: var(--bg-card); border: 1px solid var(--border-light);
      border-radius: 22px; overflow: hidden;
      display: flex; flex-direction: column;
      transition: all .3s; box-shadow: var(--shadow-sm);
    }
    .project-card:hover {
      transform: translateY(-7px); box-shadow: var(--shadow-lg);
      border-color: rgba(0,113,227,.18);
    }
    .project-thumb {
      height: 210px; display: flex; align-items: center; justify-content: center;
      font-size: 62px; position: relative; overflow: hidden;
    }
    .thumb-1 { background: linear-gradient(135deg, #e8f4fd 0%, #c8e6ff 100%); }
    .thumb-2 { background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%); }
    .thumb-3 { background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 100%); }
    .project-badge {
      position: absolute; top: 14px; right: 14px;
      background: rgba(255,255,255,.88); backdrop-filter: blur(8px);
      border: 1px solid rgba(0,0,0,.07); border-radius: 980px;
      padding: 4px 11px; font-size: 11px; font-weight: 600;
      color: var(--text-2); display: flex; align-items: center; gap: 5px;
    }
    .badge-dot { width: 6px; height: 6px; border-radius: 50%; background: #34c759; flex-shrink: 0; }
    .project-body { padding: 26px; flex: 1; display: flex; flex-direction: column; }
    .project-num { font-size: 11px; font-weight: 600; color: var(--blue); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }
    .project-title { font-size: 20px; font-weight: 700; color: var(--text); letter-spacing: -.02em; margin-bottom: 10px; }
    .project-desc { font-size: 14px; color: var(--text-3); line-height: 1.65; flex: 1; }
    .project-tags { display: flex; gap: 7px; flex-wrap: wrap; margin: 16px 0; }
    .tag {
      font-size: 11px; font-weight: 500; color: var(--text-3);
      background: var(--bg); border: 1px solid var(--border);
      border-radius: 6px; padding: 4px 10px;
    }
    .project-links { display: flex; gap: 10px; }
    .proj-btn {
      flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
      padding: 11px 10px; border-radius: 12px; font-size: 13px; font-weight: 600;
      text-decoration: none; transition: all .22s;
    }
    .proj-live { background: var(--blue); color: #fff; }
    .proj-live:hover { background: var(--blue-h); }
    .proj-src { background: var(--bg); color: var(--text); border: 1px solid var(--border); }
    .proj-src:hover { background: var(--border-light); }

    /* ─── CONTACT ─── */
    #contact { background: var(--bg); text-align: center; }
    .contact-wrap { max-width: 600px; margin: 0 auto; }
    .contact-wrap .section-sub { max-width: 100%; margin-bottom: 44px; }
    .contact-cards { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
    .contact-card {
      display: flex; align-items: center; gap: 12px;
      background: var(--white); border: 1px solid var(--border-light);
      border-radius: 16px; padding: 16px 24px;
      font-size: 14px; font-weight: 500; color: var(--text);
      text-decoration: none; transition: all .22s; box-shadow: var(--shadow-sm);
    }
    .contact-card:hover { border-color: rgba(0,113,227,.28); transform: translateY(-3px); box-shadow: var(--shadow-md); }
    .c-icon { font-size: 20px; }

    /* ─── FOOTER ─── */
    footer {
      background: var(--white); border-top: 1px solid var(--border-light);
      padding: 28px 24px; text-align: center;
    }
    footer p { font-size: 12px; color: var(--text-4); line-height: 1.8; }
    footer strong { color: var(--text-3); font-weight: 500; }

    /* ─── ANIMATIONS ─── */
    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(22px); }
      to   { opacity: 1; transform: none; }
    }
    @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
    @keyframes scrollPulse {
      0%,100% { opacity: .3; } 50% { opacity: .8; }
    }

    .reveal {
      opacity: 0; transform: translateY(28px);
      transition: opacity .65s ease, transform .65s ease;
    }
    .reveal.visible { opacity: 1; transform: none; }

    /* ─── RESPONSIVE ─── */
    @media (max-width: 768px) {
      .nav-links { display: none; }
      .hamburger { display: flex; }
      .about-grid { grid-template-columns: 1fr; gap: 40px; }
      .avatar-ring { width: 190px; height: 190px; font-size: 64px; }
      .projects-grid { grid-template-columns: 1fr; }
      .skills-grid { grid-template-columns: repeat(2, 1fr); }
      section { padding: 72px 0; }
    }
    @media (max-width: 440px) {
      .hero h1 { font-size: 42px; }
      .hero-cta { flex-direction: column; align-items: stretch; width: 100%; max-width: 280px; }
      .btn { justify-content: center; }
      .contact-cards { flex-direction: column; align-items: stretch; }
      .contact-card { justify-content: center; }
    }