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

    :root {
      --navy:    #0d1b2a;
      --navy2:   #132136;
      --slate:   #2e4057;
      --gold:    #b8975a;
      --gold2:   #d4b07a;
      --cream:   #f5f0e8;
      --light:   #fafaf7;
      --muted:   #8a9ab0;
      --border:  #ddd6c8;
      --text:    #1c2b3a;
    }

    html { scroll-behavior: smooth; }

    body {
      font-family: 'DM Sans', sans-serif;
      background: var(--light);
      color: var(--text);
      font-size: 15px;
      line-height: 1.7;
    }

    /* ── NAV ── */
    nav {
      position: fixed; top: 0; left: 0; right: 0; z-index: 100;
      display: flex; align-items: center; justify-content: space-between;
      padding: 0 60px;
      height: 68px;
      background: rgba(250,250,247,0.92);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--border);
    }
    .nav-logo {
      font-family: 'Cormorant Garamond', serif;
      font-size: 22px;
      font-weight: 600;
      color: var(--navy);
      letter-spacing: 0.02em;
      text-decoration: none;
    }
    .nav-links { display: flex; gap: 36px; list-style: none; }
    .nav-links a {
      text-decoration: none;
      font-size: 13px;
      font-weight: 500;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--slate);
      transition: color 0.2s;
    }
    .nav-links a:hover { color: var(--gold); }

    /* ── HERO ── */
    #hero {
      min-height: 100vh;
      display: grid;
      grid-template-columns: 1fr 1fr;
      padding-top: 68px;
    }
    .hero-left {
      background: var(--navy);
      display: flex; flex-direction: column; justify-content: center;
      padding: 80px 70px 80px 80px;
      position: relative;
      overflow: hidden;
    }
    .hero-left::before {
      content: '';
      position: absolute; top: -120px; right: -120px;
      width: 380px; height: 380px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(184,151,90,0.12) 0%, transparent 70%);
      pointer-events: none;
    }
    .hero-left::after {
      content: '';
      position: absolute; bottom: 60px; left: -80px;
      width: 260px; height: 260px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(184,151,90,0.07) 0%, transparent 70%);
      pointer-events: none;
    }
    .hero-tag {
      display: inline-block;
      font-size: 11px; font-weight: 500;
      letter-spacing: 0.16em; text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 24px;
      position: relative; z-index: 1;
    }
    .hero-name {
      font-family: 'Cormorant Garamond', serif;
      font-size: clamp(48px, 5.5vw, 72px);
      font-weight: 300;
      line-height: 1.08;
      color: #fff;
      margin-bottom: 28px;
      position: relative; z-index: 1;
    }
    .hero-name em {
      font-style: italic;
      color: var(--gold2);
    }
    .hero-desc {
      font-size: 15px; font-weight: 300;
      color: rgba(255,255,255,0.65);
      max-width: 380px;
      line-height: 1.8;
      margin-bottom: 44px;
      position: relative; z-index: 1;
    }
    .hero-cta {
      display: flex; gap: 16px;
      position: relative; z-index: 1;
    }
    .btn-primary {
      padding: 13px 32px;
      background: var(--gold);
      color: var(--navy);
      font-size: 13px; font-weight: 500;
      letter-spacing: 0.06em; text-transform: uppercase;
      text-decoration: none;
      transition: background 0.2s, transform 0.15s;
      border: none; cursor: pointer;
    }
    .btn-primary:hover { background: var(--gold2); transform: translateY(-1px); }
    .btn-outline {
      padding: 13px 32px;
      border: 1px solid rgba(255,255,255,0.3);
      color: rgba(255,255,255,0.8);
      font-size: 13px; font-weight: 500;
      letter-spacing: 0.06em; text-transform: uppercase;
      text-decoration: none;
      transition: border-color 0.2s, color 0.2s, transform 0.15s;
    }
    .btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-1px); }

    .btn-download {
      padding: 13px 28px;
      border: 1px solid var(--gold);
      color: var(--gold);
      border-radius: 3px;
      font-size: 12px;
      font-weight: 500;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      text-decoration: none;
      display: inline-flex; align-items: center; gap: 7px;
      transition: background 0.2s, color 0.2s, transform 0.15s;
    }
    .btn-download:hover { background: var(--gold); color: var(--navy); transform: translateY(-1px); }

    .resume-download-row {
      display: flex;
      justify-content: flex-end;
      margin-bottom: 40px;
    }
    .btn-download-resume {
      display: inline-flex; align-items: center; gap: 8px;
      padding: 11px 24px;
      background: transparent;
      border: 1px solid var(--gold);
      color: var(--gold);
      border-radius: 3px;
      font-size: 12px;
      font-weight: 500;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      text-decoration: none;
      cursor: pointer;
      transition: background 0.2s, color 0.2s, transform 0.15s;
    }
    .btn-download-resume:hover { background: var(--gold); color: var(--navy); transform: translateY(-1px); }
    .btn-download-resume svg { flex-shrink: 0; }


    .hero-right {
      background: var(--cream);
      display: flex; flex-direction: column; justify-content: center; align-items: center;
      padding: 80px 60px;
      position: relative;
      gap: 0;
    }
    .hero-photo-wrap {
      width: 240px; height: 300px;
      position: relative;
      margin-bottom: 0;
      overflow: hidden;
    }
    .hero-photo-wrap::after {
      content: '';
      position: absolute;
      top: 12px; left: 12px; right: -12px; bottom: -12px;
      border: 1px solid var(--gold);
      z-index: -1;
    }
    .hero-stats {
      display: grid; grid-template-columns: 1fr 1fr;
      gap: 1px;
      background: var(--border);
      width: 240px;
      border: 1px solid var(--border);
      border-top: none;
    }
    .stat {
      background: var(--light);
      padding: 20px 24px;
      text-align: center;
    }
    .stat-num {
      font-family: 'Cormorant Garamond', serif;
      font-size: 32px; font-weight: 600;
      color: var(--navy);
      display: block;
      line-height: 1;
      margin-bottom: 4px;
    }
    .stat-label {
      font-size: 11px; font-weight: 500;
      letter-spacing: 0.1em; text-transform: uppercase;
      color: var(--muted);
    }

    /* ── SECTION SHARED ── */
    section { padding: 100px 0; }
    .container { max-width: 1100px; margin: 0 auto; padding: 0 60px; }
    .section-label {
      font-size: 11px; font-weight: 500;
      letter-spacing: 0.18em; text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 12px;
    }
    .section-title {
      font-family: 'Cormorant Garamond', serif;
      font-size: clamp(32px, 3.5vw, 48px);
      font-weight: 300;
      line-height: 1.15;
      color: var(--navy);
      margin-bottom: 48px;
    }
    .divider {
      width: 48px; height: 2px;
      background: var(--gold);
      margin-bottom: 40px;
    }

    /* ── ABOUT ── */
    #about { background: #fff; }
    .about-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 80px;
      align-items: start;
    }
    .about-text p {
      color: #3a4a5a;
      margin-bottom: 20px;
      font-weight: 300;
      font-size: 15.5px;
    }
    .about-skills { margin-top: 36px; }
    .skills-label {
      font-size: 11px; font-weight: 500;
      letter-spacing: 0.14em; text-transform: uppercase;
      color: var(--muted);
      margin-bottom: 16px;
    }
    .skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }
    .skill-tag {
      padding: 6px 14px;
      border: 1px solid var(--border);
      font-size: 12px; font-weight: 500;
      color: var(--slate);
      letter-spacing: 0.04em;
      background: var(--light);
      transition: border-color 0.2s, color 0.2s;
    }
    .skill-tag:hover { border-color: var(--gold); color: var(--navy); }

    .about-sidebar {}
    .info-card {
      border: 1px solid var(--border);
      padding: 32px;
      margin-bottom: 24px;
      background: var(--light);
    }
    .info-card h4 {
      font-family: 'Cormorant Garamond', serif;
      font-size: 18px; font-weight: 600;
      color: var(--navy);
      margin-bottom: 20px;
      padding-bottom: 14px;
      border-bottom: 1px solid var(--border);
    }
    .info-row {
      display: flex; justify-content: space-between; align-items: baseline;
      padding: 8px 0;
      border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    .info-row:last-child { border-bottom: none; }
    .info-key {
      font-size: 11px; font-weight: 500;
      letter-spacing: 0.1em; text-transform: uppercase;
      color: var(--muted);
    }
    .info-val {
      font-size: 14px; color: var(--text);
      font-weight: 400; text-align: right;
    }

    /* ── RESUME ── */
    #resume { background: var(--cream); }
    .resume-layout {
      display: grid;
      grid-template-columns: 2fr 1fr;
      gap: 64px;
    }

    .resume-section { margin-bottom: 56px; }
    .resume-section:last-child { margin-bottom: 0; }
    .resume-section-title {
      font-size: 11px; font-weight: 500;
      letter-spacing: 0.18em; text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 24px;
      padding-bottom: 10px;
      border-bottom: 1px solid var(--border);
    }

    .job {
      display: grid;
      grid-template-columns: auto 1fr;
      gap: 0 24px;
      margin-bottom: 36px;
      padding-bottom: 36px;
      border-bottom: 1px solid var(--border);
    }
    .job:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
    .job-date {
      writing-mode: horizontal-tb;
      font-size: 11px; font-weight: 500;
      color: var(--muted);
      letter-spacing: 0.06em;
      white-space: nowrap;
      padding-top: 3px;
      min-width: 80px;
      text-align: right;
    }
    .job-content {}
    .job-title {
      font-family: 'Cormorant Garamond', serif;
      font-size: 20px; font-weight: 600;
      color: var(--navy);
      margin-bottom: 2px;
    }
    .job-company {
      font-size: 13px; font-weight: 500;
      color: var(--gold);
      margin-bottom: 12px;
      letter-spacing: 0.04em;
    }
    .job-desc {
      font-size: 14px; color: #4a5a6a;
      font-weight: 300; line-height: 1.75;
      margin-bottom: 12px;
    }
    .job-bullets { padding-left: 0; list-style: none; }
    .job-bullets li {
      font-size: 13.5px; color: #4a5a6a; font-weight: 300;
      padding: 3px 0 3px 18px; position: relative; line-height: 1.7;
    }
    .job-bullets li::before {
      content: '—';
      position: absolute; left: 0;
      color: var(--gold); font-weight: 400;
    }

    /* Resume sidebar */
    .resume-sidebar {}
    .sidebar-block {
      background: #fff;
      border: 1px solid var(--border);
      padding: 28px;
      margin-bottom: 24px;
    }
    .sidebar-block-title {
      font-size: 11px; font-weight: 500;
      letter-spacing: 0.16em; text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 20px;
      padding-bottom: 10px;
      border-bottom: 1px solid var(--border);
    }
    .edu-item { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
    .edu-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
    .edu-degree {
      font-family: 'Cormorant Garamond', serif;
      font-size: 17px; font-weight: 600;
      color: var(--navy);
      line-height: 1.3;
    }
    .edu-school { font-size: 13px; color: var(--gold); font-weight: 500; margin: 3px 0; }
    .edu-year { font-size: 12px; color: var(--muted); }

    .competency { margin-bottom: 16px; }
    .competency-name {
      font-size: 13px; font-weight: 500; color: var(--text);
      display: flex; justify-content: space-between;
      margin-bottom: 6px;
    }
    .competency-name span { color: var(--muted); font-weight: 300; font-size: 12px; }
    .comp-bar {
      height: 3px; background: var(--border); position: relative;
    }
    .comp-fill {
      position: absolute; top: 0; left: 0; height: 100%;
      background: linear-gradient(90deg, var(--gold), var(--gold2));
    }

    .cert-item {
      display: flex; align-items: center; gap: 12px;
      padding: 10px 0;
      border-bottom: 1px solid var(--border);
      font-size: 13px; color: var(--text);
    }
    .cert-item:last-child { border-bottom: none; }
    .cert-dot {
      width: 7px; height: 7px; border-radius: 50%;
      background: var(--gold); flex-shrink: 0;
    }

    /* ── PROJECTS ── */
    #projects { background: var(--navy); }
    #projects .section-label { color: var(--gold); }
    #projects .section-title { color: #fff; background: none; -webkit-text-fill-color: inherit; }
    #projects .section-title .title-gold { color: var(--gold); }
    #projects .divider { background: var(--gold); }

    .projects-header {
      display: flex; justify-content: space-between; align-items: flex-start;
      gap: 40px; margin-bottom: 28px;
    }
    .projects-header-left { flex: 1; }
    .projects-subtitle {
      font-size: 14px; font-weight: 300;
      color: rgba(255,255,255,0.5);
      line-height: 1.7; margin-top: 14px; max-width: 500px;
    }
    .sub-gold { color: rgba(184,151,90,0.9); }
    .sub-blue { color: rgba(99,179,237,0.9); }
    .sub-green { color: rgba(104,211,145,0.9); }

    .projects-filters {
      display: flex; justify-content: space-between; align-items: center;
      margin-bottom: 24px; gap: 16px;
    }
    .filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
    .filter-btn {
      font-size: 11px; font-weight: 500; letter-spacing: 0.06em;
      color: rgba(255,255,255,0.5);
      border: 1px solid rgba(255,255,255,0.12); background: transparent;
      padding: 6px 14px; cursor: pointer; transition: all 0.2s;
    }
    .filter-btn:hover { color: rgba(255,255,255,0.8); border-color: rgba(255,255,255,0.25); }
    .filter-btn.filter-active { color: var(--navy); background: var(--gold); border-color: var(--gold); }
    .filter-github-link {
      display: inline-flex; align-items: center; gap: 7px;
      font-size: 11px; font-weight: 500; letter-spacing: 0.06em;
      color: rgba(255,255,255,0.55);
      border: 1px solid rgba(255,255,255,0.13); padding: 6px 14px;
      text-decoration: none; transition: all 0.2s; white-space: nowrap;
    }
    .filter-github-link:hover { color: rgba(255,255,255,0.85); border-color: rgba(255,255,255,0.28); }

    .projects-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
    }
    .project-card {
      display: flex; flex-direction: column;
      border: 1px solid rgba(255,255,255,0.10); padding: 0;
      position: relative; overflow: hidden;
      transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
      background: linear-gradient(160deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
      box-shadow: 0 4px 24px rgba(0,0,0,0.2);
    }
    .project-card::before {
      content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
      background: linear-gradient(90deg, var(--gold), var(--gold2));
      transform: scaleX(0); transform-origin: left; transition: transform 0.35s ease; z-index: 1;
    }
    .project-card:hover {
      border-color: rgba(184,151,90,0.5); transform: translateY(-5px);
      box-shadow: 0 8px 40px rgba(184,151,90,0.16), 0 2px 12px rgba(0,0,0,0.3);
    }
    .project-card:hover::before { transform: scaleX(1); }

    .card-preview {
      height: 200px;
      border-bottom: 1px solid rgba(255,255,255,0.07);
      overflow: hidden;
      background: #0a1520;
      flex-shrink: 0;
    }
    .card-preview-img {
      width: 100%; height: 100%;
      object-fit: cover;
      object-position: top;
      display: block;
      transition: transform 0.4s ease;
      opacity: 0.9;
    }
    .project-card:hover .card-preview-img { transform: scale(1.04); opacity: 1; }

    .card-body {
      display: flex; flex-direction: column; flex: 1; padding: 18px 20px;
    }
    .card-top-row {
      display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px;
    }
    .card-title-row {
      display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 4px;
    }
    .card-icon-box {
      width: 26px; height: 26px; flex-shrink: 0;
      border: 1px solid rgba(255,255,255,0.12);
      display: flex; align-items: center; justify-content: center;
      color: rgba(255,255,255,0.35); transition: all 0.2s;
    }
    .card-icon-gold { border-color: rgba(184,151,90,0.3); color: rgba(184,151,90,0.55); }
    .project-card:hover .card-icon-gold { border-color: rgba(184,151,90,0.6); color: rgba(184,151,90,0.9); }

    .project-tag {
      display: inline-flex; align-items: center; gap: 6px;
      font-size: 10px; font-weight: 500;
      letter-spacing: 0.12em; text-transform: uppercase;
      color: var(--gold); border: 1px solid rgba(184,151,90,0.3); padding: 3px 10px;
    }
    .project-live-dot {
      width: 6px; height: 6px; border-radius: 50%;
      background: #4ade80; animation: pulse-dot 2s ease infinite;
    }
    @keyframes pulse-dot {
      0%,100% { opacity: 1; transform: scale(1); }
      50% { opacity: 0.6; transform: scale(0.8); }
    }
    .project-title {
      font-family: 'Cormorant Garamond', serif;
      font-size: 21px; font-weight: 400; color: #fff; line-height: 1.2;
    }
    .project-subtitle {
      font-size: 10px; font-weight: 500; letter-spacing: 0.08em;
      color: var(--gold); margin-bottom: 8px; text-transform: uppercase;
    }
    .project-desc {
      font-size: 12.5px; font-weight: 300; color: rgba(255,255,255,0.58);
      line-height: 1.7; margin-bottom: 14px; flex: 1;
    }
    .project-tech { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 14px; }
    .project-tech-tag {
      font-size: 10px; font-weight: 500; color: rgba(255,255,255,0.5);
      border: 1px solid rgba(255,255,255,0.12); padding: 2px 8px; letter-spacing: 0.04em;
    }
    .tag--security { color: rgba(184,151,90,0.9); border-color: rgba(184,151,90,0.3); background: rgba(184,151,90,0.06); }
    .tag--api { color: rgba(99,179,237,0.9); border-color: rgba(99,179,237,0.3); background: rgba(99,179,237,0.06); }
    .tag--infra { color: rgba(104,211,145,0.9); border-color: rgba(104,211,145,0.3); background: rgba(104,211,145,0.06); }

    .project-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
    .btn-live-demo, .btn-view-code {
      display: flex; align-items: center; justify-content: center; gap: 5px;
      font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
      text-decoration: none; padding: 9px 10px; transition: all 0.2s;
    }
    .btn-live-demo { background: var(--gold); color: var(--navy); }
    .btn-live-demo:hover { background: var(--gold2); }
    .btn-view-code {
      border: 1px solid rgba(255,255,255,0.18); color: rgba(255,255,255,0.65);
      background: rgba(255,255,255,0.03);
    }
    .btn-view-code:hover { border-color: var(--gold); color: var(--gold); }

    .projects-footer-bar {
      display: flex; align-items: center; margin-top: 28px;
      border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.02);
    }
    .footer-bar-item {
      display: flex; align-items: center; gap: 13px; flex: 1; padding: 18px 22px;
    }
    .footer-bar-icon {
      width: 34px; height: 34px; flex-shrink: 0;
      border: 1px solid rgba(184,151,90,0.22);
      display: flex; align-items: center; justify-content: center; color: var(--gold);
    }
    .footer-bar-title { font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.75); margin-bottom: 2px; }
    .footer-bar-sub { font-size: 10.5px; font-weight: 300; color: rgba(255,255,255,0.32); }
    .footer-bar-sep { width: 1px; height: 44px; background: rgba(255,255,255,0.08); flex-shrink: 0; }

    @media (max-width: 900px) {
      .projects-grid { grid-template-columns: 1fr; }
      .projects-header { flex-direction: column; }
      .projects-footer-bar { flex-direction: column; }
      .footer-bar-sep { width: 100%; height: 1px; }
      .projects-filters { flex-direction: column; align-items: flex-start; }
    }

    /* ── FOOTER ── */
    footer {
      background: var(--navy);
      padding: 48px 60px;
      text-align: center;
    }
    .footer-name {
      font-family: 'Cormorant Garamond', serif;
      font-size: 26px; font-weight: 300;
      color: rgba(255,255,255,0.9);
      margin-bottom: 12px;
    }
    .footer-links { display: flex; justify-content: center; gap: 28px; margin-bottom: 28px; }
    .footer-links a {
      font-size: 12px; font-weight: 500;
      letter-spacing: 0.1em; text-transform: uppercase;
      color: rgba(255,255,255,0.45);
      text-decoration: none;
      transition: color 0.2s;
    }
    .footer-links a:hover { color: var(--gold); }
    .footer-copy { font-size: 12px; color: rgba(255,255,255,0.25); }

    /* ── SOCIAL ICONS ── */
    .hero-socials {
      display: flex; gap: 14px;
      margin-top: 32px;
      position: relative; z-index: 1;
    }
    .hero-social-icon {
      width: 40px; height: 40px;
      border: 1px solid rgba(255,255,255,0.2);
      display: flex; align-items: center; justify-content: center;
      color: rgba(255,255,255,0.6);
      text-decoration: none;
      transition: all 0.25s ease;
      position: relative;
      overflow: hidden;
    }
    .hero-social-icon::before {
      content: '';
      position: absolute; inset: 0;
      background: var(--gold);
      transform: translateY(100%);
      transition: transform 0.25s ease;
      z-index: 0;
    }
    .hero-social-icon:hover::before { transform: translateY(0); }
    .hero-social-icon:hover { border-color: var(--gold); color: var(--navy); }
    .hero-social-icon svg { width: 16px; height: 16px; position: relative; z-index: 1; }

    .footer-icons {
      display: flex; gap: 16px;
      justify-content: center;
      margin-bottom: 28px;
    }
    .social-icon {
      width: 44px; height: 44px;
      border: 1px solid rgba(255,255,255,0.15);
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      color: rgba(255,255,255,0.5);
      text-decoration: none;
      transition: all 0.25s ease;
      position: relative; overflow: hidden;
    }
    .social-icon::before {
      content: '';
      position: absolute; inset: 0;
      border-radius: 50%;
      background: var(--gold);
      transform: scale(0);
      transition: transform 0.25s ease;
    }
    .social-icon:hover::before { transform: scale(1); }
    .social-icon:hover { border-color: var(--gold); color: var(--navy); }
    .social-icon svg { width: 18px; height: 18px; position: relative; z-index: 1; }

    /* ── PARTICLE CANVAS ── */
    #particle-canvas {
      position: absolute; inset: 0;
      pointer-events: none;
      z-index: 0;
    }
    .hero-left > *:not(#particle-canvas) { position: relative; z-index: 1; }

    /* ── TYPING CURSOR ── */
    .typing-cursor {
      display: inline-block;
      width: 2px; height: 0.85em;
      background: var(--gold);
      margin-left: 3px;
      vertical-align: middle;
      animation: blink 0.75s step-end infinite;
    }
    @keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

    /* ── HOVER CARD EFFECTS ── */
    .job {
      transition: transform 0.2s ease, box-shadow 0.2s ease;
      padding: 20px;
      margin: 0 -20px 36px;
    }
    .job:hover {
      transform: translateX(6px);
      background: rgba(184,151,90,0.04);
      box-shadow: -3px 0 0 var(--gold);
    }
    .sidebar-block {
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .sidebar-block:hover {
      transform: translateY(-3px);
      box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    }
    .info-card {
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .info-card:hover {
      transform: translateY(-3px);
      box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    }

    /* ── GLOWING GOLD LINE ON NAV SCROLL ── */
    .nav-scrolled {
      box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    }
    .nav-progress {
      position: fixed; top: 68px; left: 0; height: 2px;
      background: linear-gradient(90deg, var(--gold), var(--gold2));
      z-index: 101;
      transition: width 0.1s linear;
      width: 0%;
    }

    /* ── SECTION REVEAL SHIMMER ── */
    @keyframes shimmer {
      0% { background-position: -200% center; }
      100% { background-position: 200% center; }
    }
    .section-title {
      background: linear-gradient(90deg, var(--navy) 40%, var(--gold) 50%, var(--navy) 60%);
      background-size: 200% auto;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }
    .section-title.shimmer-play {
      animation: shimmer 1.2s ease forwards;
    }


    .fade-up {
      opacity: 0;
      transform: translateY(28px);
      transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .fade-up.visible { opacity: 1; transform: translateY(0); }

    /* ── RESPONSIVE ── */
    @media (max-width: 900px) {
      nav { padding: 0 28px; }
      #hero { grid-template-columns: 1fr; }
      .hero-right { display: none; }
      .hero-left { padding: 60px 36px; min-height: calc(100vh - 68px); }
      .about-grid, .resume-layout { grid-template-columns: 1fr; gap: 40px; }
      .container { padding: 0 28px; }
      section { padding: 72px 0; }
      footer { padding: 40px 28px; }
    }
    /* ── TERMINAL BOOT INTRO ── */
    #boot-overlay {
      position: fixed; inset: 0; z-index: 9999;
      background: #0a0e14;
      display: flex; align-items: center; justify-content: center;
      transition: opacity 0.6s ease, visibility 0.6s ease;
    }
    #boot-overlay.boot-done { opacity: 0; visibility: hidden; }
    .boot-window {
      width: min(640px, 88vw);
      background: #0a0e14;
      border: 1px solid rgba(255,255,255,0.12);
      border-radius: 8px;
      overflow: hidden;
      box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    }
    .boot-titlebar {
      background: #1a1f29;
      padding: 9px 14px;
      display: flex; align-items: center;
      border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    .boot-tb-btns { display: flex; gap: 8px; }
    .boot-tb-btn {
      width: 12px; height: 12px; border-radius: 3px;
      border: 1px solid rgba(255,255,255,0.15);
      background: rgba(255,255,255,0.06);
    }
    .boot-tb-title {
      flex: 1; text-align: center;
      font-family: 'DM Sans', sans-serif;
      font-size: 12px; color: rgba(255,255,255,0.4);
      letter-spacing: 0.02em;
    }
    .boot-tb-icons { display: flex; gap: 14px; color: rgba(255,255,255,0.3); font-size: 13px; }
    .boot-body {
      padding: 22px 24px;
      min-height: 220px;
      font-family: 'Courier New', monospace;
    }
    .boot-line { font-size: 14px; line-height: 1.9; white-space: pre-wrap; word-break: break-word; }
    .bt-prompt { color: #4ade80; }
    .bt-out { color: rgba(255,255,255,0.75); }
    .bt-gold { color: var(--gold); }
    .bt-cursor {
      display: inline-block; width: 9px; height: 15px;
      background: #4ade80; vertical-align: middle;
      animation: btblink 0.7s step-end infinite;
    }
    @keyframes btblink { 0%,100%{opacity:1} 50%{opacity:0} }
    .boot-skip {
      position: fixed; bottom: 32px; left: 50%;
      transform: translateX(-50%);
      font-family: 'DM Sans', sans-serif;
      font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
      color: rgba(255,255,255,0.35);
      cursor: pointer;
      border: 1px solid rgba(255,255,255,0.15);
      padding: 8px 20px;
      background: transparent;
      transition: all 0.2s;
    }
    .boot-skip:hover { color: var(--gold); border-color: var(--gold); }
/* ── CTF WRITEUPS SECTION ── */
#ctf { background: var(--light); }
.ctf-intro {
  font-size: 15px;
  color: #4a5a6a;
  font-weight: 300;
  max-width: 640px;
  margin-bottom: 48px;
  line-height: 1.75;
}
.ctf-intro a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(184,151,90,0.3);
  transition: border-color 0.2s;
}
.ctf-intro a:hover { border-color: var(--gold); }

.ctf-stats {
  display: inline-flex;
  align-items: stretch;
  margin-bottom: 40px;
  border: 1px solid var(--border);
  background: #fff;
}
.ctf-stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 13px 24px;
  border-right: 1px solid var(--border);
}
.ctf-stat-item:last-child { border-right: none; }
.ctf-stat-num {
  font-family: 'DM Sans', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}
.ctf-stat-sep { display: none; }

.ctf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.ctf-card {
  background: #fff;
  border: 1px solid var(--border);
  padding: 24px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  position: relative;
  overflow: hidden;
}
.ctf-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.ctf-card:hover {
  border-color: rgba(184,151,90,0.4);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}
.ctf-card:hover::before { transform: scaleX(1); }

.ctf-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.ctf-difficulty {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
}
.ctf-easy   { background: rgba(74,222,128,0.12);  color: #15803d; border: 1px solid rgba(74,222,128,0.35); }
.ctf-medium { background: rgba(245,166,35,0.15);  color: #7a3d00; border: 1px solid rgba(245,166,35,0.45); }
.ctf-hard   { background: rgba(220,38,38,0.10);   color: #b91c1c; border: 1px solid rgba(220,38,38,0.30); }

.ctf-points {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.ctf-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 6px;
}
.ctf-category {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.ctf-snippet {
  font-size: 13.5px;
  font-weight: 300;
  color: #4a5a6a;
  line-height: 1.7;
  margin-bottom: 18px;
  flex: 1;
}
.ctf-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}
.ctf-tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--slate);
  border: 1px solid var(--border);
  padding: 3px 9px;
  letter-spacing: 0.04em;
}
.ctf-read {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: auto;
}

.ctf-all-row { text-align: center; }
.ctf-all-link {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
  padding: 12px 24px;
  border: 1px solid var(--navy);
  transition: all 0.2s;
}
.ctf-all-link:hover {
  background: var(--navy);
  color: var(--gold);
}

@media (max-width: 900px) {
  .ctf-grid { grid-template-columns: 1fr; }
}

/* ── SCROLL TO TOP ── */
#scroll-top {
  position: fixed;
  bottom: 36px;
  right: 36px;
  width: 44px;
  height: 44px;
  background: var(--navy);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, background 0.2s, color 0.2s, transform 0.2s;
  z-index: 90;
}
#scroll-top.visible {
  opacity: 1;
  visibility: visible;
}
#scroll-top:hover {
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-3px);
}

