:root{
  --border: rgba(255, 255, 255, .08);
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --radius: 16px;
  --accent: #3B82F6;
  --bg: #0E1320;
  --panel: #141A2B;
  --panel2: #101625;
  --accent: #6366F1;
  --secondary: #22D3EE;
  --text: #F1F5F9;
  --muted: #CBD5E1;
}    

.nav a.active {
  color: var(--text);
  background: rgba(255, 255, 255, .06);
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .05);
  text-decoration: none;
}

.pill {
  border: 1px solid var(--border);
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(900px 600px at 20% 10%, rgba(124,92,255,.25), transparent 60%),
              radial-gradient(900px 600px at 80% 10%, rgba(0,190,255,.18), transparent 60%),
              var(--bg);
  color:var(--text);
  line-height:1.55;
}

a{ color:inherit; text-decoration:none; }
a:hover{ opacity:.9; text-decoration:underline; }

.container{
  width:min(1050px, 92vw);
  margin:0 auto;
}

.header{
  position:sticky;
  top:0;
  z-index:20;
  backdrop-filter: blur(10px);
  background: rgba(11,15,20,.65);
  border-bottom: 1px solid var(--border);
}

.nav-wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
  gap:16px;
}

.brand{
  font-weight:800;
  letter-spacing:.2px;
  font-size:18px;
}
.dot{ color:var(--accent); }

.nav{
  display:flex;
  gap:14px;
  align-items:center;
}
.nav a{
  color: var(--muted);
  padding:8px 10px;
  border-radius: 10px;
  text-decoration:none;
}


.menu-btn{
  display:none;
  width:42px; height:38px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
  border-radius: 12px;
  cursor:pointer;
}
.menu-btn span{
  display:block;
  height:2px;
  margin:7px 9px;
  background: rgba(255,255,255,.75);
  border-radius: 2px;
}

.hero{ padding:54px 0 18px; }
.hero-grid{
  display:grid;
  grid-template-columns: 1.3fr .9fr;
  gap:18px;
  align-items:stretch;
}

.badge{
  display:inline-block;
  font-size:12px;
  color:var(--text);
  background: rgba(124,92,255,.16);
  border:1px solid rgba(124,92,255,.25);
  padding:6px 10px;
  border-radius: 999px;
  margin-bottom:12px;
}

h1{ margin:0 0 10px; font-size:44px; line-height:1.1; }
.accent{ color: var(--accent); }

.subtitle{
  color: var(--muted);
  font-size:16px;
  margin:0 0 18px;
}

.cta-row{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:14px; }

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  color: var(--text);
  box-shadow: none;
  cursor:pointer;
  text-decoration:none;
  transition: transform 0.2s ease;
}
.btn:hover{ background: rgba(255,255,255,.06); text-decoration:none; }
.btn.primary{
  background: rgba(124,92,255,.25);
  border-color: rgba(124,92,255,.35);
}
.btn.primary:hover{ background: rgba(124,92,255,.32); }

.links{
  display:flex;
  gap: 20px;
  flex-wrap:wrap;
  color: var(--muted);
  font-size:14px;
}

.section{ padding:34px 0; }
.section h2{
  margin:0 0 14px;
  font-size:22px;
}
.lead{ color: var(--muted); margin-top:0; }

.grid-2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
}

.card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(124, 92, 255, 0.25);
}

.hero-card h3{ margin-top:0; }
.muted{ color: var(--muted); }
.tiny{ font-size:12px; }

.clean{ padding-left:16px; margin:10px 0 0; }
.clean li{ margin:6px 0; }
.clean span{ color: var(--muted); }

.divider{
  height:1px;
  background: var(--border);
  margin:14px 0;
}

