:root {
  --bg: #0a0a0f;
  --surface: #111118;
  --border: #1e1e2e;
  --accent: #00ff88;
  --accent2: #00bfff;
  --text: #e8e8f0;
  --muted: #6b6b8a;
  --card: #13131f;
}

*, *::before, *::after { 
  margin: 0; 
  padding: 0; 
  box-sizing: 
  border-box; 
}
html { 
  scroll-behavior: smooth; 
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Syne', sans-serif;
  overflow-x: hidden;
  cursor: none;
}

/* Custom Cursor */
.cursor {
  width: 12px; height: 12px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s;
  mix-blend-mode: screen;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, opacity 0.2s;
  opacity: 0.5;
}

/* Noise */
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.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9990;
  opacity: 0.4;
}

/* Nav */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 3rem;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(16px);
  border-bottom: none;
}
nav::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0px;   /* adjust this value */
  height: 1px;
  background: var(--border);
}

.nav-profile img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.4s ease;
}
.nav-logo {
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.15em;
}
.nav-links { 
  font-family: "Bebas Neue", sans-serif;
  display: flex; 
  gap: 2rem; 
  list-style: none; 
}

.nav-links a {
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 500;
}
.nav-links a:hover,
.nav-links a.active { 
  color: var(--accent); 
}

.nav-profile {
  display: flex;
  align-items: center;
  gap: 10px;   /* space between image & text */
  overflow: visible;
  position: relative;
}

.nav-profile img.active {
  width: 100px;
  height: 100px;
  position: absolute;
  top: 80px;
  left: 50px;
  z-index: 1000;
  transition: 0.6s;
}

.nav-name {
  color: #DDD0C8;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 1px;
}

/* Hero */
#hero {
  background: linear-gradient(135deg, #DDD0C8 0%, #6F4E37 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 3rem;
  position: relative;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(23, 197, 116, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 123, 0, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridShift 20s linear infinite;
}
@keyframes gridShift {
  0% { transform: translateY(0); }
  100% { transform: translateY(60px); }
}
.hero-glow {
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(204, 167, 167, 0.237) 0%, transparent 70%);
  right: -100px; top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.hero-content { 
  position: relative; 
  z-index: 1; 
  max-width: 1200px; 
  margin: 40px;
}
.hero-tag {
  font-family: sans-serif;
  font-size: 0.75rem;
  color: #1a1a1a;
  font-weight: 600;
  letter-spacing: 0.9em;
  text-transform: uppercase;
  margin-top: 19px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 1.2em;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}
.hero-tag::before { content: ''; 
  display: block; 
  width: 30px; 
  height: 1px; 
  background: black; 
  flex-shrink: 0; 
}

.hero-name {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(5rem, 10vw, 11rem);
  font-weight: 700;
  letter-spacing: -3px;
  line-height: 0.85;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.4s forwards;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.hero-name span {
  display: block;
  background: linear-gradient(135deg, #474747, #1c1c1c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-name .accent-word {
  background: linear-gradient(
    90deg, 
    #1a1a1a,
    #323232,
    #484848,
    #323232
    );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-family: sans-serif;
  font-size: 0.9rem;
  color: #1a1a1a;
  line-height: 1.8;
  max-width: 500px;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.6s forwards;
}
.hero-cta {
  display: flex; gap: 1rem; flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s 0.8s forwards;
}
.btn {
  padding: 0.85rem 2rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 3px;
  transition: all 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: none;
}
.btn-primary {
  background: #DDD0C8;
  color: #000;
  font-weight: 500;
  border: 4px solid #837268;
  border-radius: 5px;
}

.btn-primary:hover { 
  background: #323232; 
  color: #DDD0C8; 
}

.btn-secondary {
  background: #DDD0C8;
  border: 4px solid #837268;
  border-radius: 5px;
  color: #000;
}
.btn-secondary:hover { 
  background: #323232; 
  color: #DDD0C8; 
}

/* Sections */
section { 
  padding: 6rem 3rem; 
}
.section-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #cdb2a3;
  margin-bottom: 0.75rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.section-label::before { 
  content: ''; 
  color: 
  var(--muted); 
}
.section-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(7rem, 8vw, 5rem);
  font-weight: 800;
  margin-bottom: 3rem;
  line-height: 1.1;
  color: #d1c3ba;
}

/* About */
#about { 
  background: #39150ff2; 
  border-top: 1px solid beige; 
  border-bottom: 1px solid beige; 
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
.about-text p {
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  color: #c4ab97;
  line-height: 1.9;
  margin-bottom: 1.2rem;
}
.about-text p strong { color: var(--text); }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}
.stat-card:hover { 
  border-color: #837268; 
  transform: translateY(-3px); 
}
.stat-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: beige;
  line-height: 1;
  margin-bottom: 0.3rem;
}
.stat-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Skills */
#skills { 
  max-width: 1100px;
  margin-left: 3rem;
  padding-left: 3rem; 
  padding-right: 3rem; 
  
}
.skills-categories { 
  display: flex; 
  flex-direction: column; 
  gap: 2rem; 
}
.skill-category-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: #c3987ded;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
}
.skills-row { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 0.75rem; 
}
.skill-pill {
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  color: var(--text);
  transition: all 0.2s;
  background: var(--card);
}
.skill-pill:hover {
  border-color: #c3987ded;
  color: #FFF;
  background: #6F4E37;
  transform: translateY(-2px);
}

