* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Poppins', sans-serif;
  background: #121212;
  color: #fff;
  line-height: 1.6;
}

/* Navbar */
nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  background: rgba(20,20,20,0.9);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 50px;
  z-index: 1000;
  backdrop-filter: blur(8px);
}
nav .logo {
  font-weight: bold;
  font-size: 20px;
  color: #9b59b6;
}
nav ul {
  display: flex;
  list-style: none;
}
nav ul li { margin-left: 30px; }
nav ul li a {
  color: white;
  text-decoration: none;
  transition: 0.3s;
}
nav ul li a:hover {
  color: #9b59b6;
}
/* Responsive Navbar */
@media (max-width: 900px) {
  nav {
    padding: 12px 25px;   /* less padding */
  }
  nav ul li {
    margin-left: 18px;    /* tighter spacing */
  }
  nav ul li a {
    font-size: 0.95rem;   /* smaller font */
  }
}

@media (max-width: 600px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 20px;
  }

  nav .logo {
    margin-bottom: 10px;
  }

  nav ul {
    flex-direction: column;
    width: 100%;
  }

  nav ul li {
    margin: 8px 0;
  }
}


/* Hero */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  color: #fff;
}
.hero h1 {
  font-size: 3rem;
}
.hero .highlight {
  color: #9b59b6;
}
.hero p {
  margin: 15px 0;
}
.btn {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 25px;
  border: 2px solid #9b59b6;
  border-radius: 8px;
  color: #9b59b6;
  text-decoration: none;
  transition: 0.3s;
}
.btn:hover {
  background: #9b59b6;
  color: #fff;
}
.hero-content {
  position: relative;
  z-index: 1;
}

/* Projects */
#projects {
  padding: 80px 20px;
  background: #1c1c1c;
  text-align: center;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 40px;
}
.card {
  background: rgba(255,255,255,0.05);
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease;
  max-width: 320px;
  margin: auto;
  border: 1px solid rgba(155,89,182,0.12);
  backdrop-filter: blur(8px);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover { transform: translateY(-10px); }
.card img {
  width: 100%;
  height: auto;
}
.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}
.card-body h3 {
  margin-bottom: 10px;
}
.card-body a {
  color: #9b59b6;
  text-decoration: none;
  font-weight: bold;
}
.card-body a:hover { text-decoration: underline; }

.card-body .btn {
  display: inline-block;
  padding: 6px 12px;   /* smaller size */
  font-size: 0.85rem;  /* smaller text */
  border-radius: 6px;
  background: #9b59b6;
  color: #fff;
  text-decoration: none;
  margin-left: 8px;    /* spacing from "View" */
  transition: 0.3s;
}
.card-body .btn:hover {
  background: #732d91;
}


/* About */
#about {
  padding: 80px 20px;
  text-align: center;
  background: #1c1c1c;
}
.about-container {
  max-width: 700px;
  margin: auto;
  background: rgba(255,255,255,0.05);
  padding: 30px;
  border-radius: 12px;
}

.about-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  max-width: 1000px;
  margin: auto;
}
.about-left {
  flex: 1 1 250px;
  text-align: center;
}
.about-left img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #9b59b6;
  margin-bottom: 15px;
}
.about-left h3 {
  font-size: 22px;
  margin-bottom: 5px;
}
.about-left .tagline {
  font-size: 14px;
  color: #aaa;
}
.about-right {
  flex: 2 1 500px;
  text-align: left;
}
.about-right p {
  margin-bottom: 20px;
  line-height: 1.7;
}
.about-right h4 {
  margin: 15px 0 10px;
  color: #9b59b6;
}
.achievements,
.activities {
  list-style: none;
  padding: 0;
}
.achievements li,
.activities li {
  background: rgba(255,255,255,0.05);
  margin: 8px 0;
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 15px;
}

/* Profile Links in About */
.profile-links {
  margin-top: 15px;
}
.profile-links a {
  margin: 0 10px;
  font-size: 22px;
  color: #9b59b6;
  transition: 0.3s;
}
.profile-links a:hover {
  color: #fff;
}

/* Contact Section */
#contact {
  padding: 80px 20px;
  background: #121212;
  text-align: center;
}
#contact p {
  margin-bottom: 25px;
  color: #bbb;
}
.contact-form {
  max-width: 600px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: none;
  border-radius: 8px;
  outline: none;
  font-size: 15px;
}
.contact-form button {
  padding: 12px;
  background: #9b59b6;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}
.contact-form button:hover {
  background: #7d3caf;
}

/* Skills */
#skills {
  padding: 80px 20px;
  background: #121212;
  text-align: center;
}
#skills h2 {
  margin-bottom: 40px;
  color: #fff;
}
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  max-width: 1000px;
  margin: auto;
}
.skill-category {
  background: rgba(255,255,255,0.05);
  padding: 20px;
  border-radius: 10px;
  transition: 0.3s;
}
.skill-category h3 {
  color: #9b59b6;
  margin-bottom: 10px;
}
.skill-category:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-5px);
}

