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

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background: linear-gradient(135deg, #f0f4f8, #d9e2ec);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  margin: 0;
  min-height: 100vh;
}

html, body {
  height: 100%;
  margin: 0;
}

/*body {
  font-family: Georgia, serif;
  margin: 0;
  padding: 0;
  background: #f9f9f9;
  color: #333;
}*/

header {
  background: #333;
  color: white;
   text-align: center;
  padding: 1rem;
}

/* nav a {
  color: white;
  margin: 0 1rem;
  text-decoration: none;
} */
/* Banner container */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to right, #0f2027, #203a43, #2c5364);
  padding: 1rem 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Logo */
.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: #ffffff;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Navigation links */
.nav-links a {
  margin-left: 1.5rem;
  color: #ffffff;
  text-decoration: none;
  font-size: 1.1rem;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #66fcf1;
  transition: width 0.3s;
}

.nav-links a:hover {
  color: #66fcf1;
}

.nav-links a:hover::after {
  width: 100%;
}

.page-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main {
flex: 1;
  padding-right: 200px;
  padding-left: 200px;

  .profile-img{
  width: 200px;
  height: auto;
  border-radius: 100px;
  display: block;
  margin: 20px auto;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }
}

footer {
  background-color: #2c5364;
  color: white;
  padding: 1rem;
  text-align: center;
}

/* index PAGE */
.fade-in {
  animation: fadeIn 2s ease-in-out;
  animation-fill-mode: forwards; /* THIS keeps the element visible after animation ends */
  opacity: 0;

  /* h2 equivalent do add div block */
  display: block;
  font-size: 3em; /* Adjust as needed for desired size */
  font-weight: bold;
  margin-top: 0.83em; /* Equivalent to margin-before */
  margin-bottom: 0.83em; /* Equivalent to margin-after */
  margin-left: 0;
  margin-right: 0;
  text-align: center;

}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

#intro{
padding-right: 25%;
padding-left: 25%;
}

#projects {
padding-left: 25%;
}
#highlights {
text-align: center;
}

/* about PAGE */
#bio{
padding-top: 1rem;
padding-right: 25%;
padding-left: 25%;
}
/* project PAGE*/

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columns */
  gap: 20px; /* space between tiles */
  padding: 20px;

}

.project-tile {
  background-color: #fff;
  padding: 2rem;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: start;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease;
}


.project-tile:hover {
   transform: translateY(-6px);
   border-color: #0077cc;
}

.project-tile h2 {
  margin-top: 0;
  font-size: 1.4rem;
  color: #333;
}

.project-tile p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 1rem;
}

.project-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 4px;
   margin-top: 0.5rem;
}

.project-link:hover {
  background-color: #005fa3;
}

.morse-img {
 max-width: 70%;
  height: auto;
  margin-bottom: 0.5rem;
  display: block;
 }

#tile-container {
  display: flex;
  flex-direction: column;
  align-items: center; /* horizontally center content */
  justify-content: center; /* vertically center if needed */
  text-align: center;
}


/* resume PAGE */
.resume-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
}

.resume-button {
  background-color: #0077cc;
  color: white;
  font-size: 1.5rem;
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.resume-button:hover {
  background-color: #005fa3;
  transform: translateY(-3px);
}

#resume-section {
  display: flex;
  flex-direction: column;  /* Stack items vertically */
  align-items: center;     /* Center horizontally */
  padding: 40px 20px;
}
.resume-pdf {
  width: 90vw;
  height: 90vh;
  max-width: 1000px;
  border: none;
  margin-bottom: 20px;     /* Adds space between PDF and button */
}

.resume-button {
  background-color: #007BFF;
  color: white;
  padding: 12px 24px;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.resume-button:hover {
  background-color: #0056b3;
}

/* CONTACT */

#contact {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

#contact h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

#contact p {
  margin-bottom: 2rem;
  color: #555;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

input, textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  width: 100%;
}

button {
  padding: 0.75rem;
  background-color: #2a5298;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
}

button:hover {
  background-color: #1e3c72;
}

.bio-timeline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;
  max-width: 1000px;
  margin: 4rem auto;
  padding: 1rem;
  position: relative;
}
.bio-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: #cbd5e1; /* light gray/blue */
  border-radius: 2px;
  z-index: 0;
}
.bio-card {
  width: 100%;
  max-width: 600px;
  background-color: #fdfdfd;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 2rem;
  font-size: 1rem;
  line-height: 1.7;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.bio-card:hover {
  transform: translateY(-6px);
  border-color: #0077cc;
}

/* Stagger effect */
.bio-card.left {
  align-self: flex-start;
}

.bio-card.right {
  align-self: flex-end;
}

/* Mobile fallback */
@media (max-width: 768px) {
  .bio-card.left,
  .bio-card.right {
    align-self: center;
  }
}

#welcome-screen {
  position: fixed;
  z-index: 9999;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom right, #0f172a, #1e293b);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #f8fafc;
  font-size: 2rem;
  font-family: 'Segoe UI', sans-serif;
  transition: opacity 1s ease-out;
}

#welcome-screen .welcome-text {
  text-align: center;
  animation: fadeInUp 1s ease-out;
}

#welcome-screen span {
  color: #38bdf8; /* sky-blue accent */
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#welcome-screen.hide {
  opacity: 0;
  pointer-events: none;
}
#welcome-screen.hidden {
  display: none;
}

#contact-cta {
text-align: center;
padding: 2rem;
}