/* Google Fonts: Inter for a modern, simple feel */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  background: #ffffff;
  color: #333333;
  padding: 0 2rem;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 0;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav a {
  text-decoration: none;
  color: #333;
  transition: color 0.3s;
}

nav a:hover {
  color: #0077cc; /* Accent color */
}

.hero {
  padding: 5rem 0;
  text-align: center;
}

.hero h2 {
  font-size: 2.5rem;
}

section {
  padding: 5rem 0;
  max-width: 800px;
  margin: 0 auto;
}

.project-list {
  display: grid;
  gap: 2rem;
}

.project {
  border: 1px solid #ddd;
  padding: 1.5rem;
  border-radius: 8px;
}

.project a {
  color: #0077cc;
  text-decoration: none;
}

.project a:hover {
  text-decoration: underline;
}

footer {
  text-align: center;
  padding: 2rem 0;
  font-size: 0.9rem;
  color: #777;
}

#backToTop {
  position: fixed;
  bottom: 40px;
  right: 40px;
  display: none; /* Hidden by default */
  background-color: #0077cc;
  color: white;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 4px;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: opacity 0.3s;
  z-index: 1000;
}

#backToTop:hover {
  background-color: #005fa3;
}

#projects {
  padding: 5rem 0;
  overflow-x: hidden;
}

.project-list {
  display: flex;
  overflow-x: auto;
  gap: 1.5rem;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
}

.project {
  flex: 0 0 300px;
  height: 420px; /* You can tweak this height */
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  transition: box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  scroll-snap-align: start;
  background: white;
  padding: 1rem;
  box-sizing: border-box;
}



.project:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.project img {
  width: 100%;
  height: auto;
  max-height: 140px;
  object-fit: contain; /* Instead of cover */
  border-radius: 4px;
  margin-bottom: 0.5rem;
}



.project h3 {
  font-size: 1rem;
  margin: 0.5rem 0;
  min-height: 2.5rem; /* Ensures one-line and two-line titles both fit */
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project p {
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 6; /* Limits to 6 lines */
  -webkit-box-orient: vertical;
}


.project-links {
  margin-top: auto;
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 1rem 0;
}

.project-links a svg {
  width: 24px;
  height: 24px;
}

.project-links a:hover svg {
  fill: #0077cc; /* Accent color on hover */
}

@media (max-width: 600px) {
  .project {
    flex: 0 0 85%;
  }
}

.project .description {
  max-height: 120px; /* or however tall you want */
  overflow-y: auto;
  padding-right: 8px; /* for scrollbar spacing */
}

.project .description::-webkit-scrollbar {
  width: 6px;
}

.project .description::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.project .description::-webkit-scrollbar-track {
  background: transparent;
}

#contact {
  padding: 3rem 1rem;
  background-color: #f9f9f9;
  text-align: center;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
  font-size: 1.1rem;
}

.contact-list li {
  margin: 0.5rem 0;
}

.contact-list a {
  color: #0077cc;
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}



