body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #000;
  color: #fff; /* main text now white */
  line-height: 1.6;
}

/* ===== Hero Section ===== */
header {
  background: #111;
  color: #fff; /* white text */
  padding: 2rem 1rem;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-text {
  max-width: 800px;
}

.hero h1 {
  font-size: 2.5rem;
  margin: 0;
}

.tagline {
  font-size: 1.2rem;
  margin: 0.8rem 0 1.5rem;
  color: #fff;
}

.hero-buttons {
  margin-top: 1rem;
}

.hero-buttons .btn {
  margin: 0.5rem;
}

/* ===== Navigation ===== */
nav {
  margin-top: 1.5rem;
  text-align: center;
}

nav a {
  color: #00fff7;
  text-decoration: none;
  margin: 0 15px;
  font-weight: bold;
  font-size: 1rem;
  transition: color 0.3s;
}

nav a:hover {
  color: #fff;
}

/* ===== Sections ===== */
section {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 1rem;
}

h2 {
  border-bottom: 2px solid #00fff7;
  padding-bottom: 0.3rem;
  margin-bottom: 1rem;
   color: #fff;
}
.divider {
  height: 1px;
  background-color: #111; /* slightly lighter than black */
  margin: 2rem 0;          /* spacing above and below */
  border: none;
}


/* ===== Skills Grid ===== */
#skills {
  padding: 4rem 2rem;
  background-color: #000; /* black background */
  color: #fff;         /* cyan text */
  text-align: center;
}

#skills h2 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid #111; /* subtle divider below heading */
  display: inline-block;
  padding-bottom: 0.5rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 2rem;
  justify-items: center;
  align-items: center;
}

.skill img {
  width: 60px;
  height: 60px;
  margin-bottom: 0.5rem;
  filter: brightness(0) invert(1); /* makes dark logos visible on black */
  transition: transform 0.3s, filter 0.3s;
  border: 1px solid rgba(0, 255, 247, 0.5); /* thin cyan border */
  border-radius: 8px; /* optional rounded corners */
}

.skill img:hover {
  filter: drop-shadow(0 0 5px #00fff7); /* cyan glow on hover */
  transform: scale(1.2);
}

.skill p {
  margin: 0;
  font-size: 0.9rem;
  color: #fff;;
}

/* ===== Projects & Publications ===== */
.project, .publication {
  margin-bottom: 1.5rem;
}

.project h3, .publication h3 {
  margin: 0 0 0.5rem;
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 1rem;
  background: #111;
  color: #00fff7;
  margin-top: 2rem;
}

/* ===== Buttons & Links ===== */
a {
  color: #00fff7;
  transition: color 0.3s;
}

a:hover {
  text-decoration: underline;
  color: #fff;
}

.btn {
  display: inline-block;
  margin: 0.5rem;
  padding: 0.7rem 1.2rem;
  background: #000;
  border: 1px solid #00fff7;
  color: #00fff7;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.btn:hover {
  background: #00fff7;
  color: #000;
  transform: translateY(-2px);
}

/* ===== Collapsible About Section ===== */
#about-more {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s ease-out, padding 0.3s ease-out;
  padding: 0;
}

#about-more.expanded {
  max-height: 1000px;
  padding: 1rem 0;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .tagline {
    font-size: 1rem;
  }

  nav a {
    display: block;
    margin: 8px 0;
  }

  section {
    padding: 0.5rem;
  }
}