/* ── CTF COMING SOON BANNER ── */
.ctf-coming-soon {
  background: var(--navy);
  border: 1px solid rgba(184,151,90,0.25);
  padding: 44px 40px;
  margin-bottom: 36px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.ctf-coming-soon::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(184,151,90,0.018) 0px,
    rgba(184,151,90,0.018) 1px,
    transparent 1px,
    transparent 9px
  );
  pointer-events: none;
}
.ctf-coming-soon::after {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184,151,90,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.ctf-cs-inner { position: relative; z-index: 1; }
.ctf-cs-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(184,151,90,0.35);
  padding: 5px 14px;
  margin-bottom: 24px;
}
.ctf-cs-blink-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
  animation: pulse-dot 2s ease infinite;
}
.ctf-cs-terminal {
  font-family: 'Courier New', monospace;
  font-size: 17px;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}
.ctf-cs-prompt { color: #4ade80; }
.ctf-cs-cmd { color: rgba(255,255,255,0.8); }
.ctf-cs-cursor {
  display: inline-block;
  width: 9px; height: 16px;
  background: var(--gold);
  vertical-align: middle;
  margin-left: 2px;
  animation: btblink 0.7s step-end infinite;
}
.ctf-cs-sub {
  font-size: 13.5px;
  color: rgba(255,255,255,0.38);
  font-weight: 300;
  max-width: 440px;
  margin: 0 auto;
  line-height: 1.75;
}
