@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

:root {
  --bg: #f5f7fa;
  --fg: #2c3e50;
  --accent: #2980b9;
  --light: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
}



.navbar {
  background: var(--light);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between; 
  padding: 0.75rem 0;
  width: 100%; 
}

.logo {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--fg);
  text-decoration: none;
}
.nav-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-menu {
  display: flex;
}
.nav-menu a {
  margin-left: 1rem;
  text-decoration: none;
  color: var(--fg);
  font-size: 0.9rem;
  position: relative;
  transition: color 0.3s;
}
.nav-menu a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--accent);
  left: 0;
  bottom: -4px;
  transition: width 0.3s;
}
.nav-menu a:hover::after {
  width: 100%;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--light);
    flex-direction: column;
    display: none;
    padding: 1rem;
  }
  .nav-menu.show {
    display: flex;
  }
  .nav-menu a {
    margin: 0.5rem 0;
  }
}

.hero {
  background: var(--accent);
  color: var(--light);
  text-align: center;
  padding: 4rem 1rem;
}
.hero h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.hero p {
  font-size: 1rem;
  margin-bottom: 1.25rem;
}
.btn {
  background: var(--light);
  color: var(--accent);
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  transition: transform 0.3s, box-shadow 0.3s;
  font-size: 0.85rem;
}
.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-outline {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  font-size: 0.85rem;
  border: 2px solid var(--accent);
  color: var(--accent);
  background: transparent;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  width: fit-content;
  transition: background 0.3s, color 0.3s, transform 0.3s;
}
.btn-outline:hover {
  background: var(--accent);
  color: var(--light);
  transform: scale(1.05);
}

.section {
  padding: 4rem 0;
}
.title {
  text-align: center;
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
}
.about-image img {
  width: 100%;
  max-width: 200px;
  height: auto;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  transition: transform 0.3s, box-shadow 0.3s;
}
.about-image img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.about-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.about-content p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
@media (max-width: 700px) {
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about-content .btn-outline {
    margin: 0 auto;
  }
}

.project-list,
.timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.project-list .entry,
.timeline .entry {
  background: var(--light);
  padding: 1.25rem;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: box-shadow 0.3s;
}
.project-list .entry:hover,
.timeline .entry:hover {
  box-shadow: 0 0 12px rgba(41, 128, 185, 0.5);
}
.project-list h3,
.timeline h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}
.project-list p,
.timeline p {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}
.link {
  color: var(--accent);
  font-size: 0.9rem;
}
.timeline .date {
  font-size: 0.85rem;
  color: #555;
}
.timeline ul {
  list-style: disc inside;
  font-size: 0.9rem;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    padding-left: 0;
    list-style: none;
  }
  
  .skills-grid li {
    background: #f0f4f8; /* light blue-gray background */
    border: 1px solid var(--accent);
    padding: 0.3rem 0.7rem;
    text-align: center;
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--fg);
    width: auto; /* dynamic width based on content */
    transition: box-shadow 0.3s, transform 0.3s;
  }
  
  .skills-grid li:hover {
    box-shadow: 0 0 10px rgba(41, 128, 185, 0.5);
    transform: translateY(-2px);
  }
  

.contact-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}
.contact-info,
.contact-wrap form {
  flex: 1;
  min-width: 250px;
}
.contact-info p {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}
.contact-wrap form {
  display: flex;
  flex-direction: column;
}
.contact-wrap input,
.contact-wrap textarea {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.95rem;
}
.contact-wrap button {
  padding: 0.5rem 1rem;
  border: none;
  background: var(--accent);
  color: var(--light);
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}
.contact-wrap button:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.plain-link {
    color: inherit; /* inherit color from surrounding text */
    text-decoration: none; /* remove underline */
    font-weight: inherit; /* keep normal font weight */
  }


    .plain-link:hover {
        color: var(--accent); /* uses your nice blue accent color */
      }
  

footer {
  background: var(--light);
  text-align: center;
  padding: 1.5rem 0;
  font-size: 0.8rem;
  color: #777;
}

