* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #e6f2f5; /* light teal blue background */
  color: #1f3a46;       /* dark teal blue text */
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: #3b8ca8;       /* medium teal */
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #2a6d7d;       /* darker teal */
}

header {
  background: linear-gradient(135deg, #c7e0eb, #88b8cc); /* gradient teal */
  padding: 2rem 1rem 5rem;
  text-align: center;
  box-shadow: 0 4px 10px rgba(59, 140, 168, 0.3);
}

nav {
  margin-bottom: 1rem;
}

.nav-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-weight: 600;
}

.nav-links a {
  font-size: 1.1rem;
  padding: 0.3rem 0.5rem;
  border-radius: 8px;
}

.nav-links a:hover,
.nav-links a:focus {
  background: #fff;
  color: #4b99b3;
  outline: none;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 0.3rem;
  color: #fff;
  text-shadow: 0 0 10px #81b9d1;
}

.highlight {
  font-weight: 700;
  color: #4a9db7;
  text-shadow: 0 0 15px #4a9db7;
}

.hero p {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  color: #d6ebf2;
}

.btn {
  display: inline-block;
  background: #fff;
  color: #4a9db7;
  padding: 0.9rem 2rem;
  border-radius: 30px;
  font-weight: 700;
  box-shadow: 0 8px 15px rgba(74, 157, 183, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
  border: none;
  text-align: center;
}

.btn:hover,
.btn:focus {
  background: #4a9db7;
  color: #fff;
  box-shadow: 0 12px 20px rgba(74, 157, 183, 0.7);
  outline: none;
}

main {
  flex-grow: 1;
  max-width: 900px;
  margin: 2rem auto 4rem;
  padding: 0 1rem;
}

.section {
  margin-bottom: 4rem;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #3f7f98;
  border-bottom: 3px solid #4a9db7;
  padding-bottom: 0.2rem;
  max-width: max-content;
}

/* About bullet list */
.bio-list {
  list-style: none;
  padding-left: 0;
  font-size: 1.15rem;
  line-height: 1.8;
  color: #31535e;
}

.bio-list li::before {
  content: "•";
  color: #4a9db7;
  font-weight: bold;
  display: inline-block;
  width: 1.2em;
  margin-left: -1.2em;
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: #e6f2f5;
  border: 2px solid #88b8cc;
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 4px 10px rgba(59, 140, 168, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(74, 157, 183, 0.4);
}

.project-card h3 {
  margin-bottom: 0.7rem;
  color: #4a9db7;
}

.project-card a {
  font-weight: 600;
}

/* Skills */
.skills-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.skills-list li {
  background: #b0d1db;
  padding: 0.6rem 1rem;
  border-radius: 30px;
  font-weight: 600;
  color: #2c5c6f;
  box-shadow: 0 4px 6px rgba(74, 157, 183, 0.25);
  transition: background 0.3s ease;
}

.skills-list li:hover {
  background: #4a9db7;
  color: #fff;
}

/* Resume */
#resume p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

#resume a {
  display: inline-block;
}

input,
textarea {
  padding: 0.7rem 1rem;
  border-radius: 15px;
  border: 2px solid #88b8cc;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #4a9db7;
  box-shadow: 0 0 10px #4a9db7aa;
}

textarea {
  resize: vertical;
}

#formResponse {
  font-weight: 600;
  color: #3f7f98;
  min-height: 1.3rem;
}

/* Contact Section Custom Styles */
#contact {
  font-size: 1.2rem;
  color: #31535e;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

#contact ul {
  padding-left: 0;
  width: 100%;
  max-width: 450px;
}

#contact li {
  list-style: none;
  background: #d5e6f0;
  border-radius: 12px;
  padding: 0.8rem 1.2rem;
  box-shadow: 0 3px 7px rgba(59, 140, 168, 0.15);
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#contact li:hover {
  background-color: #a5c9db;
}

#contact a {
  color: #3b8ca8;
  font-weight: 600;
  transition: color 0.3s ease;
  text-decoration: none;
  
  /* Center text horizontally & vertically inside li */
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

#contact a:hover {
  color: #2a6d7d;
  text-decoration: underline;
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem 1rem 2rem;
  background: #88b8cc;
  color: #2c5c6f;
  font-weight: 600;
  box-shadow: inset 0 1px 5px rgba(255, 255, 255, 0.3);
  user-select: none;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s forwards;
  animation-delay: 0.3s;
}

.section:nth-of-type(2) { animation-delay: 0.4s; }
.section:nth-of-type(3) { animation-delay: 0.5s; }
.section:nth-of-type(4) { animation-delay: 0.6s; }
.section:nth-of-type(5) { animation-delay: 0.7s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 600px) {
  .nav-links {
    flex-direction: column;
    gap: 1rem;
  }
  .hero h1 {
    font-size: 2.3rem;
  }
}

.profile-pic {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #4a9db7;
  box-shadow: 0 4px 15px rgba(74, 157, 183, 0.4);
  margin-bottom: 1rem;
}

/* Devicon icon styling inside skills list */
.skills-list i {
  font-size: 1.3rem;
  margin-right: 0.5rem;
  vertical-align: middle;
}

#contact i {
  font-size: 1.2rem;
  margin-right: 0.6rem;
  color: #4a9db7;
  transition: color 0.3s ease;
}

#contact li:hover i {
  color: #fff;
}
