/* =========================================================
   GLOBAL RESET & VARIABLES
========================================================= */
:root{
  --bg-dark:#050805;
  --bg-panel:#0e1510;
  --bg-panel-soft:#101b14;
  --toxic-green:#2aff00;
  --toxic-soft:#9cff00;
  --text-main:#e6e6e6;
  --text-muted:#9a9a9a;
  --border-soft:rgba(42,255,0,0.15);
  --shadow-soft:0 0 25px rgba(42,255,0,0.15);
  --shadow-strong:0 0 50px rgba(42,255,0,0.35);
  --radius-lg:18px;
  --radius-md:14px;
  --radius-sm:8px;
  --transition-fast:0.3s ease;
  --transition-mid:0.6s ease;
}

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  font-family:system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    radial-gradient(circle at top, #0f2015, #020402);
  color:var(--text-main);
  line-height:1.7;
  overflow-x:hidden;
}

/* =========================================================
   BASIC ELEMENTS
========================================================= */
h1,h2,h3,h4{
  font-weight:700;
  letter-spacing:0.4px;
}

p{
  color:var(--text-muted);
}

ul{
  list-style:none;
  padding-left:0;
}

a{
  color:inherit;
  text-decoration:none;
}

/* =========================================================
   NAVBAR
========================================================= */
.navbar{
  position:sticky;
  top:0;
  z-index:1000;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:18px 8%;
  background:rgba(5,8,5,0.85);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--border-soft);
}

.logo{
  font-size:1.6rem;
  font-weight:800;
}

.logo span{
  color:var(--toxic-green);
}

.nav-right{
  display:flex;
  gap:22px;
}

.nav-right a{
  font-weight:500;
  color:var(--text-muted);
  position:relative;
  transition:var(--transition-fast);
}

.nav-right a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-6px;
  width:0;
  height:2px;
  background:var(--toxic-green);
  transition:var(--transition-fast);
}

.nav-right a:hover,
.nav-right a.active{
  color:var(--toxic-green);
}

.nav-right a:hover::after,
.nav-right a.active::after{
  width:100%;
}

.menu-toggle{
  display:none;
  font-size:1.8rem;
  cursor:pointer;
}

/* =========================================================
   SECTIONS & HEADERS
========================================================= */
.section{
  padding:90px 8%;
}

.section-title{
  text-align:center;
  font-size:2.3rem;
  margin-bottom:20px;
  color:var(--toxic-green);
}

.section-subtitle{
  text-align:center;
  max-width:700px;
  margin:0 auto 60px;
  color:var(--text-muted);
}

.page-header{
  padding:100px 10% 70px;
  text-align:center;
}

.page-header h1{
  font-size:3rem;
  color:var(--toxic-green);
}

.page-header p{
  max-width:720px;
  margin:20px auto 0;
}

/* =========================================================
   HERO
========================================================= */
.hero{
  min-height:90vh;
  display:grid;
  grid-template-columns:1.1fr 0.9fr;
  gap:60px;
  align-items:center;
}

.hero h1{
  font-size:3.2rem;
}

.hero h2{
  margin-top:10px;
  color:var(--toxic-soft);
}

.hero p{
  margin-top:18px;
}

.hero-quote{
  margin-top:20px;
  font-style:italic;
  color:var(--toxic-soft);
}

.hero-actions{
  display:flex;
  gap:18px;
  margin-top:35px;
}

/* =========================================================
   BUTTONS
========================================================= */
.btn{
  padding:14px 30px;
  border-radius:999px;
  font-weight:600;
  display:inline-block;
  transition:var(--transition-fast);
}

.btn.primary{
  background:linear-gradient(90deg,var(--toxic-green),var(--toxic-soft));
  color:#000;
}

.btn.outline{
  border:2px solid var(--toxic-green);
  color:var(--toxic-green);
}

.btn:hover{
  transform:translateY(-4px);
  box-shadow:var(--shadow-strong);
}

.btn.large{
  font-size:1.1rem;
  padding:16px 36px;
}

/* =========================================================
   AVATAR
========================================================= */
.avatar-wrapper{
  position:relative;
  width:260px;
  height:260px;
  margin:auto;
}

.avatar{
  width:100%;
  height:100%;
  border-radius:50%;
  background:var(--bg-panel);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:5rem;
  border:4px solid var(--toxic-green);
  z-index:2;
  position:relative;
}

.avatar-glow{
  position:absolute;
  inset:-25px;
  border-radius:50%;
  background:radial-gradient(circle,var(--toxic-green),transparent 70%);
  opacity:0.35;
  animation:pulseGlow 3s infinite;
}

