*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --bg: #0a0a0f;
    --bg2: #111118;
    --bg3: #1a1a24;
    --card: #14141e;
    --border: rgba(255,255,255,0.07);
    --border2: rgba(255,255,255,0.12);
    --text: #f0f0f5;
    --muted: #8888aa;
    --accent: #6c63ff;
    --accent2: #00d4aa;
    --accent3: #ff6b6b;
    --accent-glow: rgba(108,99,255,0.15);
    --font-head: 'Syne', sans-serif;
    --font-body: 'DM Sans', sans-serif;
  }

  html { scroll-behavior: smooth; }

  body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
  }

  /* ── NAV ── */
  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.1rem 4rem;
    background: rgba(10,10,15,0.85);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
  }
  .nav-logo {
    font-family: var(--font-head);
    font-size: 1.2rem; font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
    text-decoration: none;
  }
  .nav-logo span { color: var(--accent); }
  .nav-links { display: flex; gap: 2.2rem; list-style: none; }
  .nav-links a {
    text-decoration: none; color: var(--muted);
    font-size: 0.875rem; font-weight: 400;
    letter-spacing: 0.01em;
    transition: color 0.2s;
  }
  .nav-links a:hover { color: var(--text); }
  .nav-cta {
    padding: 0.5rem 1.2rem;
    border: 1px solid var(--border2);
    border-radius: 100px;
    font-size: 0.875rem; font-weight: 500;
    color: var(--text) !important;
    background: transparent;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
  }
  .nav-cta:hover { background: var(--accent-glow); border-color: var(--accent); }

  /* ── SECTIONS ── */
  section { padding: 7rem 4rem; max-width: 1100px; margin: 0 auto; }
  .section-label {
    font-family: var(--font-head);
    font-size: 0.75rem; font-weight: 600;
    letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 1rem;
  }
  h2 {
    font-family: var(--font-head);
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 800; letter-spacing: -0.03em;
    line-height: 1.15; color: var(--text);
    margin-bottom: 1rem;
  }
  .section-divider {
    width: 100%; height: 1px;
    background: linear-gradient(to right, var(--accent), transparent);
    margin-bottom: 3.5rem; opacity: 0.3;
  }

  /* ── HERO ── */
  #hero {
    min-height: 100vh;
    display: flex; align-items: center;
    padding-top: 6rem;
    position: relative;
    overflow: hidden;
  }
  .hero-bg {
    position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse 60% 50% at 70% 40%, rgba(108,99,255,0.12) 0%, transparent 70%),
                radial-gradient(ellipse 40% 40% at 20% 80%, rgba(0,212,170,0.07) 0%, transparent 60%);
  }
  .hero-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 4rem; align-items: center; width: 100%;
  }
  .hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.35rem 1rem; border-radius: 100px;
    border: 1px solid rgba(108,99,255,0.3);
    background: rgba(108,99,255,0.08);
    font-size: 0.8rem; color: var(--accent);
    font-weight: 500; margin-bottom: 1.5rem;
  }
  .hero-badge::before {
    content: ''; display: block;
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent2);
    animation: pulse 2s infinite;
  }
  @keyframes pulse {
    0%,100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.4); }
  }
  .hero-name {
    font-family: var(--font-head);
    font-size: clamp(2.8rem, 5.5vw, 4.2rem);
    font-weight: 800; letter-spacing: -0.04em;
    line-height: 1.08; color: var(--text);
    margin-bottom: 0.5rem;
  }
  .hero-name .grad {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  .hero-role {
    font-size: 1.1rem; color: var(--muted); font-weight: 300;
    margin-bottom: 1.5rem; letter-spacing: 0.01em;
  }
  .hero-desc {
    font-size: 0.975rem; color: var(--muted);
    line-height: 1.8; max-width: 440px;
    margin-bottom: 2.5rem;
  }
  .hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
  .btn-primary {
    padding: 0.75rem 1.8rem; border-radius: 100px;
    background: var(--accent); color: #fff;
    font-family: var(--font-body); font-size: 0.9rem; font-weight: 500;
    border: none; cursor: pointer; text-decoration: none;
    display: inline-block;
    transition: opacity 0.2s, transform 0.15s;
  }
  .btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }
  .btn-outline {
    padding: 0.75rem 1.8rem; border-radius: 100px;
    background: transparent; color: var(--text);
    font-family: var(--font-body); font-size: 0.9rem; font-weight: 500;
    border: 1px solid var(--border2); cursor: pointer; text-decoration: none;
    display: inline-block;
    transition: background 0.2s, border-color 0.2s;
  }
  .btn-outline:hover { background: var(--bg3); border-color: var(--accent); }

  /* hero visual */
  .hero-visual {
    display: flex; align-items: center; justify-content: center;
    position: relative;
  }
  .hero-avatar-ring {
    width: 320px; height: 320px;
    border-radius: 50%;
    border: 1px solid rgba(108,99,255,0.25);
    display: flex; align-items: center; justify-content: center;
    position: relative;
    animation: slowspin 18s linear infinite;
  }
  @keyframes slowspin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }
  .hero-avatar-ring::before {
    content: '';
    position: absolute; inset: 16px;
    border-radius: 50%;
    border: 1px dashed rgba(0,212,170,0.2);
  }
  .orbit-dot {
    position: absolute; width: 10px; height: 10px;
    border-radius: 50%; background: var(--accent);
    top: -5px; left: calc(50% - 5px);
    box-shadow: 0 0 12px var(--accent);
  }
  .orbit-dot2 {
    position: absolute; width: 7px; height: 7px;
    border-radius: 50%; background: var(--accent2);
    bottom: 30px; right: 10px;
    box-shadow: 0 0 8px var(--accent2);
  }
  .hero-avatar {
    width: 260px; height: 260px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bg3) 0%, var(--bg2) 100%);
    border: 2px solid var(--border2);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-head);
    font-size: 5rem; font-weight: 800;
    color: var(--accent);
    animation: slowspin 18s linear infinite reverse;
    user-select: none;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
  }
  .avatar-img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    transition: transform 0.3s ease;
  }
  .hero-avatar:hover .avatar-img {
    transform: scale(1.05);
  }
  .hero-stats {
    position: absolute;
    display: flex; flex-direction: column; gap: 0.8rem;
    right: -2rem; top: 50%; transform: translateY(-50%);
  }
  .stat-pill {
    background: var(--card); border: 1px solid var(--border2);
    border-radius: 12px; padding: 0.6rem 1rem;
    font-size: 0.78rem; text-align: center;
    white-space: nowrap;
  }
  .stat-pill strong {
    display: block; font-family: var(--font-head);
    font-size: 1.3rem; font-weight: 800; color: var(--accent);
  }

  /* ── ABOUT ── */
  #about .about-grid {
    display: grid; grid-template-columns: 1.1fr 1fr;
    gap: 4rem; align-items: start;
  }
  #about p { color: var(--muted); margin-bottom: 1rem; font-size: 0.975rem; }
  #about p strong { color: var(--text); font-weight: 500; }
  .about-highlights {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .highlight-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: 14px; padding: 1.3rem;
    transition: border-color 0.2s;
  }
  .highlight-card:hover { border-color: var(--accent); }
  .highlight-card .icon {
    font-size: 1.5rem; margin-bottom: 0.5rem; display: block;
  }
  .highlight-card h4 {
    font-family: var(--font-head); font-size: 0.9rem;
    font-weight: 700; margin-bottom: 0.3rem; color: var(--text);
  }
  .highlight-card p { font-size: 0.8rem; color: var(--muted); margin: 0; }

  /* ── SKILLS ── */
  #skills .skills-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
  }
  .skill-category {
    background: var(--card); border: 1px solid var(--border);
    border-radius: 16px; padding: 1.5rem;
    transition: border-color 0.25s, transform 0.2s;
  }
  .skill-category:hover { border-color: var(--accent); transform: translateY(-3px); }
  .skill-category h3 {
    font-family: var(--font-head); font-size: 0.95rem;
    font-weight: 700; color: var(--text);
    margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem;
  }
  .skill-category h3 span { font-size: 1.1rem; }
  .skill-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
  .skill-tag {
    padding: 0.28rem 0.75rem; border-radius: 100px;
    font-size: 0.78rem; font-weight: 400;
    border: 1px solid var(--border2); color: var(--muted);
    background: var(--bg3);
    transition: color 0.2s, border-color 0.2s;
  }
  .skill-tag.hot { border-color: rgba(108,99,255,0.4); color: var(--accent); background: rgba(108,99,255,0.08); }

  /* ── EXPERIENCE ── */
  #experience .timeline { position: relative; padding-left: 2rem; }
  #experience .timeline::before {
    content: ''; position: absolute; left: 0; top: 8px; bottom: 8px;
    width: 1px; background: linear-gradient(to bottom, var(--accent), transparent);
  }
  .timeline-item { position: relative; margin-bottom: 3rem; }
  .timeline-dot {
    position: absolute; left: -2.35rem; top: 4px;
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--accent); box-shadow: 0 0 10px var(--accent);
  }
  .timeline-header {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 1rem; flex-wrap: wrap; margin-bottom: 0.3rem;
  }
  .timeline-role {
    font-family: var(--font-head); font-size: 1.1rem;
    font-weight: 700; color: var(--text);
  }
  .timeline-period {
    font-size: 0.8rem; color: var(--muted);
    padding: 0.2rem 0.7rem; border: 1px solid var(--border);
    border-radius: 100px; white-space: nowrap; height: fit-content;
  }
  .timeline-company {
    font-size: 0.875rem; color: var(--accent2); margin-bottom: 0.8rem;
  }
  .timeline-item ul { padding-left: 1.2rem; }
  .timeline-item li { font-size: 0.9rem; color: var(--muted); margin-bottom: 0.3rem; }

  /* ── PROJECTS ── */
  #projects .projects-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
  }
  .project-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: 18px; padding: 1.8rem;
    position: relative; overflow: hidden;
    transition: border-color 0.25s, transform 0.2s;
    cursor: default;
  }
  .project-card:hover { border-color: var(--accent); transform: translateY(-4px); }
  .project-card::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(108,99,255,0.08) 0%, transparent 70%);
    pointer-events: none;
  }
  .project-top {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1rem;
  }
  .project-icon {
    width: 44px; height: 44px; border-radius: 12px;
    background: var(--bg3); border: 1px solid var(--border2);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
  }
  .project-links { display: flex; gap: 0.5rem; }
  .project-link {
    width: 34px; height: 34px; border-radius: 8px;
    background: var(--bg3); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--muted); text-decoration: none; font-size: 0.8rem;
    transition: color 0.2s, border-color 0.2s;
  }
  .project-link:hover { color: var(--accent); border-color: var(--accent); }
  .project-card h3 {
    font-family: var(--font-head); font-size: 1.05rem;
    font-weight: 700; color: var(--text); margin-bottom: 0.5rem;
  }
  .project-card p { font-size: 0.875rem; color: var(--muted); margin-bottom: 1.2rem; }
  .project-tech { display: flex; flex-wrap: wrap; gap: 0.4rem; }
  .tech-chip {
    font-size: 0.73rem; padding: 0.2rem 0.65rem;
    border-radius: 100px; background: var(--bg3);
    border: 1px solid var(--border); color: var(--muted);
  }

  /* ── BLOG ── */
  #blog .blog-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
  }
  .blog-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: 18px; overflow: hidden;
    transition: border-color 0.25s, transform 0.2s;
    cursor: pointer;
  }
  .blog-card:hover { border-color: var(--accent2); transform: translateY(-3px); }
  .blog-cover {
    height: 160px;
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem;
  }
  .blog-cover.c1 { background: linear-gradient(135deg, #1a1225 0%, #2d1f4e 100%); }
  .blog-cover.c2 { background: linear-gradient(135deg, #0f2420 0%, #1a3d35 100%); }
  .blog-cover.c3 { background: linear-gradient(135deg, #1f1520 0%, #3d1f30 100%); }
  .blog-body { padding: 1.3rem; }
  .blog-meta {
    display: flex; align-items: center; gap: 0.8rem;
    font-size: 0.75rem; color: var(--muted); margin-bottom: 0.6rem;
  }
  .blog-meta .tag {
    padding: 0.15rem 0.6rem; border-radius: 100px;
    background: rgba(0,212,170,0.1); color: var(--accent2);
    border: 1px solid rgba(0,212,170,0.2);
  }
  .blog-card h3 {
    font-family: var(--font-head); font-size: 1rem;
    font-weight: 700; color: var(--text); margin-bottom: 0.5rem;
    line-height: 1.35;
  }
  .blog-card p { font-size: 0.85rem; color: var(--muted); }

  /* ── CONTACT ── */
  #contact { text-align: center; }
  #contact .contact-inner {
    max-width: 600px; margin: 0 auto;
  }
  #contact p { color: var(--muted); font-size: 0.975rem; margin-bottom: 2.5rem; }
  .contact-cards {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem; margin-bottom: 2.5rem;
  }
  .contact-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: 14px; padding: 1.2rem;
    text-decoration: none; color: var(--text);
    transition: border-color 0.2s, transform 0.15s;
    display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  }
  .contact-card:hover { border-color: var(--accent); transform: translateY(-2px); }
  .contact-card .icon { font-size: 1.5rem; }
  .contact-card span { font-size: 0.8rem; color: var(--muted); }

  /* ── FOOTER ── */
  footer {
    border-top: 1px solid var(--border);
    padding: 2rem 4rem;
    display: flex; align-items: center; justify-content: space-between;
    font-size: 0.8rem; color: var(--muted);
  }

  /* ── ANIMATIONS on scroll ── */
  .fade-up {
    opacity: 0; transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .fade-up.visible { opacity: 1; transform: translateY(0); }

  /* ── HAMBURGER MENU ── */
  .mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
  }
  .mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
  }
  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(9px, 8px);
  }
  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -7px);
  }

  /* ── RESPONSIVE ── */
  @media (max-width: 820px) {
    nav { 
      padding: 1rem 1.5rem;
      flex-wrap: wrap;
    }
    .mobile-menu-toggle {
      display: flex;
    }
    .nav-links { 
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background: var(--bg);
      border-bottom: 1px solid var(--border);
      flex-direction: column;
      gap: 0;
      width: 100%;
      padding: 1rem 0;
      list-style: none;
      z-index: 99;
    }
    .nav-links.active {
      display: flex;
    }
    .nav-links li {
      border-bottom: 1px solid rgba(255,255,255,0.04);
    }
    .nav-links a {
      display: block;
      padding: 0.8rem 1.5rem;
      font-size: 0.95rem;
    }
    .nav-links .nav-cta {
      margin: 0.5rem 1rem;
      display: inline-block;
      border-bottom: none;
    }
    
    section { padding: 4rem 1.5rem; }
    .hero-grid, #about .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero-visual { order: -1; }
    .hero-avatar-ring { width: 200px; height: 200px; }
    .hero-avatar { 
      width: 160px; height: 160px; 
      font-size: 3rem;
    }
    .hero-stats { position: static; transform: none; display: flex; gap: 1rem; margin-top: 2rem; }
    .stat-pill { flex: 1; }
    
    h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
    .hero-name { font-size: clamp(2.2rem, 4vw, 3rem); }
    
    .skills-grid { grid-template-columns: 1fr; }
    .about-highlights { grid-template-columns: 1fr; }
    .contact-cards { grid-template-columns: 1fr; }
    #projects .projects-grid { grid-template-columns: 1fr; }
    #blog .blog-grid { grid-template-columns: 1fr; }
    
    footer { flex-direction: column; gap: 0.5rem; text-align: center; padding: 1.5rem; }
    .resume-float { bottom: 15px; right: 15px; padding: 0.65rem 1.2rem; font-size: 0.75rem; }
  }

  @media (max-width: 480px) {
    nav { padding: 0.8rem 1rem; }
    .nav-logo { font-size: 1rem; }
    
    section { padding: 3rem 1rem; }
    
    .hero-name { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
    h2 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); }
    
    .hero-badge { padding: 0.3rem 0.8rem; font-size: 0.75rem; }
    .hero-desc { font-size: 0.9rem; }
    .hero-actions { flex-direction: column-reverse; }
    .btn-primary, .btn-outline { width: 100%; text-align: center; }
    
    .hero-avatar-ring { width: 160px; height: 160px; }
    .hero-avatar { 
      width: 125px; height: 125px; 
      font-size: 2.5rem;
    }
    .hero-stats { flex-direction: column; gap: 0.6rem; margin-top: 1.5rem; }
    
    .timeline-header { flex-direction: column; }
    .timeline-period { margin-top: 0.3rem; }
    
    .project-top { flex-direction: column; gap: 1rem; }
    .project-links { align-self: flex-start; }
    
    .contact-inner p { font-size: 0.9rem; }
    
    .resume-float { bottom: 12px; right: 12px; padding: 0.6rem 1rem; font-size: 0.7rem; }
  }

  @media (max-width: 360px) {
    .hero-avatar-ring { width: 140px; height: 140px; }
    .hero-avatar { 
      width: 110px; height: 110px; 
      font-size: 2.2rem;
    }
    .hero-stats { margin-top: 1rem; }
  }

  /* ── FLOATING RESUME BUTTON ── */
.resume-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 999;

  padding: 0.75rem 1.4rem;
  border-radius: 100px;

  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;

  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover effect */
.resume-float:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

/* Small animation pulse */
.resume-float::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 100px;
  box-shadow: 0 0 0 0 rgba(108,99,255,0.4);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(108,99,255,0.4);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(108,99,255,0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(108,99,255,0);
  }
} 