*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html{
  scroll-behavior: smooth;
}

body{
  font-family: 'Poppins', sans-serif;
  background: #f4f6f8;
  color: #333;
  line-height: 1.6;
}

/* NAVBAR */
nav{
  background: #0f172a;
  color: white;
  padding: 15px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
}

nav ul{
  list-style: none;
  display: flex;
}

nav ul li{
  margin-left: 25px;
}

nav ul li a{
  color: white;
  text-decoration: none;
  font-weight: 500;
  position: relative;
}

nav ul li a::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: #38bdf8;
  transition: 0.3s;
}

nav ul li a:hover::after{
  width: 100%;
}

nav ul li i{
  margin-left: 6px;
}

/* HERO */
#home{
  height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg,#0f172a,#020617);
  color: white;
  text-align: center;
}

.hero-sub{
  font-size: 1rem;
  opacity: 0.8;
}

.resume-btn{
  margin-top: 25px;
  padding: 12px 30px;
  background: #38bdf8;
  color: #020617;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 8px 25px rgba(56,189,248,0.35);
}

/* SECTIONS */
section{
  background: white;
  width: 90%;
  margin: 60px auto;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

section h2{
  text-align: center;
  color: #0f172a;
}

.section-sub{
  text-align: center;
  color: #64748b;
  font-size: 14px;
  margin-bottom: 30px;
}

/* SKILLS */
#skills ul{
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

#skills ul li{
  list-style: none;
  background: #e0f2fe;
  color: #0369a1;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 600;
}

/* PROJECTS */
.project-container{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.project-card{
  background: #f8fafc;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  transition: 0.3s;
}

.project-card:hover{
  transform: translateY(-8px);
  background: #eef6ff;
}

/* CONTACT */
.social-links{
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 25px;
}

.social-links a{
  font-size: 28px;
}

.insta{ color:#E1306C; }
.github{ color:#171515; }
.linkedin{ color:#0A66C2; }

/* FOOTER */
footer{
  background: #020617;
  color: #94a3b8;
  text-align: center;
  padding: 20px;
  margin-top: 60px;
}
/* ===== THEME TOGGLE BUTTON ===== */
#theme-toggle{
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: white;
}

/* ===== DARK MODE ===== */
body.dark #theme-toggle{
  color: #f9fafb;
}
body.dark section{
  background: #020617;
  box-shadow: none;
}

body.dark nav{
  background: #020617;
}

body.dark footer{
  background: #020617;
}

/* ===== SCROLL ANIMATION ===== */
section{
  opacity: 0;
  transform: translateY(40px);
  transition: 0.6s ease;
}

section.show{
  opacity: 1;
  transform: translateY(0);
}

/* ===== ACTIVE NAV ===== */
nav ul li a.active{
  color: #38bdf8;
}
/* ===== DARK MODE FIX ===== */
body.dark{
  background: #020617;
  color: #e5e7eb;
}

/* Navbar */
body.dark nav{
  background: #020617;
}

/* Sections */
body.dark section{
  background: #020617;
  color: #e5e7eb;
  box-shadow: none;
}

/* Headings */
body.dark h1,
body.dark h2,
body.dark h3{
  color: #f9fafb;
}

/* Paragraph & text */
body.dark p,
body.dark li{
  color: #d1d5db;
}

/* Skills chips */
body.dark #skills ul li{
  background: #111827;
  color: #38bdf8;
}

/* Project cards */
body.dark .project-card{
  background: #020617;
  border: 1px solid #1f2933;
}

body.dark .project-card a{
  background: #38bdf8;
  color: #020617;
}

/* Footer */
body.dark footer{
  background: #020617;
  color: #9ca3af;
}

