/* Reset & base styles */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #f7f9fa;
  color: #333;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: #005577;
}

header {
  background-color: #e6eef0;
  padding: 10px 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #f7f7f7; /* adjust as needed for muted calm colors */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.site-name {
  font-size: 1.25rem;
  font-weight: bold;
  color: #333;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-menu li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-menu li a:hover {
  color: #0077b6;
}

/* Section styling */
.section {
  padding: 60px 20px;
  max-width: 960px;
  margin: 0 auto;
}

.home {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 80px;
}

.profile-pic {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #cfd8dc;
}

/* Adjust intro text styles */
.intro h1 {
  font-size: 1.8rem; /* smaller than h2 */
  margin: 0;
  color: #333;
}

.intro h2 {
  font-size: 2.4rem; /* larger than h1 */
  font-weight: 600;
  color: #2c3e50; /* calm, muted tone */
  margin-top: 0.5rem;
}

#typewriter {
  font-weight: bold;
  color: #007799;
}

/* Projects section */
.tabs {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.tab-button {
  padding: 10px 20px;
  border: none;
  background: #dde7ea;
  cursor: pointer;
  font-weight: bold;
  border-radius: 6px;
}

.tab-button.active {
  background-color: #b6d1da;
  color: #000;
}

.tab {
  display: none;
}

.tab.active {
  display: block;
}

.project-card {
  background-color: #fff;
  padding: 15px 20px;
  border-left: 5px solid #007799;
  margin-bottom: 15px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  
  display: flex; /* horizontal alignment of children */
  gap: 20px; /* space between image and text column */
  align-items: flex-start; /* aligns top of image and text */
}

.project-image {
  max-width: 200px; /* adjust as needed */
  height: auto;
  border-radius: 6px;
}

.project-text {
  display: flex;
  flex-direction: column; /* vertical alignment */
  justify-content: flex-start;
}


/* About section */
#show-more {
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #b6d1da;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

#extras {
  margin-top: 30px;
}

.hidden {
  display: none;
}

.extra-box {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  overflow: hidden;
  padding-left: 20px; /* Add padding to the left */
}

.extra-box img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 10%; /* This makes the image rounded */
}

.extra-desc {
  padding: 15px;
  flex-grow: 1;
}

.extra-desc p {
  font-size: 16px;
  line-height: 1.5;
  color: #666;
  margin: 0;
}


/* Footer */
footer.contact {
  text-align: center;
  padding: 40px 20px;
  background-color: #e6eef0;
  color: #555;
}

/* Project Details Page Styling */
/* Scope all styles to project-details page only */
main.project-details {
  max-width: 960px;
  margin: 120px auto 60px auto; /* accounts for fixed navbar */
  padding: 0 20px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

main.project-details h1 {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 1rem;
}

main.project-details p {
  font-size: 1rem;
  color: #333;
  line-height: 1.7;
  margin-bottom: 1rem;
}

main.project-details a {
  color: #007799;
  text-decoration: underline;
}

main.project-details .project-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

main.project-details .button {
  display: inline-block;
  position: relative;
  top: -10px; /* Adjust this to move the button up */
  padding: 10px 20px;
  background-color: #b6d1da;
  color: #000;
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}


main.project-details .button:hover {
  background-color: #9dbfcf;
}

/* Responsive tweaks for project page only */
@media (max-width: 600px) {
  main.project-details {
    padding: 20px 15px;
    margin-top: 100px;
  }

  main.project-details h1 {
    font-size: 1.6rem;
  }

  main.project-details p {
    font-size: 0.95rem;
  }
}

/* Video container styling */
.video-container {
  display: flex;
  justify-content: center;
  margin: 30px 0;
}

iframe {
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

/* Style for the mp4 video player */
video {
  display: block;
  margin: 40px auto;
  width: 640px;
  max-width: 100%;             /* Ensures responsiveness without exceeding 640px */
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

/* Optional: add hover effect */
video:hover {
  transform: scale(1.02);
}