.chips{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.chips.small .chip{ padding:5px 9px; font-size:12px; }
.chip{
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
  padding:6px 10px;
  border-radius: 999px;
  color: var(--muted);
  font-size:13px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.project {
  position: relative;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border 0.35s ease;
}

.project:hover {
  border: 1px solid rgba(124, 92, 255, 0.4);
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(124, 92, 255, 0.25);
}

.project-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.project h3{
  margin:0;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.project-links{
  display:flex;
  gap:10px;
  font-size:13px;
  color: var(--muted);
}

.timeline{ display:flex; flex-direction:column; gap:12px; }
.item{
  display:grid;
  grid-template-columns: 140px 1fr;
  gap:14px;
  align-items:flex-start;
}
.when{ color: var(--muted); font-size:13px; padding-top:4px; }
.item ul{ margin:8px 0 0; padding-left:18px; }
.item li{ margin:6px 0; }

label{ display:block; margin:10px 0; color: var(--muted); font-size:13px; }
input, textarea{
  width:100%;
  margin-top:6px;
  padding:10px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.18);
  color: var(--text);
  outline:none;
}
textarea{ min-height: 110px; resize: vertical; }

.footer{
  padding:22px 0 34px;
  border-top:1px solid var(--border);
  background: rgba(11,15,20,.55);
}

/* Responsive */
@media (max-width: 860px){
  h1{ font-size:36px; }
  .hero-grid{ grid-template-columns: 1fr; }
  .cards{ grid-template-columns: 1fr; }
  .grid-2{ grid-template-columns: 1fr; }
  .item{ grid-template-columns: 1fr; }
  .chips {
      grid-template-columns: 1fr;
    }
  .project{
      grid-template-columns: 1fr;
    }
}

@media (max-width: 720px){
  .menu-btn{ display:block; }
  .nav{
    position:absolute;
    right:4vw;
    top:64px;
    flex-direction:column;
    align-items:stretch;
    width:min(260px, 92vw);
    padding:10px;
    border:1px solid var(--border);
    border-radius: 14px;
    background: rgba(17,24,36,.95);
    box-shadow: var(--shadow);
    display:none;
  }
  .nav.open{ display:flex; }
  .nav a{ padding:10px 12px; }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.gradient-text {
  background: linear-gradient(90deg, #7c5cff, #00beff, #7c5cff);
  background-size: 200% 200%;
  animation: gradientMove 6s ease infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Progress Bar*/
#progressBar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, #7c5cff, #00beff);
  z-index: 9999;
}

/* Moving Particles */
#particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  inset: 0;
  pointer-events: none;
  z-index: -1; /* pushing behind everything */
}

/* Education */
.education-list {
  position: relative;
  padding-left: 0px;
}

.education-list::before {
  /*content: "";*/
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(var(--accent), transparent);
}

.education {
  position: relative;
}

.education::before {
  /*content: "";*/
  position: absolute;
  left: -14px;
  top: 20px;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
}

.page-content {
  position: relative;
  z-index: 1;
}

/*Experience*/
.content {
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px;
  padding: 20px;
  transition: transform .3s ease, box-shadow .3s ease;
}

.content:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(124,92,255,.25);
}

/*Initial Page*/
/* TERMINAL LOADER */

#terminal-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #0b0f14;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.terminal-window {
  width: 500px;
  max-width: 90%;
  background: #0f1520;
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .6);
  font-family: monospace;
  color: #00ff9c;
}

.terminal-header {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.dot {
  height: 10px;
  width: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}

.red {
  background: #ff5f56;
}

.yellow {
  background: #ffbd2e;
}

.green {
  background: #27c93f;
}

.terminal-body {
  padding: 20px;
  font-size: 14px;
}

.terminal-body p {
  margin: 6px 0;
  opacity: 0;
  animation: fadeIn .3s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Profile image*/
.profile-card {
  text-align: center;
}

.profile-image {
  width: 120%;
  max-width: 300px;

  height: 375px;

  object-fit: cover;

  border-radius: 10px;

  border: 2px solid rgba(124, 92, 255, .4);

  box-shadow: 0 15px 40px rgba(0, 0, 0, .35);

  margin-bottom: 10px;
}

.hero-details {
  color: var(--muted);
  margin-bottom: 15px;
}

/* Icons social links*/
.social-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Skills Chips*/
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chip i {
  font-size: 1.1rem;
}

.role-container {
  min-width: 260px;
  display: inline-block;
}

#dynamicRole {
  transition: opacity 0.3s ease;
}