/* ===== Global Reset ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
}

body {
  background: #f4f7fb;
  color: #333;
  min-height: 100vh;
}

/* ===== HEADER HERO SECTION ===== */
.hero-header {
  height: 100vh;
  background-image: url("slide2.jpeg");
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-overlay {
  width: 100%;
  height: 100%;
  background: rgba(0,0,40,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-content {
  color: white;
  padding: 20px;
}

.profile-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid white;
  margin-bottom: 25px;
}

.hero-title {
  font-size: 64px;
  font-weight: 800;
  margin-bottom: 15px;
}

.hero-subtitle {
  font-size: 22px;
  letter-spacing: 2px;
  opacity: 0.9;
}

/* ===== MAIN CONTENT ===== */
main {
  padding: 60px 8%;
}

section {
  max-width: 950px;
  margin: 40px auto;
  background: white;
  padding: 35px;
  border-radius: 16px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: 0.3s ease;
}

section:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

h2 {
  color: #0a3d62;
  margin-bottom: 15px;
  border-left: 5px solid #0a3d62;
  padding-left: 10px;
}

/* ===== About Section ===== */
.about-section {
  background: linear-gradient(135deg, #f3e8ff, #e0d7ff);
  border-left: 5px solid #7b2cbf;
  padding: 35px;
  border-radius: 16px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  text-align: left;
}

.about-section h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #7b2cbf;
}

/* ===== Projects Section ===== */
.projects-section {
  background: linear-gradient(135deg, #e6ffe6, #d9ffd9);
  border-left: 5px solid #2d6a4f;
  padding: 35px;
  border-radius: 16px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  text-align: left;
}

.projects-section h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #2d6a4f;
}

/* ===== Publications Section ===== */
.publications-section {
  background: #e6f4ff;
  border-left: 5px solid #0a3d62;
  padding: 35px;
  border-radius: 16px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  text-align: left;
}

.publications-section h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #0a3d62;
}

.pub-icon {
  font-size: 24px;
}

.pub-link {
  color: #0a3d62;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s ease;
}

.pub-link:hover {
  text-decoration: underline;
  color: #111;
}

/* ===== Certifications Section ===== */
.certifications-section {
  background: linear-gradient(135deg, #ffe6f0, #ffd9e6);
  border-left: 5px solid #b83265;
  padding: 35px;
  border-radius: 16px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  text-align: left;
}

.certifications-section h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #b83265;
}

.cert-icon {
  font-size: 24px;
}

.cert-link {
  color: #b83265;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s ease;
}

.cert-link:hover {
  text-decoration: underline;
  color: #111;
}

/* ===== Timeline Ladder (Certifications Page) ===== */
.header-triangle {
  width: 0;
  height: 0;
  border-left: 150px solid transparent;
  border-right: 150px solid transparent;
  border-bottom: 80px solid #b83265;
  margin: 0 auto 40px auto;
  position: relative;
}

.header-triangle h2 {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-weight: bold;
  font-size: 20px;
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline-item {
  display: flex;
  justify-content: flex-start;
  margin: 40px 0;
  width: 100%;
}

.timeline-item.right {
  justify-content: flex-end;
}

.timeline-content {
  background: #ffe6f0;
  padding: 20px;
  border-radius: 12px;
  width: 45%;
  position: relative;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.timeline-content h3 {
  margin-bottom: 5px;
  color: #b83265;
}

.timeline-content h4 {
  margin-bottom: 10px;
  color: #333;
}

.timeline-content img {
  margin: 10px 0;
  max-width: 100%;
  border-radius: 8px;
  border: 2px solid #b83265;
}

.timeline-content p {
  font-size: 14px;
  line-height: 1.5;
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 20px;
  background: #0a3d62;
  color: white;
  font-size: 14px;
}

/* ===== Reveal Animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media(max-width:768px) {
  .hero-title { font-size: 40px; }
  .hero-subtitle { font-size: 18px; }
  .profile-photo { width: 140px; height: 140px; }
  main { padding: 40px 5%; }
}
/* ===== Home Page Background ===== */
body.home-page {
  background: linear-gradient(135deg, #f9f9f9, #e6f0ff); /* soft gray to very light blue */
  background-size: 200% 200%;
  animation: softGlow 12s ease-in-out infinite; /* gentle shifting */
  color: #333;
}

/* Gentle gradient animation */
@keyframes softGlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ===== Project Page ===== */
.project-page {
  background: #f9f9f9;
  color: #333;
}

.project-nav-box {
  background: rgba(255, 255, 255, 0.95);
  padding: 15px 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 20px auto;
  width: 100%;          /* make it span full width */
  max-width: none;      /* remove the limit */
}


.project-nav-link {
  text-decoration: none;
  font-weight: 600;
  color: #0a3d62;
  transition: 0.3s ease;
}

.project-nav-link:hover {
  color: #b83265;
  text-decoration: underline;
}

/* Header Image */
.project-header {
  text-align: center;
  margin-top: 20px;
}

.project-bg {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
}

/* Row layout for image + description */
.project-row {
  display: flex;
  justify-content: center;   /* center the whole row */
  align-items: flex-start;
  gap: 40px;                 /* space between image and text */
  margin-bottom: 30px;
}

/* Centered image */
.project-image {
  display: flex;
  justify-content: center;
  flex: 0 0 auto;            /* fixed size, doesn’t stretch */
}

.project-image img {
  width: 400px;              /* medium size */
  height: auto;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

/* Description styling */
.project-description {
  flex: 1;                 /* let text expand to fill remaining space */
  max-width: 100%;         /* remove the 600px cap */
  font-size: 1.2rem;       /* slightly larger text */
  line-height: 1.8;
  text-align: justify;
  padding-right: 20px;     /* optional spacing from the edge */
}

.project-description h2 {
  color: #0a3d62;
  margin-bottom: 20px;
  font-size: 1.8rem;       /* larger heading to match wider layout */
}


/* Centered video */
.project-video {
  text-align: center;
  margin: 40px 0;
}



.article-content {
  max-width: 95%;       /* use most of the page width */
  margin: 40px auto;
}

.image-row {
  display: flex;
  justify-content: space-between; /* push images to left and right edges */
  align-items: flex-start;        /* align to the same baseline */
  gap: 20px;
  margin-bottom: 30px;
}

.image-row img {
  flex: 1;              /* each image takes equal space */
  max-width: 50%;       /* medium size, not full width */
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.project-description {
  font-size: 1.1rem;    /* slightly larger text */
  line-height: 1.7;
  margin-top: 40px;
  text-align: justify;
}

.project-description h2 {
  color: #0a3d62;
  margin-bottom: 20px;
  font-size: 1.6rem;
}

.article-video {
  margin: 50px 0;
  text-align: center;
}




/* ===== Footer ===== */
footer {
  margin-top: auto;           /* pushes footer to bottom */
  text-align: center;
  padding: 25px 20px;
  background: #0a3d62;        /* dark blue footer */
  color: white;
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
}

/* Footer Buttons */
.footer-buttons {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-bottom: 15px;
}

.footer-btn {
  text-decoration: none;
  color: white;               /* make text white */
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: 0.3s ease;
}

.footer-btn i {
  font-size: 18px;
  color: white;               /* make icon white */
}

.footer-btn:hover {
  color: #ffe082;             /* soft yellow hover */
}

footer p {
  margin-top: 10px;
}

/* Flexbox layout for project pages */
body.project-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;          /* full viewport height */
}

main {
  flex: 1;                    /* main grows to fill space */
}








