/* Basic Jekyll portfolio styles */
/* Responsive image class */
.img-fluid {
  max-width: 95%;
  height: auto;
  display: block;
  border-radius:1em;
  box-shadow:0 2px 8px rgba(0,0,0,0.08);
}
html, body {
  height: 100%;
}
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #f9f9f9;
  color: #222;
  min-height: 100vh;
  
  display: flex;
  flex-direction: column;
}
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  box-shadow: none;
  height: 0;
  overflow: visible;
}
header h1 {
  display: none;
}
header {
  background: #ddfcff24;
  color: #fff;
  padding: 1em 2em;
}
header nav a {
  color: #000;
  text-decoration: none;
  margin-right: 1em;
}
header nav a:hover {
  text-decoration: none
}
main {
  flex: 1 0 auto;
  padding: 2em;
  max-width: 1200px;
  width: 85vw;
  margin-left: auto;
  margin-right: auto;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin-top: 5.5em;
  border-radius: 1.2em;
}
footer.parent{
  width: 100%;
}

footer.child {
  background: #1a2327;
  /* background: #3b82f6; */
  color: #fff;
  text-align: center;
  font-size: 0.9em;
  padding: 1em 0;
  border-top-left-radius: 0.5em;
  border-top-right-radius: 0.5em;
  margin-top: auto;
}
nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  background: rgba(100, 220, 255, 0.25);
  border-radius: 1.5em;
  padding: 0.75em 2em;
  margin: 5% 10% 5% 11%;
  max-width: 75%;
  box-shadow: 0 2px 12px rgba(100,220,255,0.10);
  backdrop-filter: blur(6px);
  margin-top: 1.5em;
}
nav a {
  color: #007c91;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1em;
  padding: 0.3em 1em;
  border-radius: 1em;
  transition: background 0.2s, color 0.2s;
}
nav a:hover, nav a:focus {
  background: rgba(0, 124, 145, 0.12);
  color: #004d5c;
}
nav a.active {
  background: #007c91;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(0,124,145,0.10);
}
.tech-stack .intro .posts {
  background: #f0fbff;
  border-radius: 1.2em;
  box-shadow: 0 2px 8px rgba(100,220,255,0.07);
  /* padding: 2em 1.5em; */
  margin-bottom: 2em;
}
.mission-card {
  background: #f0fbff;
  border-radius: 1.2em;
  box-shadow: 0 2px 8px rgba(100,220,255,0.07);
  padding: 2em 1.5em;
  /* margin-bottom: 2em; */
}
.featured-projects h2, .current-mission h2, .contact-section h2, .tech-stack h2, .skills h2 {
  color: #007c91;
  margin-top: 0;
}
.featured-projects ul, .contact-list, .tech-list {
  list-style: none;
  padding: 0;
}
.featured-projects li, .tech-list li {
  margin-bottom: 0.7em;
}
.contact-list {
  list-style: none;
  padding: 0;
  margin-bottom: 2em;
  max-width: 700px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.contact-list li {
  margin-bottom: 0.7em;
  font-size: 1.1em;
}
.contact-list a {
  color: #007c91;
  text-decoration: underline;
}
.contact-list a:hover {
  color: #004d5c;
}
.contact-form {
  background: #f0fbff;
  border-radius: 1.2em;
  box-shadow: 0 2px 8px rgba(100,220,255,0.07);
  padding: 1em;
  max-width: 700px;
  width: 90%;
  margin-left: auto;
  margin-right: auto;
}
.contact-form label {
  font-weight: 600;
}
.contact-form input,
.contact-form textarea {
  min-width: 85%;
  padding: 0.6em;
  margin-top: 0.2em;
  margin-bottom: 1em;
  border: 1px solid #b2eaff;
  border-radius: 0.7em;
  font-size: 1em;
  background: #fff;
}
.contact-form textarea {
  min-height: 3em;
  max-height: 10em;
  max-width: 90%;
}
.contact-form button {
  background: #0284d5;
  color: #fff;
  border: none;
  border-radius: 1em;
  padding: 0.7em 2em;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.contact-form button:hover {
  background: #1ba7ff;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5em;
  border-radius: 1.2em;
  padding: 1.5em;
  /* margin-bottom: 2em; */
  
  background: #f0fbff;
  border-radius: 1.2em;
  box-shadow: 0 2px 8px rgba(100,220,255,0.07);
}
.project-card {
  background: #f0fbff;
  border-radius: 1.2em;
  box-shadow: 0 2px 12px rgba(100,220,255,0.10);
  padding: 2em 1.5em;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.project-card h2 {
  margin-top: 0;
  margin-bottom: 0.5em;
  font-size: 1.3em;
}
.project-card a {
  color: #007c91;
  text-decoration: none;
}
.project-card a:hover {
  text-decoration: underline;
}
.project-card p {
  margin: 0.5em 0;
}
.project-card:hover {
  box-shadow: 0 6px 24px rgba(100,220,255,0.18);
  transform: translateY(-4px) scale(1.02);
}
.post {
  background: #f0fbff;
  border-radius: 1.2em;
  box-shadow: 0 2px 12px rgba(100,220,255,0.10);
  padding: 2em 1.5em;
  margin: 2em 0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.post h1 {
  margin-top: 0;
  color: #007c91;
  font-size: 2em;
  font-weight: 700;
}
.post-meta {
  margin-bottom: 2em;
  color: #007c91;
}
.post-date {
  margin: 0;
  font-size: 1.1em;
  opacity: 0.9;
}
.post-tags {
  margin: 1em 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  align-items: center;
}
.tags-label {
  color: #007c91;
  font-weight: 500;
}
.post-tag {
  display: inline-block;
  background: #e6faff;
  color: #007c91;
  padding: 0.3em 0.8em;
  border-radius: 1em;
  font-size: 0.9em;
  transition: all 0.2s ease;
  border: 1px solid rgba(0, 124, 145, 0.2);
}
.post-tag:hover {
  background: #b2eaff;
  transform: translateY(-1px);
}
.post-readtime {
  margin: 0.5em 0 0 0;
  font-size: 0.95em;
  opacity: 0.9;
}
.post-content {
  margin-top: 1.5em;
  font-size: 1.1em;
  line-height: 1.2;
  color: #222;
  padding: 0.5em 0.8em;
  word-break: break-word;
  box-sizing: border-box;
}

.post-content img {
  max-width: 100%;
  border-radius: 1.2em;
  box-shadow: 0 2px 8px rgba(100,220,255,0.10);
  margin: 0.8em 0;
}
.post-content a {
  color: #007c91;
  text-decoration: underline;
  transition: color 0.2s;
}
.post-content a:hover {
  color: #004d5c;
}
.navbar {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 1em;
}
.hamburger {
  display: none;  /* Hidden by default for desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 1em 1em;
  z-index: 1002;
  transition: transform 0.3s ease;
  
  /* Better touch target size */
  min-width: 45px;
  min-height: 35px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 3px;
  margin: 2px 0;
  background: #007c91;
  transition: 0.3s ease;
  transform-origin: center;
  border-radius: 1em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.back-btn {
  order: -1;
  margin-right: 1.5em;
  color: #007c91;
  background: #e6faff;
  border-radius: 1em;
  padding: 0.5em 1.2em;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(100,220,255,0.07);
  transition: background 0.2s, color 0.2s;
  font-size: 1em;
  height: auto;
  align-self: center;
}
.back-btn:hover {
  background: #b2eaff;
  color: #004d5c;
}
.social-links {
  display: flex;
  flex-direction: column;
  gap: 1em;
  margin-top: 1em;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 1em;
  width: fit-content;
  padding: 0.5em 0.6em;
  background: #f0fbff;
  border-radius: 1em;
  color: #007c91;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid rgba(0, 124, 145, 0.1);
}

.social-link i {
  font-size: 1.2em;
  width: 1.4em;
  text-align: center;
}

.social-link:hover {
  background: #e6faff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 124, 145, 0.1);
}

.social-link.email:hover { background: #e6faff; }
.social-link.linkedin:hover { background: #e8f4ff; }
.social-link.twitter:hover { background: #e8f5ff; }
.social-link.github:hover { background: #f0f3f6; }

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5em;
  margin-top: 1.5em;
}

.tech-card {
  background: #f0fbff;
  border-radius: 1.2em;
  padding: 1.5em;
  box-shadow: 0 2px 12px rgba(100,220,255,0.10);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tech-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 24px rgba(100,220,255,0.18);
}

.tech-card-header {
  display: flex;
  align-items: center;
  gap: 0.8em;
  margin-bottom: 1.2em;
  color: #007c91;
}

.tech-card-header i {
  font-size: 1.5em;
}

.tech-card-header h3 {
  margin: 0;
  font-size: 1.2em;
}

.tech-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8em;
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 0.5em;
  background: rgba(255, 255, 255, 0.7);
  padding: 0.4em 0.8em;
  border-radius: 0.8em;
  font-size: 0.95em;
  border: 1px solid rgba(0, 124, 145, 0.1);
}

.tech-item i {
  color: #007c91;
  font-size: 1.1em;
}

section {
  padding-bottom: 1em;
  width: 100%;
}

section p {
  margin: 0.5em 0;
  text-align: justify;
  color: #222;
}

/* Blog posts grid and card styles */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2em;
  margin: 2em 0;
}
.post-card {
  background: #f0fbff;
  border-radius: 1.2em;
  box-shadow: 0 2px 12px rgba(100,220,255,0.10);
  padding: 2em 1.5em;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: box-shadow 0.2s, transform 0.2s;
}
.post-card:hover {
  box-shadow: 0 6px 24px rgba(100,220,255,0.18);
  transform: translateY(-4px) scale(1.02);
}
.post-title {
  font-size: 1.3em;
  font-weight: 700;
  color: #007c91;
  text-decoration: none;
  margin-bottom: 0.5em;
  transition: color 0.2s;
}
.post-title:hover {
  color: #004d5c;
  text-decoration: underline;
}
.post-meta {
  color: #007c91;
  font-size: 1em;
  margin-bottom: 1em;
  opacity: 0.85;
}
.post-excerpt {
  margin: 0.5em 0 1.2em 0;
  color: #222;
  font-size: 1.08em;
}
.read-more {
  color: #007c91;
  text-decoration: underline;
  font-weight: 600;
  margin-top: auto;
  align-self: flex-end;
  transition: color 0.2s;
}
.read-more:hover {
  color: #004d5c;
}
.rss-link {
  color: #007c91;
  text-decoration: underline;
  font-weight: 600;
}
.rss-link:hover {
  color: #004d5c;
}

@media (max-width: 900px) {
  nav {
    backdrop-filter: none;
    background-color: transparent;
  }

  nav.navbar {
    display: contents;
    /* display: flex; */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1em;
    justify-content: flex-start;
    z-index: 1000;
    background: transparent;
  }

  .hamburger {
    display: flex;  /* Show only on mobile */
    flex-direction: column;
    justify-content: center;
    position: fixed;
    top: 3em;
    left: 3em;
    z-index: 1002;
    background: #fff;
    border-radius: 0.8em;
    padding: 0.5em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;  /* Start at left edge */
    height: 100vh;
    width: 280px;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 4.5em 1.5em 1.5em;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    transform: translateX(-100%);  /* Move off-screen */
    transition: transform 0.3s ease;
    will-change: transform;  /* Optimize for animations */
    visibility: visible;
    transition: transform 0.3s ease, visibility 0s;
  }
  body.nav-open .nav-links {
    transform: translateX(0);  /* Slide in to visible area */
  }
  .nav-links[aria-hidden="true"] {
    visibility: hidden;
  }
  body:not(.nav-open) .nav-links {
    transition: transform 0.3s ease, visibility 0s 0.3s;
  }
  .nav-links a {
    padding: 0.8em 1em;
    width: 80%;
    text-align: left;
    display: block;  /* Ensure full clickable area */
  }
  body.nav-open .hamburger span:first-child {
    transform: translateY(6px) rotate(45deg);
  }
  body.nav-open .hamburger span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
  }
  body.nav-open .hamburger span:last-child {
    transform: translateY(-6px) rotate(-45deg);
  }
  
  main {
    padding: 1.5em;
    margin: 0;
    margin-top: 3em;
  }
  .intro-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* align-items: flex-start; */
  }
  .intro-block img {
    max-width: 90%;
    /* margin-right: auto; */
    border-radius: 1.5em;
    padding: 0.5em;
    align-self: center;
  }
}

/* Desktop: row flex for .intro-block */
@media (min-width: 701px) {
  .intro-block {
    display: flex;
    flex-direction: row;
    align-items: center;
  }
  .intro-block img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 1.5em;
    padding: 0.5em;
  }
}

/* Consistent about page card styling */
.about-card {
  background: #f0fbff;
  border-radius: 1.2em;
  box-shadow: 0 2px 12px rgba(100,220,255,0.10);
  padding: 1.5em 1em;
  margin-bottom: 2em;
  /* max-width: 700px; */
  
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.about-card ul {
  margin: 0;
  padding-left: 1.2em;
}

.about-card h2 {
  color: #007c91;
  margin-top: 0;
}

.period {
  display: inline-block;
  background: #e6faff;
  color: #007c91;
  padding: 0.3em 0.8em;
  border-radius: 1em;
  font-size: 0.95em;
  margin-top: 0.2em;
  margin-bottom: 0.2em;
  font-weight: 500;
  border: 1px solid rgba(0, 124, 145, 0.15);
}

/* Contact grid/flex layout for social links */
.contact-grid {
  background: #f0fbff;
  border-radius: 1.2em;
  box-shadow: 0 2px 8px rgba(100,220,255,0.07);
  padding: 1.5em;
  /* padding: 2em 1.5em; */
  /* margin-bottom: 2em; */

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1em;
}

@media (max-width: 700px) {
  .contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2em;
    margin-top: 1em;
    justify-content: flex-start;
  }
}

/* Skills section styles */
.skills-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  justify-content: flex-start;
}
.skills-list li {
  display: flex;
  align-items: center;
  margin-bottom: 0;
  font-size: 1em;
  background: #f7f7fa;
  border-radius: 8px;
  padding: 0.5em 1em;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  transition: background 0.2s;
}
.skills-list li i,
.skill-icon {
  margin-right: 0.5em;
  color: #3b82f6;
  font-size: 1em;
  height: 1.5em;
  width: 1.5em;
  vertical-align: middle;
}
.skills-list li:hover {
  background: #e0e7ff;
}
