body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #f9f9f9;
  color: #222;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* Header */
.hero {
  background: #2f2f2f;
  padding: 3rem 1rem 2rem;
  text-align: center;
  color: #fff;
}
nav a {
  margin: 0 1.2rem;
  color: #a7d8f2;
  text-decoration: none;
  font-weight: bold;
}
nav a:hover {
  color: #ffffff;
}

/* Grid layout for sections */
.grid-section {
  display: grid;
  grid-template-columns: 10% 90%;
  gap: 2rem;
  align-items: start;
  padding: 3rem 5%;
  border-bottom: 1px solid #e0e0e0;
}
.section-title {
  text-align: right;
  padding-right: 1rem;
}
.section-title h2 {
  font-size: 1.8rem;
  color: #444;
  border-right: 4px solid #a7d8f2;
  padding-right: 0.8rem;
}
.section-content {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

/* Projects grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.project {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.project h3 a {
  text-decoration: none;
  color: #0066cc;
}
.project-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 1rem;
}

/* Skills */
.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  padding: 0;
}
.skills-list li {
  background-color: #e9f5fb;
  color: #333;
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  font-weight: 600;
}

/* Contact */
.contact-card {
  background-color: #f0f0f0;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
}
.contact-icons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  align-items: center;
}
.contact-icons img {
  width: 48px;
  height: 48px;
  transition: transform 0.3s ease, filter 0.3s ease;
}
.contact-icons img:hover {
  transform: scale(1.2);
  filter: brightness(1.2);
  cursor: pointer;
}

/* Footer */
footer {
  text-align: center;
  padding: 1.5rem;
  background: #2f2f2f;
  color: #ccc;
  font-weight: bold;
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #a7d8f2;
  color: #000;
  padding: 0.6rem 1rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
}
.back-to-top:hover {
  background: #29b6f6;
}