/* Projects */
#projects { 
  /* font-family: "Libre Baskerville", serif; */
  background: var(--surface); 
  border-top: 1px solid beige; 
  border-bottom: 1px solid beige; 
  margin: 0 auto;
}

.projects-inner { 
  max-width: 1100px; 
  margin: 0 auto; 
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.project-card {
  background: linear-gradient(135deg, #d1c3ba , rgb(240, 196, 149));;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.project-card:hover { 
  border-color: rgba(0,255,136,0.3); 
  transform: translateY(-4px);
}
.project-card:hover::before { 
  transform: scaleX(1); 
}
.project-highlight {
  background: linear-gradient(100deg, #39150ff2 , rgb(180, 127, 70));
  border-color: rgba(255, 255, 255, 0.2);
  grid-column: span 2;
}
.project-num {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: var(--accent);
  margin-bottom: 1rem;
  opacity: 0.6;
}
.project-num-nn{
  Font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: var(--accent);
  margin-bottom: 1rem;
  opacity: 0.6;
  color: #39150ff2;
}
.project-highlight .project-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: rgb(207, 207, 207);
}
.project-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #39150ff2;
}
.project-title-2{
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.1rem;
  color: rgb(207, 207, 207);
}
.project-subtitle{
  font-size: 0.7rem;
  margin-bottom: 0.75rem;
}
.project-highlight .project-desc{
  color: rgb(215, 184, 184);
}
.project-desc {
  font-family: 'Space Mono', monospace;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgb(0, 0, 0);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}
.project-tags { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 0.5rem; 
  margin-bottom: 1.5rem; 
}
.tag {
  padding: 0.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.2);
  color: black;
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.project-links { 
  display: flex; 
  gap: 1rem; 
}
.project-link {
  font-family: 'Space Mono', monospace;
  font-weight: 900;
  font-size: 0.75rem;
  color: var(--muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.2s;
  letter-spacing: 0.05em;
}
.project-link-nn{
  font-family: 'Space Mono', monospace;
  font-weight: 900;
  font-size: 0.75rem;
  color: beige;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.2s;
  letter-spacing: 0.05em;
}
.project-link-nn:hover{
  color: #00ff88;
}
.project-link:hover {
   color: #39150ff2; 
  }

/* Experience */
#experience { 
  max-width: 1100px; 
  margin-left: 3rem;
  padding-left: 3rem; 
  padding-right: 3rem; 
}
.timeline { 
  position: relative;
  max-width: 700px; 
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 1px;
  background: var(--border);
}
.timeline-item {
  padding: 0 0 3rem 3rem;
  position: relative;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -4px; top: 6px;
  width: 9px; height: 9px;
  background: #ecaf79f2;
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent);
}
.timeline-date {
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  color: #ecaf79f2;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}
.timeline-role {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.timeline-org {
  font-family: 'Space Mono', monospace;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.timeline-desc {
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.8;
  list-style: disc;
  padding-left: 1rem;
}
.timeline-desc li { margin-bottom: 0.4rem; }

/* Contact */
#contact {
  background: var(--surface);
  border-top: 1px solid var(--border);
  text-align: center;
}
.contact-inner { 
  max-width: 600px; 
  margin: 0 auto; 
}
.contact-email {
  font-size: clamp(1rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: #ecaf79f2;
  text-decoration: none;
  display: inline-block;
  margin: 1.5rem 0;
  transition: opacity 0.2s;
  word-break: break-all;
}
.contact-email:hover { opacity: 0.7; }
.contact-links { display: flex; justify-content: center; gap: 1.5rem; margin-top: 2rem; flex-wrap: wrap; }
.contact-link {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s;
  text-transform: uppercase;
}
.contact-link:hover { color: var(--accent); }

/* Footer */
footer {
  padding: 2rem 3rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
footer span {
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  color: var(--muted);
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: 0.65rem; }
  section, #skills, #experience { padding: 4rem 1.5rem; }
  #hero { padding: 0 1.5rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-highlight { grid-column: span 1; }
  footer { flex-direction: column; gap: 0.5rem; text-align: center; }
}

.nav-profile img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.4s ease;
}










