:root {
    --bg: #0a0a0a;
    --bg2: #111111;
    --bg3: #161616;
    --border: #1f1f1f;
    --text: #e8e8e8;
    --muted: #666;
    --accent: #FF6B6B;
    --accent2: #FF073A;
    --glow: rgba(255,7,58,0.12);
    --font-head: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
  }

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

  html { scroll-behavior: smooth; }

  body {
    background-color: #0a0a0a;
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.7;
    overflow-x: hidden;
  }

  /* ── NOISE OVERLAY ── */
  /* body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: 0.6;
  } */

  /* ── CURSOR ── */
  .cursor {
    position: fixed;
    width: 8px; height: 8px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, width 0.2s, height 0.2s, background 0.2s;
    mix-blend-mode: difference;
  }
  .cursor-ring {
    position: fixed;
    width: 32px; height: 32px;
    border: 1px solid rgb(141, 0, 0);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease, width 0.3s, height 0.3s, opacity 0.3s;
  }

  /* ── NAV ── */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 48px;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s, background 0.3s, backdrop-filter 0.3s;
  }
  nav.scrolled {
    border-color: var(--border);
    background: rgba(10,10,10,0.85);
    backdrop-filter: blur(12px);
  }
  .nav-logo {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 16px;
    letter-spacing: -0.02em;
    color: var(--text);
    text-decoration: none;
  }
  .nav-logo span { color: var(--accent); text-shadow: 0 0 10px var(--accent); }
  .nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
  }
  .nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.2s;
  }
  .nav-links a:hover { color: var(--accent); }

  /* ── SECTIONS ── */
  section { padding: 120px 48px; max-width: 1100px; margin: 0 auto; }

  /* ── HERO ── */
  #hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 100px;
    position: relative;
    max-width: 100%;
  }
  .hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 48px;
    width: 100%;
  }
  .hero-tag {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    animation: fadeUp 0.6s 0.2s forwards;
  }
  .hero-tag::before {
    content: '';
    display: inline-block;
    width: 32px;
    height: 1px;
    background: var(--accent);
  }
  .hero-name {
    font-family: var(--font-head);
    font-size: clamp(52px, 9vw, 112px);
    font-weight: 800;
    line-height: 0.92;
    letter-spacing: -0.04em;
    color: var(--text);
    margin-bottom: 32px;
    opacity: 0;
    animation: fadeUp 0.6s 0.35s forwards;
  }
  .hero-name .line2 {
    color: transparent;
    -webkit-text-stroke: 1px rgba(247, 247, 247, 0.25);
  }
  .hero-name .accent { color: var(--accent); text-shadow: 0 0 10px var(--accent); }
  .hero-desc {
    max-width: 520px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 48px;
    opacity: 0;
    animation: fadeUp 0.6s 0.5s forwards;
  }
  .hero-desc strong { color: var(--text); font-weight: 400; }
  .hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.6s 0.65s forwards;
  }
  .btn-primary {
    background: var(--accent);
    color: #0a0a0a;
    border: none;
    padding: 14px 28px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .btn-primary:hover {
    background: var(--accent2);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255,7,58,0.25);
  }
  .btn-ghost {
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--border);
    padding: 14px 28px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, transform 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
  }

  /* hero bg grid */
  .hero-grid {
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(200,245,66,0.03) 1px, transparent 1px),
      linear-gradient(90deg, rgba(200,245,66,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -1;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
  }
  .hero-glow {
    position: absolute;
    top: 20%;
    right: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(200,245,66,0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
  }

  .globe {
    position: absolute;
    top: 30%;
    right: 10%;
    font-size: 100px;
    color: var(--accent);
    opacity: 0.3;
    animation: rotate 20s linear infinite;
    z-index: -1;
  }
  @keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }

  #globe-container {
    position: absolute;
    top: 20%;
    right: 5%;
    width: 200px;
    height: 200px;
    z-index: -1;
    opacity: 0.7;
  }

  /* scroll indicator */
  .scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 48px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeUp 0.6s 1s forwards;
  }
  .scroll-line {
    width: 40px;
    height: 1px;
    background: var(--muted);
    position: relative;
    overflow: hidden;
  }
  .scroll-line::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: var(--accent);
    animation: scrollLine 2s 1.5s infinite ease-in-out;
  }
  @keyframes scrollLine {
    0% { left: -100%; }
    100% { left: 100%; }
  }

  /* ── STATUS BADGE ── */
  .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border);
    background: var(--bg2);
    padding: 8px 14px;
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp 0.6s 0.05s forwards;
  }
  .status-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent2);
    box-shadow: 0 0 8px var(--accent2);
    animation: pulse 2s infinite;
  }
  @keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
  }

  /* ── ABOUT ── */
  #about { border-top: 1px solid var(--border); }
  .section-label {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 48px;
    display: flex;
    align-items: center;
    gap: 16px;
  }
  .section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
  }
  .about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
  }
  .about-text h2 {
    font-family: var(--font-head);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    color: var(--text);
  }
  .about-text p {
    color: var(--muted);
    line-height: 1.9;
    margin-bottom: 16px;
  }
  .about-text p strong { color: var(--text); font-weight: 400; }
  .about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
  }
  .stat-box {
    background: var(--bg);
    padding: 28px 24px;
    transition: background 0.2s;
  }
  .stat-box:hover { background: var(--bg3); }
  .stat-num {
    font-family: var(--font-head);
    font-size: 36px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 6px;
  }
  .stat-label {
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  /* ── SKILLS ── */
  #skills { border-top: 1px solid var(--border); }
  .skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
  }
  .skill-card {
    background: var(--bg);
    padding: 32px 28px;
    transition: background 0.25s;
    position: relative;
    overflow: hidden;
  }
  .skill-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 2px; height: 0;
    background: var(--accent);
    transition: height 0.3s ease;
  }
  .skill-card:hover { background: var(--bg3); }
  .skill-card:hover::before { height: 100%; }
  .skill-icon {
    font-size: 20px;
    margin-bottom: 16px;
    display: block;
  }
  .skill-card h3 {
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
  }
  .skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .tag {
    font-size: 10px;
    letter-spacing: 0.08em;
    padding: 4px 8px;
    border: 1px solid var(--border);
    color: var(--muted);
    text-transform: uppercase;
    transition: border-color 0.2s, color 0.2s;
  }
  .skill-card:hover .tag {
    border-color: rgba(200,245,66,0.2);
    color: var(--text);
  }

  /* ── PROJECTS ── */
  #projects { border-top: 1px solid var(--border); }
  .projects-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
  }
  .project-row {
    background: var(--bg);
    padding: 36px 36px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 32px;
    align-items: start;
    transition: background 0.2s;
    text-decoration: none;
    color: inherit;
  }
  .project-row:hover { background: var(--bg3); }
  .project-num {
    font-family: var(--font-head);
    font-size: 11px;
    color: var(--muted);
    padding-top: 4px;
    min-width: 32px;
    letter-spacing: 0.1em;
  }
  .project-body h3 {
    font-family: var(--font-head);
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
    margin-bottom: 10px;
    transition: color 0.2s;
  }
  .project-row:hover .project-body h3 { color: var(--accent); }
  .project-body p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
    max-width: 600px;
    margin-bottom: 14px;
  }
  .project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .tech-tag {
    font-size: 10px;
    letter-spacing: 0.08em;
    padding: 3px 8px;
    border: 1px solid var(--border);
    color: var(--accent);
    text-transform: uppercase;
  }
  .project-arrow {
    font-size: 18px;
    color: var(--muted);
    padding-top: 4px;
    transition: color 0.2s, transform 0.2s;
  }
  .project-row:hover .project-arrow {
    color: var(--accent);
    transform: translateX(4px) translateY(-4px);
  }
  .project-date {
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.08em;
    margin-bottom: 8px;
  }
  .project-links {
    display: flex;
    gap: 16px;
    align-items: center;
    padding-top: 4px;
    min-width: fit-content;
  }
  .project-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--bg2);
    border-radius: 6px;
    transition: background 0.2s, transform 0.2s;
    text-decoration: none;
  }
  .project-link:hover {
    background: rgba(255, 7, 58, 0.05);
    transform: translateY(-2px);
  }
  .project-link img {
    width: 46px;
    height: 46px;
    display: block;
  }

  /* ── HARDWARE & ELECTRONICS ── */
  #hardware { border-top: 1px solid var(--border); }
  .hardware-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: end;
    margin-bottom: 64px;
  }
  .hardware-kicker,
  .subsection-label,
  .project-category {
    color: var(--accent);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }
  .hardware-kicker { margin-bottom: 16px; }
  .hardware-intro h2 {
    font-family: var(--font-head);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
  }
  .hardware-intro > p {
    color: var(--muted);
    line-height: 1.9;
    max-width: 520px;
  }
  .hardware-subsection + .hardware-subsection { margin-top: 64px; }
  .subsection-label {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
  }
  .subsection-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
  }
  .project-category { margin-bottom: 8px; color: var(--muted); }
  .project-contribution { border-left: 2px solid var(--accent); padding-left: 14px; }
  .project-contribution strong { color: var(--text); font-weight: 400; }

  /* ── ACHIEVEMENTS ── */
  #achievements { border-top: 1px solid var(--border); }
  .ach-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
  }
  .ach-item {
    background: var(--bg);
    padding: 28px 28px;
    display: flex;
    gap: 20px;
    transition: background 0.2s;
  }
  .ach-item:hover { background: var(--bg3); }
  .ach-icon {
    font-size: 22px;
    flex-shrink: 0;
    margin-top: 2px;
  }
  .ach-title {
    font-family: var(--font-head);
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    line-height: 1.3;
  }
  .ach-desc {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.6;
  }

  /* ── EDUCATION ── */
  #education { border-top: 1px solid var(--border); }
  .edu-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
  }
  .edu-row {
    background: var(--bg);
    padding: 28px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    transition: background 0.2s;
    flex-wrap: wrap;
  }
  .edu-row:hover { background: var(--bg3); }
  .edu-left h3 {
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
  }
  .edu-left p { font-size: 12px; color: var(--muted); }
  .edu-right {
    text-align: right;
    flex-shrink: 0;
  }
  .edu-score {
    font-family: var(--font-head);
    font-size: 22px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.03em;
  }
  .edu-year { font-size: 11px; color: var(--muted); letter-spacing: 0.1em; }

  /* ── CONTACT ── */
  #contact { border-top: 1px solid var(--border); }
  .contact-wrap {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: start;
  }
  .contact-left h2 {
    font-family: var(--font-head);
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    color: var(--text);
    margin-bottom: 20px;
  }
  .contact-left h2 span { color: var(--accent); }
  .contact-left h2 span:hover { text-shadow: 0 0 10px var(--accent); }
  .contact-left p { color: var(--muted); font-size: 14px; max-width: 440px; line-height: 1.8; }
  .contact-links {
    display: flex;
    flex-direction: row;
    gap: 12px;
  }
  .contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 0.05em;
    padding: 0;
    border: none;
    min-width: auto;
    transition: color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.2s;
  }
  .contact-link:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--bg3);
    box-shadow: 0 0 15px var(--accent);
    transform: scale(1.2);
  }
  .contact-logo {
  width: 60px;  /* Increased to 5x */
  height: 60px;
  object-fit: contain;
  margin : 0;
}
  .contact-link-icon { font-size: 16px; }

  /* ── FOOTER ── */
  footer {
    border-top: 1px solid var(--border);
    padding: 24px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.1em;
    max-width: 100%;
  }
  footer span { color: var(--accent); text-shadow: 0 0 10px var(--accent); }

  /* ── ANIMATIONS ── */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal.visible {
    opacity: 1;
    transform: none;
  }

  /* ── RESPONSIVE ── */
  @media (max-width: 768px) {
    nav { padding: 16px 24px; }
    .nav-links { display: none; }
    section { padding: 80px 24px; }
    .hero-inner { padding: 0 24px; }
    .hero-name { font-size: clamp(42px, 12vw, 72px); }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .hardware-intro { grid-template-columns: 1fr; gap: 28px; margin-bottom: 48px; }
    .skills-grid { grid-template-columns: 1fr; }
    .ach-grid { grid-template-columns: 1fr; }
    .contact-wrap { grid-template-columns: 1fr; }
    .contact-links { flex-direction: row; flex-wrap: wrap; }
    footer { flex-direction: column; gap: 8px; text-align: center; padding: 20px 24px; }
    .project-row { grid-template-columns: auto 1fr; }
    .project-arrow { display: none; }
    .scroll-hint { display: none; }
  }