ul.nav {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #161b22;
}

ul.nav li{
  float: left;
}

ul.nav li a{
  display: block;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  color: white;
  transition: color 0.3s ease, text-shadow 0.3s ease, transform 0.3s ease;
  font-size: 25px;
}

ul.nav li a:hover {
  background-color: #111111;
}

body {
  background-color: #0d1117; /* or hex (#3498db), rgb(), hsl() */
  color: #e6edf3;
  font-family: 'Roboto', sans-serif;
}

.socials {
  display: flex;
  gap: 20px; /* space between icons */
  align-items: center;
}


.social-icon i {
  font-size: 35px;            /* size of the icon */
  color: gray;                /* default color */
  transition: color 0.3s ease, text-shadow 0.3s ease, transform 0.3s ease;
}

ul.nav li a:hover,
.social-icon:hover i {
  color: #00f6ff;             /* neon cyan */
  transform: scale(1.2);       /* slight zoom */
  text-shadow: 0 0 8px #00f6ff, 0 0 15px #ff00ff; /* cyan + magenta glow */
  cursor: pointer;
}

.books li {
  background-color: #161b22;      /* dark card */
  margin: 10px 0;
  padding: 15px 20px;
  border-left: 4px solid #00f6ff; /* neon left border */
  box-shadow: 0 0 5px rgba(0, 246, 255, 0.3);
  transition: all 0.3s ease;
  font-size: 20px;
  list-style-type: none;
  color: white;
}

.books li a:visited{
  color: white;
}

.books li a{
  text-decoration: none;
  display: block;  
  color: white;
}

.books li:hover {
  transform: translateX(10px); /* slide effect */
  border-left-color: #ff00ff;  /* neon color change */
  box-shadow: 0 0 15px #00f6ff, 0 0 25px #ff00ff;
}

img.cover {
  width: 300px;        /* set width */
  height: auto;        /* maintain aspect ratio */
  border-radius: 10px; /* rounded corners */
}

img.showcase {
  width: 500px;        /* set width */
  height: 300px;        /* maintain aspect ratio */
  border-radius: 10px; /* rounded corners */
}

.background {
  position: relative;
  height: 100vh;
  background: url("/img/wallpaper1.jpg") center/cover no-repeat;
}

.overlay {
  position: absolute;
  inset: 0; /* covers the whole parent */
  background: rgba(0, 0, 0, 0.5); /* black with 50% opacity */
}

.content {
  position: relative;
  color: white;
  padding: 2rem;
}

.projects-container {
  display: flex;
  flex-wrap: wrap;       /* wrap cards on smaller screens */
  gap: 20px;             /* space between cards */
  justify-content: flex-start;
}

.project-card {
  background: white;
  border: 2px solid #ccc;      /* scalable outline */
  border-radius: 12px;
  width: 300px;                 /* card width */
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s, border-color 0.3s;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: #0077ff;       /* color change on hover */
}

.project-card img {
  width: 100%;
  display: block;
}

.project-card h3{
  color:black;
}

.project-info {
  padding: 15px;
}

.project-info h3 {
  margin: 0 0 10px 0;
  font-size: 1.2em;
}

.project-info p {
  font-size: 0.95em;
  color: #555;
  margin-bottom: 10px;
}

.project-info a {
  text-decoration: none;
  color: #0077ff;
  font-weight: bold;
}

.project-info a:hover {
  text-decoration: underline;
}


body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

footer {
  min-height: 50px;
  background: #161b22;
  padding: 2rem;
  display: flex;
}

#mellow {
  width:50%;
  height:auto;
}

.reading {
  display: flex;
  align-items: flex-start; /* aligns top of text with image */
  gap: 20px;      
}

.book {
  display: flex;        /* only this container is horizontal */
  align-items: flex-start;
  gap: 20px;
}

.cover {
  width: 150px;
  height: auto;
}

.book-text {
  display: flex;
  flex-direction: column; /* ensures h2 above p */
}