.badges span {
  display: inline-block;
  background: rgba(255,255,255,0.1);
  padding: 6px 12px;
  margin: 5px;
  border-radius: 20px;
  font-size: 0.9rem;
  color: #fff;
  transition: 0.3s;
}
.badges span:hover {
  background: #9b59b6;
}


/* resume */
.resume-btn {
  margin-top: 20px;
}
.resume-btn a {
  display: inline-block;
  padding: 10px 20px;
  background: #9b59b6;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.3s;
}
.resume-btn a:hover {
  background: #7d3caf;
}

/* Featured Project */
.featured-project {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  background: #2c2c2c;
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 40px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}
.featured-image {
  flex: 1;
  min-width: 280px;
}
.featured-image img {
  width: 100%;
  border-radius: 12px;
}
.featured-content {
  flex: 2;
  min-width: 280px;
}
.featured-content h3 {
  margin-bottom: 15px;
  color: #9b59b6;
  font-size: 1.6rem;
}
.featured-content p {
  margin-bottom: 15px;
  line-height: 1.6;
  color: #ddd;
}
.featured-content .btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  background: #9b59b6;
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
}
.featured-content .btn:hover {
  background: #7d3caf;
}
/* Menu toggle button */
.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.8rem;
  color: #fff;
}

/* Hide menu on mobile by default */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    position: absolute;
    top: 15px;
    right: 25px;
    z-index: 1001;
  }

  nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 50px;
    background: rgba(20,20,20,0.95);
    padding: 15px 0;
    border-radius: 8px;
    position: absolute;
    top: 15px; /* below nav */
    left: 0;
  }

  nav ul.active {
    display: flex;
  }
}


/* Filters */
.filter-buttons {
  text-align: center;
  margin-bottom: 30px;
}
.filter-btn {
  padding: 10px 20px;
  margin: 5px;
  border: none;
  border-radius: 6px;
  background: #222;
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
}
.filter-btn.active,
.filter-btn:hover {
  background: #9b59b6;
}

/* Footer */
footer {
  padding: 20px;
  text-align: center;
  background: #111;
  font-size: 14px;
  color: #aaa;
}

/* Responsive */
@media (max-width: 768px) {
  nav { padding: 15px 20px; }
  nav ul li { margin-left: 15px; }
  .hero h1 { font-size: 2.2rem; }
}
/* Education Section */
#education {
  padding: 40px 15px;
  background: #1c1c1c;
  text-align: center;
}

#education h2 {
  margin-bottom: 20px;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
}

.edu-item {
  margin-bottom: 12px;
  padding: 0px 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
}

.edu-item:last-child {
  border-bottom: none;
}

.edu-item h3 {
  color: #9b59b6;
  font-size: 1rem;
  margin-bottom: 2px;
  font-weight: 600;
}

.edu-item p {
  color: #bbb;
  margin-bottom: 2px;
  font-size: 0.8rem;
}

.edu-item span {
  font-size: 0.85rem;
  color: #ddd;
  font-weight: 500;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  #education h2 { font-size: 1.3rem; }
  .edu-item { font-size: 0.85rem; }
  .edu-item h3 { font-size: 0.95rem; }
}

@media (max-width: 480px) {
  #education h2 { font-size: 1.2rem; }
  .edu-item { font-size: 0.8rem; }
  .edu-item h3 { font-size: 0.9rem; }
}

html {
  scroll-behavior: smooth;
}

.card {
  border: 1px solid rgba(155,89,182,0.15);
  backdrop-filter: blur(8px);
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 10px 30px rgba(155,89,182,0.2);
}

.skill-category:hover {
  box-shadow: 0 8px 25px rgba(155,89,182,0.15);
}

/* Research Section */
#research {
  padding: 80px 20px;
  background: #121212;
  text-align: center;
}

#research h2 {
  margin-bottom: 40px;
  font-size: 2rem;
  color: #fff;
}

#research .projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: auto;
}

#research .card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(155,89,182,0.15);
  border-radius: 16px;
  padding: 10px;
  transition: 0.35s ease;
  backdrop-filter: blur(8px);
}

#research .card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(155,89,182,0.18);
}

#research .card-body {
  padding: 20px;
}

#research .card-body h3 {
  color: #9b59b6;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

#research .card-body p {
  color: #ccc;
  line-height: 1.7;
  font-size: 0.95rem;
}

/* Hero Background Animation */
.hero {
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(155,89,182,0.08),
    transparent 70%
  );
  z-index: 1;
}
.hero::before {
  pointer-events: none;
}

.starfield {
  opacity: 1;
  mix-blend-mode: screen;
}
.starfield {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero h1,
.hero h2,
.hero p,
.hero .btn {
  position: relative;
  z-index: 2;
}