@keyframes pulseGlow{
  0%{transform:scale(0.9);}
  50%{transform:scale(1);}
  100%{transform:scale(0.9);}
}

/* =========================================================
   GRIDS & CARDS
========================================================= */
.about-grid,
.skills-grid,
.projects-grid,
.cert-grid,
.values-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:35px;
}

.about-card,
.skill-card,
.project-card,
.cert-card,
.value-card,
.edu-card{
  background:var(--bg-panel);
  padding:28px;
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-soft);
  border:1px solid var(--border-soft);
  transition:var(--transition-mid);
}

.about-card:hover,
.skill-card:hover,
.project-card:hover,
.cert-card:hover,
.value-card:hover{
  transform:translateY(-8px);
  box-shadow:var(--shadow-strong);
}

.about-card i,
.skill-card i,
.project-card i,
.cert-card i{
  font-size:2rem;
  color:var(--toxic-green);
  margin-bottom:12px;
}

/* =========================================================
   SKILL BARS
========================================================= */
.progress{
  margin-top:14px;
  background:#222;
  height:8px;
  border-radius:10px;
  overflow:hidden;
}

.progress span{
  display:block;
  height:100%;
  width:0;
  background:linear-gradient(90deg,var(--toxic-green),var(--toxic-soft));
  transition:width 1.4s ease;
}

/* =========================================================
   PROJECT TAGS
========================================================= */
.project-footer{
  display:flex;
  gap:10px;
  margin-top:14px;
}

.tech{
  padding:4px 12px;
  border-radius:999px;
  font-size:0.75rem;
  border:1px solid var(--toxic-green);
  color:var(--toxic-green);
}

/* =========================================================
   EDUCATION
========================================================= */
.education-timeline{
  display:grid;
  gap:40px;
}

.edu-year{
  display:inline-block;
  margin:10px 0;
  color:var(--toxic-soft);
  font-weight:600;
}

/* =========================================================
   CTA
========================================================= */
.cta{
  text-align:center;
  background:var(--bg-panel-soft);
  border-radius:var(--radius-lg);
}

/* =========================================================
   FOOTER
========================================================= */
.footer{
  padding:40px;
  text-align:center;
  border-top:1px solid var(--border-soft);
  background:#070a08;
  color:var(--text-muted);
}

/* =========================================================
   SCROLL REVEAL ANIMATION
========================================================= */
.reveal{
  opacity:0;
  transform:translateY(40px);
  transition:all 0.9s ease;
}

.reveal.show{
  opacity:1;
  transform:none;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media(max-width:900px){
  .hero{
    grid-template-columns:1fr;
    text-align:center;
  }

  .hero-actions{
    justify-content:center;
  }

  .nav-right{
    display:none;
  }

  .menu-toggle{
    display:block;
  }
}

@media(max-width:600px){
  .section{
    padding:70px 6%;
  }

  .page-header h1{
    font-size:2.2rem;
  }
}



/* =========================================================
   SOCIAL LINKS (FOOTER)
========================================================= */

.social-container{
  display:flex;
  flex-wrap:wrap;
  gap:22px;
  justify-content:center;
  align-items:center;
  margin-bottom:18px;
}

.social-link{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 18px;
  border-radius:999px;
  border:1px solid var(--toxic-green);
  color:var(--toxic-green);
  font-size:0.95rem;
  transition:0.3s ease;
  background:rgba(42,255,0,0.05);
}

.social-link i{
  font-size:1.3rem;
}

.social-link:hover{
  background:var(--toxic-green);
  color:#000;
  box-shadow:0 0 30px rgba(42,255,0,0.6);
  transform:translateY(-3px);
}

.footer-text{
  margin-top:12px;
  font-size:0.85rem;
  color:var(--text-muted);
}


/* =========================================================
   CONTACT PAGE
========================================================= */

.contact-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:40px;
  max-width:1000px;
  margin:0 auto;
}

.contact-info h2,
.contact-form h2{
  color:var(--toxic-green);
  margin-bottom:16px;
}

.contact-item{
  display:flex;
  align-items:center;
  gap:12px;
  margin:16px 0;
  font-size:1rem;
}

.contact-item i{
  font-size:1.4rem;
  color:var(--toxic-green);
}

.contact-item a{
  color:var(--text-main);
}

.contact-item a:hover{
  color:var(--toxic-green);
}

.contact-form{
  background:var(--bg-panel);
  padding:30px;
  border-radius:18px;
  box-shadow:var(--shadow-soft);
  border:1px solid var(--border-soft);
}

.contact-form input,
.contact-form textarea{
  width:100%;
  padding:14px;
  margin-bottom:16px;
  border-radius:10px;
  border:1px solid var(--border-soft);
  background:#050805;
  color:#fff;
  outline:none;
}

