 *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --bg: #0a0a0f;
      --surface: #111118;
      --card: #16161f;
      --border: #1e1e2e;
      --accent: #1877f2;
      --accent2: #42a5f5;
      --text: #e2e8f0;
      --muted: #94a3b8;
      --gradient: linear-gradient(135deg, #1877f2, #42a5f5);
    }

    html { scroll-behavior: smooth; }

    body {
      font-family: 'Segoe UI', system-ui, sans-serif;
      background: var(--bg);
      color: var(--text);
      line-height: 1.6;
    }

    /* ── NAV ── */
    nav {
      position: fixed;
      top: 0; left: 0; right: 0;
      z-index: 200;
      background: rgba(10,10,15,0.92);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--border);
      padding: 0 2rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 64px;
    }

    .logo {
      font-size: 1.2rem;
      font-weight: 700;
      background: var(--gradient);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      white-space: nowrap;
    }

    /* Desktop nav links */
    .nav-links {
      display: flex;
      gap: 2rem;
      list-style: none;
    }

    .nav-links a {
      color: var(--muted);
      text-decoration: none;
      font-size: 0.9rem;
      font-weight: 500;
      letter-spacing: 0.03em;
      transition: color 0.2s;
      position: relative;
    }

    .nav-links a::after {
      content: '';
      position: absolute;
      bottom: -4px; left: 0; right: 0;
      height: 2px;
      background: var(--gradient);
      border-radius: 2px;
      transform: scaleX(0);
      transition: transform 0.2s;
    }

    .nav-links a:hover { color: var(--text); }
    .nav-links a:hover::after { transform: scaleX(1); }

    /* Hamburger button */
    .hamburger {
      display: none;
      flex-direction: column;
      justify-content: center;
      gap: 5px;
      width: 36px;
      height: 36px;
      background: none;
      border: none;
      cursor: pointer;
      padding: 4px;
      z-index: 300;
    }

    .hamburger span {
      display: block;
      height: 2px;
      background: var(--text);
      border-radius: 2px;
      transition: all 0.3s ease;
      transform-origin: center;
    }

    .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
    .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* Mobile drawer */
    .mobile-menu {
      display: none;
      position: fixed;
      top: 64px; left: 0; right: 0;
      background: rgba(10,10,15,0.98);
      backdrop-filter: blur(16px);
      border-bottom: 1px solid var(--border);
      z-index: 150;
      padding: 1rem 0;
      transform: translateY(-10px);
      opacity: 0;
      transition: all 0.25s ease;
      pointer-events: none;
    }

    .mobile-menu.open {
      transform: translateY(0);
      opacity: 1;
      pointer-events: all;
    }

    .mobile-menu ul {
      list-style: none;
      display: flex;
      flex-direction: column;
    }

    .mobile-menu ul li a {
      display: block;
      padding: 1rem 2rem;
      color: var(--muted);
      text-decoration: none;
      font-size: 1rem;
      font-weight: 500;
      border-left: 3px solid transparent;
      transition: all 0.2s;
    }

    .mobile-menu ul li a:hover {
      color: var(--text);
      border-left-color: var(--accent);
      background: rgba(24,119,242,0.05);
    }

    /* ── HERO ── */
    #hero {
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 6rem 2rem 4rem;
      position: relative;
      overflow: hidden;
    }

    #hero::before {
      content: '';
      position: absolute;
      width: 600px; height: 600px;
      background: radial-gradient(circle, rgba(24,119,242,0.15) 0%, transparent 70%);
      top: 50%; left: 50%;
      transform: translate(-50%, -50%);
      pointer-events: none;
    }

    .hero-tag {
      display: inline-block;
      padding: 0.35rem 1rem;
      background: rgba(24,119,242,0.15);
      border: 1px solid rgba(24,119,242,0.3);
      border-radius: 999px;
      font-size: 0.8rem;
      color: #90c2ff;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      margin-bottom: 1.5rem;
    }

    #hero h1 {
      font-size: clamp(2.5rem, 6vw, 4.5rem);
      font-weight: 800;
      line-height: 1.1;
      margin-bottom: 1rem;
    }

    #hero h1 span {
      background: var(--gradient);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    #hero p {
      font-size: 1.15rem;
      color: var(--muted);
      max-width: 520px;
      margin: 0 auto 2.5rem;
    }

    .hero-btns {
      display: flex;
      gap: 1rem;
      justify-content: center;
      flex-wrap: wrap;
    }

    .btn {
      padding: 0.75rem 2rem;
      border-radius: 8px;
      font-size: 0.95rem;
      font-weight: 600;
      cursor: pointer;
      text-decoration: none;
      transition: all 0.2s;
      display: inline-block;
    }

    .btn-primary { background: var(--gradient); color: #fff; border: none; }
    .btn-primary:hover { opacity: 0.85; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(24,119,242,0.4); }
    .btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
    .btn-outline:hover { border-color: var(--accent); color: #90c2ff; transform: translateY(-2px); }

    /* ── SECTIONS ── */
    section { padding: 6rem 2rem; max-width: 1100px; margin: 0 auto; }

    .section-label {
      font-size: 0.8rem;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: #1877f2;
      font-weight: 600;
      margin-bottom: 0.5rem;
    }

    .section-title { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; margin-bottom: 1rem; }
    .section-sub { color: var(--muted); max-width: 560px; margin-bottom: 3rem; }

    /* ── ABOUT ── */
    #about .about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }

    .about-avatar {
      width: 260px; height: 260px;
      border-radius: 24px;
      background: var(--gradient);
      display: flex; align-items: center; justify-content: center;
      font-size: 7rem;
      margin: 0 auto;
      position: relative;
    }

    .about-avatar::after {
      content: '';
      position: absolute;
      inset: -3px;
      border-radius: 27px;
      background: var(--gradient);
      z-index: -1;
      opacity: 0.4;
      filter: blur(12px);
    }

    .about-text p { color: var(--muted); margin-bottom: 1rem; font-size: 1.05rem; }
    .about-stats { display: flex; gap: 2rem; margin-top: 2rem; flex-wrap: wrap; }
    .stat { text-align: center; }
    .stat-num { font-size: 2rem; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
    .stat-label { font-size: 0.8rem; color: var(--muted); }

    /* ── SKILLS ── */
    #skills { background: var(--surface); max-width: 100%; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
    #skills > div { max-width: 1100px; margin: 0 auto; padding: 0; }
    .skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.25rem; }

    .skill-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 1.75rem 1.5rem;
      text-align: center;
      transition: all 0.25s;
      cursor: default;
      position: relative;
      overflow: hidden;
    }

    .skill-card::before { content: ''; position: absolute; inset: 0; background: var(--gradient); opacity: 0; transition: opacity 0.25s; border-radius: 16px; }
    .skill-card:hover::before { opacity: 0.06; }
    .skill-card:hover { border-color: rgba(24,119,242,0.4); transform: translateY(-4px); box-shadow: 0 12px 30px rgba(24,119,242,0.15); }

    .skill-icon {
      width: 56px;
      height: 56px;
      margin: 0 auto 0.75rem;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .skill-icon img {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }

    /* Emoji fallback for PHP/Flask */
    .skill-icon-emoji {
      font-size: 2.5rem;
      margin-bottom: 0.75rem;
      display: block;
    }

    .skill-name { font-weight: 700; font-size: 1rem; margin-bottom: 0.25rem; }
    .skill-type { font-size: 0.75rem; color: var(--muted); }
    .skill-bar { margin-top: 0.75rem; height: 4px; background: var(--border); border-radius: 4px; overflow: hidden; }
    .skill-bar-fill { height: 100%; border-radius: 4px; background: var(--gradient); }

    /* ── PROJECTS ── */
    .projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }

    .project-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 16px;
      overflow: hidden;
      transition: all 0.25s;
      display: flex;
      flex-direction: column;
    }

    .project-card:hover { border-color: rgba(24,119,242,0.4); transform: translateY(-4px); box-shadow: 0 12px 30px rgba(24,119,242,0.12); }

    .project-thumb { height: 180px; display: flex; align-items: center; justify-content: center; font-size: 4rem; }
    .project-thumb-1 { background: linear-gradient(135deg, #0d2d6b, #1a56b0); }
    .project-thumb-2 { background: linear-gradient(135deg, #0c4a6e, #0e7490); }
    .project-thumb-3 { background: linear-gradient(135deg, #4c0519, #9f1239); }

    .project-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
    .project-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.75rem; }

    .tag { padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.05em; }
    .tag-python { background: rgba(59,130,246,0.2); color: #60a5fa; }
    .tag-django { background: rgba(16,185,129,0.2); color: #34d399; }
    .tag-php { background: rgba(139,92,246,0.2); color: #90c2ff; }
    .tag-laravel { background: rgba(239,68,68,0.2); color: #f87171; }

    .project-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
    .project-desc { color: var(--muted); font-size: 0.9rem; flex: 1; margin-bottom: 1.25rem; }
    .project-links { display: flex; gap: 0.75rem; }
    .project-links a { padding: 0.5rem 1rem; border-radius: 8px; font-size: 0.8rem; font-weight: 600; text-decoration: none; transition: all 0.2s; }
    .link-live { background: var(--gradient); color: #fff; }
    .link-live:hover { opacity: 0.85; }
    .link-code { background: transparent; border: 1px solid var(--border); color: var(--muted); }
    .link-code:hover { border-color: var(--accent); color: #90c2ff; }

    /* ── CONTACT ── */
    #contact { background: var(--surface); max-width: 100%; border-top: 1px solid var(--border); }
    #contact > div { max-width: 1100px; margin: 0 auto; }
    .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }

    .contact-info h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; }
    .contact-info p { color: var(--muted); margin-bottom: 2rem; }
    .contact-items { display: flex; flex-direction: column; gap: 1rem; }

    .contact-item { display: flex; align-items: center; gap: 1rem; padding: 1rem; background: var(--card); border: 1px solid var(--border); border-radius: 12px; }
    .contact-item-icon { width: 40px; height: 40px; border-radius: 10px; background: rgba(24,119,242,0.15); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
    .contact-item-text { font-size: 0.85rem; }
    .contact-item-text a { color: var(--text); text-decoration: none; }
    .contact-item-text a:hover { color: #90c2ff; }
    .contact-item-label { color: var(--muted); font-size: 0.75rem; }

    .contact-form { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 2rem; }
    .form-group { margin-bottom: 1.25rem; }
    .form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--muted); margin-bottom: 0.4rem; }

    .form-group input,
    .form-group textarea {
      width: 100%;
      padding: 0.75rem 1rem;
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: 10px;
      color: var(--text);
      font-size: 0.95rem;
      font-family: inherit;
      transition: border-color 0.2s;
      outline: none;
    }

    .form-group input:focus,
    .form-group textarea:focus { border-color: var(--accent); }
    .form-group textarea { resize: vertical; min-height: 120px; }

    .form-submit {
      width: 100%;
      padding: 0.85rem;
      background: var(--gradient);
      color: #fff;
      border: none;
      border-radius: 10px;
      font-size: 1rem;
      font-weight: 700;
      cursor: pointer;
      transition: opacity 0.2s, transform 0.2s;
    }

    .form-submit:hover { opacity: 0.85; transform: translateY(-2px); }
    .form-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

    /* ── FOOTER ── */
    footer { text-align: center; padding: 2rem; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.85rem; }

    /* ── TOAST ── */
    .toast {
      position: fixed;
      bottom: 2rem; right: 2rem;
      color: #fff;
      padding: 1rem 1.5rem;
      border-radius: 12px;
      font-size: 0.9rem;
      font-weight: 600;
      opacity: 0;
      transform: translateY(20px);
      transition: all 0.3s;
      z-index: 999;
      pointer-events: none;
    }

    .toast.show { opacity: 1; transform: translateY(0); }

    /* ── RESPONSIVE ── */
    @media (max-width: 768px) {
      .nav-links { display: none; }
      .hamburger { display: flex; }
      .mobile-menu { display: block; }

      #about .about-grid { grid-template-columns: 1fr; gap: 2rem; }
      .contact-grid { grid-template-columns: 1fr; gap: 2rem; }

      #hero h1 { font-size: 2.2rem; }
      section { padding: 4rem 1.25rem; }
      #skills > div { padding: 0 1.25rem; }
    }

    @media (max-width: 480px) {
      nav { padding: 0 1.25rem; }
      .logo { font-size: 1rem; }
      .hero-btns { flex-direction: column; align-items: center; }
      .btn { width: 100%; text-align: center; }
      .skills-grid { grid-template-columns: 1fr 1fr; }
      .projects-grid { grid-template-columns: 1fr; }
    }