html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  background: #fdfdfd;
  color: #333;
}
header {
  background: #000; /* clean black */
  color: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* allows wrapping on smaller screens */
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: #90cdf4; /* light blue for brand contrast */
  flex: 1;
}

nav {
  flex: 2;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.nav-link {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  position: relative;
  z-index: 2;
}


.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}


section {
  scroll-margin-top: 80px;
}


@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  .logo {
    margin-bottom: 0.5rem;
  }

  nav {
    width: 100%;
    justify-content: center;
  }

  .nav-menu {
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
  }
}



.hero {
  background: #0077cc;
  color: white;
  text-align: center;
  padding: 4rem 1rem;
}
.about, .projects, .contact {
  padding: 3rem 2rem;
  max-width: 1000px;
  margin: auto;
}


.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.project-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  padding: 1rem;
  text-align: center;
  transition: transform 0.3s ease;
}
.project-card:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.project-card img {
  width: 100%;
  border-radius: 5px;
}
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
input, textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}
button {
  background: #0077cc;
  color: white;
  padding: 0.75rem;
  border: none;
  cursor: pointer;
  border-radius: 4px;
}
footer {
  text-align: center;
  background: #1a1a1a;
  color: white;
  padding: 2.5rem 1rem;
  margin-top: 3rem;
  font-size: 0.95rem;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.footer-socials a, .footer-socials span {
  color: #90cdf4;
  text-decoration: none;
  font-weight: 500;
}

.footer-fun {
  font-family: 'Comic Sans MS', cursive, sans-serif;
  color: #ffcc00;
  font-size: 1.2rem;
  margin: 0.5rem 0 1rem;
  letter-spacing: 1px;
}


#cursor {
  font-weight: bold;
  color: rgba(255, 255, 255, 0.7);
  animation: blink 0.7s infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.hero p {
  font-size: 1.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-align: center;
}

.hero {
  background: #0077cc;
  color: white;
  text-align: center;
  padding: 4rem 1rem;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}


.learning {
  padding: 3rem 2rem;
  background: #f4f4f4;
  text-align: center;
}

.learning h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #0077cc;
}

.learning-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.learning-card {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.learning-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.learning-card h3 {
  color: #0077cc;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}


.research {
  padding: 3rem 2rem;
  background: #fafafa;
  text-align: center;
}

.research h2 {
  font-size: 2rem;
  color: #0077cc;
  margin-bottom: 2rem;
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .research-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .research-grid {
    grid-template-columns: 1fr;
  }
}


.research-card {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
  text-align: left;
}

.research-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.research-card h3 {
  color: #0077cc;
  margin-bottom: 0.5rem;
}

.research-card p {
  color: #444;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.research-card .btn {
  display: inline-block;
  background: #0077cc;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
}