.contact-form input:focus,
.contact-form textarea:focus{
  border-color:var(--toxic-green);
}

@media(max-width:800px){
  .contact-grid{
    grid-template-columns:1fr;
  }
}



.avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:50%;
}

.avatar-wrapper::before{
  content:"";
  position:absolute;
  inset:-20px;
  border-radius:50%;
  background:
    conic-gradient(
      from 0deg,
      transparent 0deg,
      var(--toxic-green) 40deg,
      transparent 80deg
    );
  animation:scanRing 6s linear infinite;
  mask:radial-gradient(circle, transparent 62%, black 64%);
}

@keyframes scanRing{
  from{ transform:rotate(0deg); }
  to{ transform:rotate(360deg); }
}




/* ================================
   NAVBAR CORE FIX
================================ */

.navbar{
  position:relative; /* REQUIRED */
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 20px;
}

/* hide menu icon on desktop */
.menu-toggle{
  display:none;
  font-size:2rem;
  color:var(--toxic-green);
  cursor:pointer;
}

/* ================================
   MOBILE NAV (WORKING)
================================ */
@media (max-width: 768px){

  .menu-toggle{
    display:block;
  }

  .nav-right{
    position:absolute;
    top:100%;
    right:16px;
    background:#050805;
    border:1px solid var(--toxic-green);
    border-radius:16px;
    padding:20px;
    display:flex;
    flex-direction:column;
    gap:16px;

    /* THIS IS THE KEY PART */
    opacity:0;
    pointer-events:none;
    transform:translateY(-10px);
    transition:all 0.3s ease;
    z-index:999;
  }

  .nav-right.active{
    opacity:1;
    pointer-events:auto;
    transform:translateY(0);
  }

  .nav-right a{
    color:#fff;
    font-size:1.1rem;
  }
}



/* ===============================
   NAVBAR – BASE
================================ */
.navbar{
  position:relative;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:16px 20px;
  background:#050805;
}

.logo{
  color:#fff;
  font-size:1.4rem;
}

.logo span{
  color:var(--toxic-green);
}

.nav-right{
  display:flex;
  gap:24px;
}

.nav-right a{
  color:#bbb;
  text-decoration:none;
  font-size:1rem;
}

.nav-right a.active{
  color:var(--toxic-green);
  font-weight:600;
}

/* REMOVE ALL LINES COMPLETELY */
.nav-right a::before,
.nav-right a::after{
  content:none !important;
}

/* ===============================
   HAMBURGER
================================ */
.menu-toggle{
  display:none;
  font-size:1.8rem;
  color:var(--toxic-green);
  cursor:pointer;
}

/* ===============================
   MOBILE NAV
================================ */
@media (max-width:768px){

  .menu-toggle{
    display:block;
  }

  .nav-right{
    position:absolute;
    top:100%;
    right:16px;
    width:220px;

    background:#050805;
    border:1px solid var(--toxic-green);
    border-radius:14px;

    flex-direction:column;
    gap:16px;
    padding:20px;

    opacity:0;
    pointer-events:none;
    transform:translateY(-10px);
    transition:0.3s ease;
    z-index:1000;
  }

  .nav-right.active{
    opacity:1;
    pointer-events:auto;
    transform:translateY(0);
  }

  .nav-right a{
    color:#fff;
    font-size:1.1rem;
  }

  .nav-right a.active{
    color:var(--toxic-green);
  }
}




/* NAV RESET */
.nav-right a{
  color:#bbb;
  text-decoration:none;
  font-size:1rem;
}

.nav-right a.active{
  color: var(--toxic-green);
  font-weight:600;
}

/* KILL ALL GLOW / LINES */
.nav-right a::before,
.nav-right a::after{
  content:none !important;
}



.menu-toggle{
  display:none;
  font-size:2rem;
  color:var(--toxic-green);
  cursor:pointer;
  z-index:2000;
}

@media (max-width:768px){

  .menu-toggle{
    display:block;
  }

  .nav-right{
    position:absolute;
    top:100%;
    right:16px;

    background:#050805;
    border:1px solid var(--toxic-green);
    border-radius:14px;
    padding:20px;

    display:flex;
    flex-direction:column;
    gap:16px;

    opacity:0;
    transform:translateY(-10px);
    pointer-events:none;
    transition:all 0.3s ease;

    z-index:1000;
  }

  .nav-right.active{
    opacity:1;
    transform:translateY(0);
    pointer-events:auto;
  }

  .nav-right a{
    color:#fff;
    font-size:1.1rem;
  }
}






