/* ROOT */

:root{
  --bg:#0d1117;
  --card:#161b22;
  --text:#e6edf3;
  --secondary:#9da7b3;
  --accent:#58a6ff;
  --border:#30363d;
}

.light-mode{
  --bg:#ffffff;
  --card:#f4f4f4;
  --text:#111111;
  --secondary:#555555;
  --accent:#0066ff;
  --border:#dddddd;
}

/* RESET */

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

html{
  scroll-behavior:smooth;
}

body{
  font-family:'Inter',sans-serif;
  background:var(--bg);
  color:var(--text);
  transition:0.3s ease;
  line-height:1.6;
}

/* GLOBAL */

a{
  text-decoration:none;
  color:inherit;
}

.container{
  width:min(1100px,90%);
  margin:auto;
}

.section{
  padding:6rem 0;
}

.section-title{
  font-size:2.2rem;
  margin-bottom:2rem;
}

.section-text{
  color:var(--secondary);
  max-width:800px;
}

/* NAVBAR */

.navbar{
  position:sticky;
  top:0;
  z-index:1000;
  backdrop-filter:blur(10px);
  background:rgba(13,17,23,0.75);
  border-bottom:1px solid var(--border);
  transition:0.3s ease;
}

.light-mode .navbar{
  background:rgba(255,255,255,0.8);
}

.navbar.scrolled{
  box-shadow:0 10px 30px rgba(0,0,0,0.2);
}

.nav-container{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:1rem 0;
}

.logo{
  font-size:1.1rem;
  font-weight:700;
}

.nav-links{
  display:flex;
  align-items:center;
  gap:1.5rem;
}

.nav-link{
  color:var(--secondary);
  position:relative;
  transition:0.3s ease;
}

.nav-link:hover{
  color:var(--accent);
}

.nav-link.active{
  color:var(--accent);
}

.nav-link.active::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-6px;
  width:100%;
  height:2px;
  background:var(--accent);
}

/* BUTTONS */

.resume-btn{
  background:var(--accent);
  color:white;
  padding:0.7rem 1rem;
  border-radius:10px;
}

#theme-toggle{
  background:var(--card);
  color:var(--text);
  border:1px solid var(--border);
  padding:0.7rem 1rem;
  border-radius:10px;
  cursor:pointer;
}

/* HERO */

.hero{
  min-height:90vh;
  display:flex;
  align-items:center;
}

.hero-container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:4rem;
}

.hero-left{
  flex:1;
}

.hero-right{
  flex:1;
  display:flex;
  justify-content:center;
}

.hero-tag{
  color:var(--accent);
  font-family:'JetBrains Mono', monospace;
  margin-bottom:1rem;
}

.hero h1{
  font-size:4rem;
  line-height:1.1;
  margin-bottom:1.5rem;
}

.hero-description{
  color:var(--secondary);
  max-width:600px;
  margin-bottom:2rem;
  font-size:1.1rem;
}

.hero-buttons{
  display:flex;
  gap:1rem;
}

.btn{
  padding:0.9rem 1.5rem;
  border-radius:12px;
  transition:0.3s ease;
}

.primary-btn{
  background:var(--accent);
  color:white;
}

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

.btn:hover{
  transform:translateY(-3px);
}

/* IMAGE */

.image-box{
  width:350px;
  height:350px;
  border-radius:30px;
  overflow:hidden;
  border:1px solid var(--border);
  background:var(--card);
}

.image-box img{
  width:100%;
  height:100%;
  object-fit:cover;
}

/* SKILLS */

.skills-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:1.5rem;
}

.card{
  background:var(--card);
  border:1px solid var(--border);
  padding:1.5rem;
  border-radius:18px;
}

.card h3{
  color:var(--accent);
  margin-bottom:1rem;
}

.card p{
  color:var(--secondary);
}

/* PROJECTS */

.projects-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
  gap:1.5rem;
}

.project-card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:20px;
  padding:1.7rem;
  transition:0.3s ease;
}

.project-card:hover{
  transform:translateY(-5px);
  border-color:var(--accent);
}

.project-card h3{
  margin-bottom:1rem;
}

.project-card p{
  color:var(--secondary);
  margin-bottom:1.5rem;
}

.tech-tags{
  display:flex;
  gap:0.5rem;
  flex-wrap:wrap;
}

.tech-tags span{
  padding:0.4rem 0.8rem;
  border-radius:999px;
  background:rgba(88,166,255,0.12);
  color:var(--accent);
  font-size:0.85rem;
}

/* ACHIEVEMENTS */

.achievement-list{
  display:grid;
  gap:1rem;
}

.achievement{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:14px;
  padding:1.3rem;
}

/* CONTACT */

.contact-box{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:18px;
  padding:2rem;
}

.contact-links{
  margin-top:1.5rem;
  display:flex;
  gap:1rem;
  flex-wrap:wrap;
}

.contact-links a{
  color:var(--accent);
}

/* FOOTER */

footer{
  padding:2rem 0;
  border-top:1px solid var(--border);
  text-align:center;
  color:var(--secondary);
}

/* HAMBURGER */

.hamburger{
  display:none;
  flex-direction:column;
  gap:5px;
  cursor:pointer;
}

.hamburger span{
  width:25px;
  height:3px;
  background:var(--text);
  border-radius:10px;
}

/* SCROLL REVEAL */

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

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