
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  background-color: white;
  margin: 0;
}

/* CSS for content section */
.content-wrapper {
  display: flex;
  padding: 0.2rem 1.2rem 0 1.2rem;
  gap: 0.1rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
  min-height: calc(100vh - 80px);
  background-color: white;
  margin-top: 80px; /* Reduced for PC devices to shift content upwards */
}

.text-content {
  flex: 1;
  padding-left: 1.2rem;
  margin-top: 0; /* Remove extra top margin */
}

.image-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Animation for profile image in .image-container img */
.image-container img {
  max-width: 270px;
  height: 270px;
  width: 100%;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 18px 6px #5C8D89, 0 0 32px 10px #5C8D89;
  animation: floatImage 3.5s ease-in-out infinite, subtleGlow 2.2s ease-in-out infinite alternate;
}

/* Subtle glowing animation for profile image */
@keyframes subtleGlow {
  0% {
      box-shadow: 0 0 8px 2px #5C8D89, 0 0 16px 4px #b3f9f4;
  }
  100% {
      box-shadow: 0 0 18px 6px #5C8D89, 0 0 32px 10px #97d3ce;
  }
}

/* Keyframes for animated resume button border */
@keyframes animate1 {
0% { left: -100%; }
50%,100% { left: 100%; }
}
@keyframes animate2 {
0% { top: -100%; }
50%,100% { top: 100%; }
}
@keyframes animate3 {
0% { right: -100%; }
50%,100% { right: 100%; }
}
@keyframes animate4 {
0% { bottom: -100%; }
50%,100% { bottom: 100%; }
}

/* General scroll reveal animation for all sections */
.reveal {
opacity: 0;
transform: translateY(40px) scale(0.98);
transition: opacity 0.7s cubic-bezier(.34,1.56,.64,1), transform 0.7s cubic-bezier(.34,1.56,.64,1);
}
.reveal.visible {
opacity: 1;
transform: translateY(0) scale(1);
}

h1 {
  font-size: 2.8rem;
  margin-bottom: 0.1rem;
  line-height: 1.1;
  color: #5C8D89;
  font-family: 'Righteous', Arial, sans-serif;
}

h2 {  
  color: #5C8D89;
  margin: 0;
  font-size: 1.5rem;
  font-family: 'Righteous', Arial, sans-serif;
}

p {
  color: #5C8D89;
  font-size: 0.8rem; /* Reduced to 0.8rem as requested */
  line-height: 1.4; /* Adjusted for smaller font */
  margin: 0.3rem 0 0.8rem 0; /* Reduced margins */
  font-family: 'Righteous', Arial, sans-serif;
}

.resume-btn {
position: relative;
display: inline-block;
padding: 10px 25px;
color: #5C8D89;
text-decoration: none;
text-transform: uppercase;
transition: all 0.5s ease;
letter-spacing: 2px;
overflow: hidden;
background: transparent;
border: none;
font-weight: bold;
font-size: 0.9rem;
margin-top: 1rem;
cursor: pointer;
width: fit-content;
}

.resume-btn:hover {
color: #FFF5E1; /* Cream text on hover */
background: #5C8D89; /* Solid red background on hover */
box-shadow: 
  0 0 5px #5C8D89,
  0 0 20px #a1dbd6,
  0 0 35px #abe2dd;
-webkit-box-reflect: below 1px linear-gradient(transparent, #38ccbf);
}

.resume-btn span {
position: absolute;
display: block;
}

.resume-btn span:nth-child(1) {
top: 0;
left: 0;
width: 100%;
height: 1px;
background: linear-gradient(90deg, transparent, #5C8D89);
animation: animate1 1.5s linear infinite;
}

.resume-btn span:nth-child(2) {
top: -100%;
right: 0;
width: 1px;
height: 100%;
background: linear-gradient(180deg, transparent, #5C8D89);
animation: animate2 1.5s linear infinite;
animation-delay: 0.375s;
}

.resume-btn span:nth-child(3) {
bottom: 0;
right: 0;
width: 100%;
height: 1px;
background: linear-gradient(270deg, transparent, #5C8D89);
animation: animate3 1.5s linear infinite;
animation-delay: 0.75s;
}

.resume-btn span:nth-child(4) {
bottom: -100%;
left: 0;
width: 1px;
height: 100%;
background: linear-gradient(360deg, transparent, #5C8D89);
animation: animate4 1.5s linear infinite;
animation-delay: 1.125s;
}

/* Keyframes remain unchanged */
@keyframes animate1 {
0% { left: -100%; }
50%,100% { left: 100%; }
}
@keyframes animate2 {
0% { top: -100%; }
50%,100% { top: 100%; }
}
@keyframes animate3 {
0% { right: -100%; }
50%,100% { right: 100%; }
}
@keyframes animate4 {
0% { bottom: -100%; }
50%,100% { bottom: 100%; }
}



@media (max-width: 768px) {
  .content-wrapper {
      flex-direction: column-reverse; /* Image will now appear above text */
      padding: 0.5rem 1rem;
      min-height: auto;
      gap: 1.5rem; /* Increased gap for more spacing between h1 and profile picture */
      margin-top: 140px; /* Increased margin-top to shift content further downwards on mobile */
  }
  
  .text-content {
      padding-left: 0.5rem;
      margin-top: 0; /* Reset margin-top */
      text-align: center; /* Center align text on mobile */
  }
  
  .image-container {
      margin-top: 1rem; /* Increased spacing above profile picture */
  }
  
  .image-container img {
      height: 220px; /* Smaller on mobile */
  }
  
  h1 {
      font-size: 2.2rem;
      margin-top: 0; /* Removed spacing above heading */
      margin-bottom: 0.5rem; /* Reduced space below heading */
  }
  
  .typing-container, h2, p {
      text-align: center; /* Center all text elements */
  }
  
  .social-icons {
      justify-content: center; /* Center icons on mobile */
      margin-top: 3rem; /* Increased margin-top to shift icons further downwards */
      margin-left: 0; /* Reset left margin for mobile centering */
  }
  
  .social-icon {
      width: 45px;
      height: 45px;
      font-size: 1.3rem;
  }
}

/* --- Responsive: Larger project images on mobile --- */
@media (max-width: 600px) {
.project-image {
  height: 220px;
  max-width: 100%;
}
.project-image img {
  border-radius: 12px;
}
/* Remove scroll animation from skills section on mobile */
/*   .skills-section.reveal {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
} */
/* Reduce navbar height and padding on mobile */
.nav-9 nav {
  height: 38px;
  padding: 0.2rem 0.5rem;
}
/* Reduce spacing below typing animation */
.typing-container {
  margin-bottom: 0.2rem;
}
}

/* General scroll reveal animation for all sections */
.reveal {
opacity: 0;
transform: translateY(40px) scale(0.98);
transition: opacity 0.7s cubic-bezier(.34,1.56,.64,1), transform 0.7s cubic-bezier(.34,1.56,.64,1);
}
.reveal.visible {
opacity: 1;
transform: translateY(0) scale(1);
}

/* Skills Section */
.skills-section {
  padding: 2.2rem 2rem;
  text-align: center;
  background-color: white;
  margin-top: 2rem;      /* <-- This is the space above skills */
  border-radius: 15px;
}

.skills-heading {
  font-family: 'Segoe UI', 'Righteous', Arial, sans-serif;
  font-size: 2.7rem;
  font-weight: 900;
  color: #5C8D89;
  letter-spacing: 2px;
  text-align: center;
  text-transform: uppercase;
  -webkit-text-stroke: 1.5px #35605a;
  text-shadow:
      2px 2px 0 #a7d1cb,
      0 4px 12px #35605a44;
  background: linear-gradient(90deg, #5C8D89 60%, #a7d1cb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 2rem;
  margin-top: 0.5rem;
  transition: text-shadow 0.3s;
  position: relative;
  text-decoration: none; /* Remove any default underline */
}

/* New professional underline */
.skills-heading::after {
  content: "";
  display: block;
  margin: 0.5rem auto 0 auto;
  width: 80px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, #5C8D89 60%, #a7d1cb 100%);
  box-shadow: 0 2px 8px #5C8D8933;
  transition: all 0.3s ease;
}

/* Hover effects for skills heading */
.skills-heading:hover {
  text-shadow:
      2px 2px 0 #a7d1cb,
      0 4px 12px #35605a44,
      0 0 20px #5C8D89;
  transform: scale(1.02);
  transition: all 0.3s ease;
}

.skills-heading:hover::after {
  width: 120px;
  height: 5px;
  box-shadow: 0 4px 12px #5C8D8966;
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.skill-card {
  background: #d2f2ef;
  border-radius: 10px;
  padding: 2.2rem; /* Increased padding */
  box-shadow:
      0 0 6px 2px #92cec9, /* Reduced shadow */
      0 3px 8px #afe6e1;
  transition: all 0.5s ease, box-shadow 0.4s;
  position: relative;
  overflow: hidden;
  height: 260px;   /* Increased height */
  width: 100%;     /* Full width in grid */
  min-width: 260px;
  max-width: 480px; /* Increased max width for PC */
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid #5ad4c9;
  margin: 0 auto;
}

.skill-card:hover {
  transform: scale(1.03);
  box-shadow:
      0 0 5px 5px #5C8D89,  /* Stronger peach glow on hover */
      0 0 5px #77a29e;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
      0deg, 
      transparent, 
      transparent 30%, 
      #5C8D89
  );
  transform: rotate(-45deg);
  transition: all 0.8s ease;
  opacity: 0;
  z-index: 1;
}

.skill-card:hover::before {
  opacity: 1;
  transform: rotate(-45deg) translateY(100%);
}
span {
  color: #008c80;
}
.skill-title {
  font-size: 1.2rem;
  color: #008a7f;
  margin-bottom: 1rem;
  font-weight: bold;
  position: relative;
  z-index: 2;
}

.skill-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  position: relative;
  z-index: 2;
}

.skill-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.9rem;
  color: #5C8D89;
  transition: transform 0.3s ease;
}

.skill-icon:hover {
  transform: translateY(-3px);
}

.skill-icon i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #5C8D89;
}

/* Mobile adjustments for 2 cards per row */
@media (max-width: 768px) {
  .skills-container {
      grid-template-columns: repeat(2, 1fr); /* 2 cards per row */
      gap: 0.7rem; /* More space between cards */
  }
  .skill-card {
      padding: 1.2rem;
      height: 140px;
      max-width: 95vw;
      min-width: 0;
  }
  .skill-title {
      font-size: 0.95rem;
  }
  .skill-icon i {
      font-size: 1.2rem;
  }
}

/* For very small screens */
@media (max-width: 480px) {
  .skills-container {
      grid-template-columns: 1fr; /* Switch to 1 column */
  }
}
/*skills styling ended*/

.projects-section {
  padding: 2.2rem 2rem;         /* Reduce top/bottom padding */
  text-align: center;
  background-color: white;
  margin-top: 1.2rem;           /* Reduce margin between sections */
}

.projects-heading {
  font-family: 'Segoe UI', 'Righteous', Arial, sans-serif;
  font-size: 2.7rem;
  font-weight: 900;
  color: #5C8D89;
  letter-spacing: 2px;
  text-align: center;
  text-transform: uppercase;
  -webkit-text-stroke: 1.5px #35605a;
  text-shadow:
      2px 2px 0 #a7d1cb,
      0 4px 12px #35605a44;
  background: linear-gradient(90deg, #5C8D89 60%, #a7d1cb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 2rem;
  margin-top: 0.5rem;
  transition: text-shadow 0.3s;
  position: relative;
  text-decoration: none; /* Remove any default underline */
}

/* New professional underline */
.projects-heading::after {
  content: "";
  display: block;
  margin: 0.5rem auto 0 auto;
  width: 80px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, #5C8D89 60%, #a7d1cb 100%);
  box-shadow: 0 2px 8px #5C8D8933;
  transition: all 0.3s ease;
}

/* Hover effects for projects heading */
.projects-heading:hover {
  text-shadow:
      2px 2px 0 #a7d1cb,
      0 4px 12px #35605a44,
      0 0 20px #5C8D89;
  transform: scale(1.02);
  transition: all 0.3s ease;
}

.projects-heading:hover::after {
  width: 120px;
  height: 5px;
  box-shadow: 0 4px 12px #5C8D8966;
}

.projects-subtitle {
color: #057168;
font-size: 1.1rem;
margin-bottom: 2rem;
max-width: 700px;
margin-left: auto;
margin-right: auto;
line-height: 1.7;
background: #9dd0cc;
border-left: 4px solid #008378;
border-radius: 8px;
padding: 1rem 1.5rem;
box-shadow: 0 2px 12px #c7e3e1;
font-family: 'Segoe UI', 'Righteous', cursive, sans-serif;
letter-spacing: 0.2px;
transition: box-shadow 0.3s;
}

.projects-subtitle:hover {
box-shadow: 0 4px 24px #efefef;}


.projects-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
max-width: 1200px;
margin: 0 auto;
}

.project-card {
background: #e6fffd;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 5px 15px #2c988f;
transition: 
  transform 0.3s cubic-bezier(.34,1.56,.64,1), 
  box-shadow 0.3s cubic-bezier(.34,1.56,.64,1),
  filter 0.3s;
min-height: 420px; /* Changed from fixed height to min-height for PC */
display: flex;
flex-direction: column;
opacity: 0;
transform: translateY(40px) scale(0.98);
transition: opacity 0.7s cubic-bezier(.34,1.56,.64,1), transform 0.7s cubic-bezier(.34,1.56,.64,1);
}

.project-card.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.project-card:hover {
transform: translateY(-8px);
box-shadow: 0 20px 40px rgba(92, 141, 137, 0.2), 0 8px 20px rgba(0, 0, 0, 0.1);
transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
border: 2px solid #5C8D89;
}

/* --- Project Card Image Consistency --- */
.project-image {
  width: 100%;
  height: 200px; /* Reduced height to prevent overflow */
  margin: 0 auto 1rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
}

/* PC devices - increase image height for project cards */
@media (min-width: 769px) {
  .project-image {
    height: 250px; /* Reduced height for PC devices to prevent overflow */
  }
  
  .project-card {
    min-height: 450px; /* Reduced min-height for PC to accommodate smaller images */
  }
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Changed from cover to contain to show full image */
  display: block;
  border-radius: 16px;
  transition: transform 0.3s ease;
}

.project-image img:hover {
  transform: scale(1.05);
}

/* --- Cool Scroll Animation for Project Cards --- */
.project-card {
  /* ...existing code... */
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: opacity 0.7s cubic-bezier(.34,1.56,.64,1), transform 0.7s cubic-bezier(.34,1.56,.64,1);
}

.project-card.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.project-card:hover {
transform: translateY(-8px);
box-shadow: 0 20px 40px rgba(92, 141, 137, 0.2), 0 8px 20px rgba(0, 0, 0, 0.1);
transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
border: 2px solid #5C8D89;
}

.project-content {
padding: 1.5rem;
flex-grow: 1;
display: flex;
flex-direction: column;
}

.project-content h3 {
color: #06736a;
margin-bottom: 0.8rem;
font-size: 1.3rem;
font-family: 'Righteous', Arial, sans-serif;
}

.project-content p {
color: #5C8D89;
margin-bottom: 1.5rem;
font-size: 0.9rem;
line-height: 1.5;
font-family: 'Righteous', Arial, sans-serif;
}

.project-tools {
display: flex;
justify-content: center;
gap: 1.5rem;
margin-bottom: 1.5rem; /* Space before buttons */
}

.project-buttons {
display: flex;
justify-content: center;
gap: 1rem;
margin-top: auto; /* Pushes buttons to bottom */
}

.project-btn {
padding: 0.6rem 1rem;
border-radius: 5px;
font-weight: bold;
text-decoration: none;
transition: all 0.3s ease;
font-size: 0.9rem;
display: inline-flex;
align-items: center;
gap: 0.5rem;
 background: #139287;
color: white;
border-radius: 30px;
font-family: 'Righteous', Arial, sans-serif;
}

.project-btn-live {
background: #219f94;
color: white;
}

.project-btn-code {
background: #5C8D89;
color: white;
}

.project-btn:hover {
transform: translateY(-2px);
box-shadow: 0 6px 15px rgba(92, 141, 137, 0.3);
transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-btn-live:hover {
background: #1a8a7f;
transform: translateY(-2px) scale(1.02);
}

.project-btn-code:hover {
background: #4a7a76;
transform: translateY(-2px) scale(1.02);
}







@media (max-width: 768px) {
.projects-container {
  grid-template-columns: 1fr;
}

.project-card {
  max-width: 95vw;
  width: 100%;
  margin: 0 auto;
  height: auto;
  min-width: 0;
  padding: 0;
}

.project-image {
  height: 120px; /* Reduced height for mobile devices */
}

.project-image img {
  width: 95%;           /* Slightly reduced width */
  height: 120px;        /* Reduced height for mobile devices */
  object-fit: contain;  /* Changed to contain to show full image */
  border-radius: 10px 10px 0 0;
  display: block;
  margin: 1rem auto 0 auto; /* Center image with margin top */
}

.project-content {
  padding: 1rem 0.5rem 0.5rem 0.5rem;
  font-size: 0.9rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.project-buttons {
  flex-direction: row; /* Changed from column to row for mobile */
  gap: 0.7rem;
  width: 100%;
  margin-top: 1rem;
  justify-content: center; /* Center the buttons */
}

.project-btn {
  width: 50%;      /* Reduce button width */
  min-width: 0;
  margin: 0 auto;
  justify-content: center;
  box-sizing: border-box;
  font-size: 1rem;
  padding: 0.7rem 0.5rem;
  white-space: normal;
  word-break: break-word;
}
}
/* End of projects section styles */
/*education section starts`*/
/* Education Section Styles */
.education-section {
  width: 100vw;
  max-width: 100vw;
  margin: 0;
  padding: 2.5rem 0 2rem 0;
  border-radius: 0;
  box-shadow: 0 4px 24px rgba(245,127,127,0.10); /* Add subtle shadow */
  text-align: center;
  background: white; /* Match body background */
  transition: box-shadow 0.4s;
}

.education-heading {
  font-family: 'Segoe UI', 'Righteous', Arial, sans-serif;
  font-size: 2.7rem;
  font-weight: 900;
  color: #5C8D89;
  letter-spacing: 2px;
  text-align: center;
  text-transform: uppercase;
  -webkit-text-stroke: 1.5px #35605a;
  text-shadow:
      2px 2px 0 #a7d1cb,
      0 4px 12px #35605a44;
  background: linear-gradient(90deg, #5C8D89 60%, #a7d1cb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 2rem;
  margin-top: 0.5rem;
  transition: text-shadow 0.3s;
  position: relative;
  text-decoration: none; /* Remove any default underline */
}

/* New professional underline */
.education-heading::after {
  content: "";
  display: block;
  margin: 0.5rem auto 0 auto;
  width: 80px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, #5C8D89 60%, #a7d1cb 100%);
  box-shadow: 0 2px 8px #5C8D8933;
  transition: all 0.3s ease;
}

/* Hover effects for education heading */
.education-heading:hover {
  text-shadow:
      2px 2px 0 #a7d1cb,
      0 4px 12px #35605a44,
      0 0 20px #5C8D89;
  transform: scale(1.02);
  transition: all 0.3s ease;
}

.education-heading:hover::after {
  width: 120px;
  height: 5px;
  box-shadow: 0 4px 12px #5C8D8966;
}

/* Timeline Styles */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #5C8D89 0%, #a7d1cb 50%, #5C8D89 100%);
  transform: translateX(-50%);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(92, 141, 137, 0.3);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  width: 100%;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: 0;
  margin-right: 55%;
  text-align: right;
  padding-right: 2rem;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 55%;
  margin-right: 0;
  text-align: left;
  padding-left: 2rem;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 1.5rem;
  width: 20px;
  height: 20px;
  background: #5C8D89;
  border: 4px solid white;
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 0 4px #5C8D89, 0 4px 12px rgba(92, 141, 137, 0.4);
  z-index: 2;
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
  transform: translateX(-50%) scale(1.2);
  box-shadow: 0 0 0 6px #5C8D89, 0 6px 20px rgba(92, 141, 137, 0.6);
  background: #a7d1cb;
}

.timeline-content {
  background: #ddfffc;
  border: 2px solid #5C8D89;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(92, 141, 137, 0.2);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.timeline-content::before {
  content: '';
  position: absolute;
  top: 1.5rem;
  width: 0;
  height: 0;
  border: 8px solid transparent;
}

.timeline-item:nth-child(odd) .timeline-content::before {
  right: -16px;
  border-left-color: #5C8D89;
}

.timeline-item:nth-child(even) .timeline-content::before {
  left: -16px;
  border-right-color: #5C8D89;
}

.timeline-item:hover .timeline-content {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(92, 141, 137, 0.3);
  border-color: #00ad9e;
}

.timeline-date {
  display: inline-block;
  background: linear-gradient(135deg, #5C8D89, #a7d1cb);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: bold;
  margin-bottom: 0.8rem;
  font-family: 'Righteous', Arial, sans-serif;
  box-shadow: 0 2px 8px rgba(92, 141, 137, 0.3);
}

.timeline-content h3 {
  color: #077e74;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-family: 'Righteous', Arial, sans-serif;
}

.timeline-content p {
  color: #444;
  font-size: 1rem;
  margin: 0;
  font-family: 'Righteous', Arial, sans-serif;
  line-height: 1.5;
}

.education-subtitle {
  font-size: 1.4rem; /* Increased size */
  color: #5C8D89;
  margin-bottom: 1.5rem;
  font-family: 'Righteous', Arial, sans-serif;
}

/* Mobile Timeline Styles */
@media (max-width: 768px) {
  .timeline::before {
      left: 2rem;
      transform: none;
  }
  
  .timeline-item {
      margin-bottom: 2rem;
  }
  
  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
      margin-left: 4rem;
      margin-right: 1rem;
      text-align: left;
      padding-left: 1.5rem;
      padding-right: 1rem;
  }
  
  .timeline-dot {
      left: 2rem;
      transform: none;
  }
  
  .timeline-item:hover .timeline-dot {
      transform: scale(1.2);
  }
  
  .timeline-item:nth-child(odd) .timeline-content::before,
  .timeline-item:nth-child(even) .timeline-content::before {
      left: -16px;
      right: auto;
      border-right-color: #5C8D89;
      border-left-color: transparent;
  }
  
  .timeline-content {
      padding: 1.2rem;
  }
  
  .timeline-date {
      font-size: 0.8rem;
      padding: 0.25rem 0.6rem;
  }
  
  .timeline-content h3 {
      font-size: 1.1rem;
  }
  
  .timeline-content p {
      font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .timeline::before {
      left: 1.5rem;
  }
  
  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
      margin-left: 3rem;
      margin-right: 0.5rem;
      padding-left: 1rem;
      padding-right: 0.8rem;
  }
  
  .timeline-dot {
      left: 1.5rem;
      width: 16px;
      height: 16px;
  }
  
  .timeline-content {
      padding: 1rem;
  }
  
  .timeline-date {
      font-size: 0.75rem;
      padding: 0.2rem 0.5rem;
  }
  
  .timeline-content h3 {
      font-size: 1rem;
  }
  
  .timeline-content p {
      font-size: 0.85rem;
  }
}
.nav-9 {
  background: #DB4444;
  position: sticky;
  top: 0;
  z-index: 1000; /* Increased z-index to stay above other content */
}

.contact-section {
  background: white; /* Match body background */
  padding: 3rem 0 2rem 0;
  display: flex;
  justify-content: center;
}

.contact-container {
  background: #cbf9f5;
  border-radius: 16px;
  box-shadow: 0 2px 4px 0 #047168, 0 2px 4px #5C8D89; /* Slight box shadow */
  max-width: 420px;
  width: 95%;
  margin: 0 auto;
  padding: 2rem 1.5rem 1.5rem 1.5rem;
}

.contact-heading {
  text-align: center;
  font-family: 'Righteous', cursive, sans-serif;
  color: #08726a;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  letter-spacing: 1px;
}

.form-group {
  margin-bottom: 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #5C8D89;
  letter-spacing: 0.5px;
}

.form-group label span {
  color: #5C8D89;
  font-weight: bold;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid #5C8D89;
  border-radius: 7px;
  font-size: 1rem;
  background: #cfe9e7;
  color: #02322e;
  transition: border-color 0.2s;
  outline: none;
  resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #004d47;
}

.invalid-feedback {
  color: #5C8D89;
  font-size: 0.95em;
  margin-top: 0.2rem;
  display: none;
}

.contact-btn {
  background-color: #65b5ae !important;
  color: whitesmoke!important;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  text-decoration: none;
  font-family: 'Righteous', Arial, sans-serif;
  text-transform: uppercase;
  transition: all 0.3s;
  border: 2px solid #066961;
  font-weight: bold;
  display: inline-block;
}

.contact-btn:hover {
  background-color: #2b7d77 !important;
  color: gray !important;
}

.mobile-menu .contact-btn {
  background: #5C8D89 !important;
  color: whitesmoke!important;
  border: 2px solid whitesmoke;
}

.form-status {
  margin-top: 1rem;
  text-align: center;
  font-size: 1.05rem;
  min-height: 1.2em;
}

@keyframes floatImage {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-18px); }
  100% { transform: translateY(0); }
}

@keyframes glowProfile {
  0% {
      box-shadow:
          0 0 30px 10px #5C8D89,
          0 0 60px 20px #a0c4c1,
          0 0 90px 30px #5C8D89;
  }
  100% {
      box-shadow:
          0 0 60px 20px #2fa298,
          0 0 80px 40px #069e91,
          0 0 100px 60px #0f998e;
  }
}

/* Moved from <style> in HTML */
* { margin: 0; padding: 0; box-sizing: border-box; }
.nav-9 { background: #5C8D89; position: fixed; top: 0; left: 0; width: 100vw; z-index: 1000; }
.nav-9 nav { background: #5C8D89; padding: 1rem 2rem; display: flex; justify-content: space-between; align-items: center; height: 64px; }
.navbar-brand { margin-left: -10px; font-size: 1.9rem; font-weight: bold; text-decoration: none; color: whitesmoke !important; font-family: 'Righteous', Arial, sans-serif; position: relative; transition: all 0.3s ease; }
@keyframes nav-brand-dance { 0%, 100% { text-shadow: 3px 3px 0 grey, 6px 6px 0 whitesmoke; } 60% { text-shadow: -3px -3px 0 gray, -6px -6px 0 rgb(236, 236, 236); } }

.navbar-brand:hover {
  animation: nav-brand-dance 1.2s infinite;
  transform: scale(1.05);
}
.nav-links { display: flex; align-items: center; gap: 1rem; }
.nav-9 .item { font-weight: bolder; position: relative; display: inline-block; height: 35px; padding-top: 15px; margin-left: 15px; margin-right: 15px; background: transparent; z-index: 2; text-decoration: none; transition: 0.3s ease-in-out; -webkit-transition: 0.3s ease-in-out; }
.nav-9 .linktext { font-size: 1.1em; top: 0px; text-align: center; position: relative; z-index: 2; color: whitesmoke; text-decoration: none; font-family: 'Righteous', Arial, sans-serif; text-transform: uppercase; transition: 0.3s ease-in-out; -webkit-transition: 0.3s ease-in-out; display: inline-block; padding: 0 5px; }
.nav-9 .linktext:before { content: ''; position: absolute; top: 0px; left: -5px; width: calc(100% + 10px); border-left: 3px solid whitesmoke; border-right: 3px solid whitesmoke; height: 150%; transition: 0.3s ease-in-out; -webkit-transition: 0.3s ease-in-out; opacity: 1; background: transparent; max-height: 0%; transform: translateY(20px); -webkit-transform: translateY(20px); }
.nav-9 .linktext:after { display: inline-block; content: attr(data-text); position: absolute; top: 24px; left: 0px; width: 100%; transition: 0.3s ease-in-out; -webkit-transition: 0.3s ease-in-out; font-size: 0.5em; color: whitesmoke; transform: translateY(30px); -webkit-transform: translateY(30px); opacity: 0; }
.nav-9 .item:hover .linktext:before { max-height: 150%; transition-delay: 0.3s; -webkit-transition-delay: 0.3s; transform: translateY(0%); -webkit-transform: translateY(0%); }
.nav-9 .item:hover .linktext:after { opacity: 1; transition-delay: 0.5s; -webkit-transition-delay: 0.5s; transform: translateY(0px); -webkit-transform: translateY(0px); }
.nav-9 .item:hover .linktext {
  color: #b0b0b0;
  top: -10px;
  transform: scale(1.3);
  -webkit-transform: scale(1.3);
  transition: 0.18s ease-in-out;
  -webkit-transition: 0.18s ease-in-out;
}

.nav-9 .item:hover .linktext:before,
.nav-9 .item:hover .linktext:after {
  transition-delay: 0.15s;
  -webkit-transition-delay: 0.15s;
}

.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.hamburger span { display: block; width: 25px; height: 3px; background-color:whitesmoke; transition: all 0.3s; }
.mobile-menu { display: none; position: absolute; top: 100%; right: 0; background-color: #5C8D89; width: 200px; padding: 1rem; flex-direction: column; gap: 1.5rem; border-radius: 0 0 0 10px; }
.mobile-menu.active { display: flex; }
@media (max-width: 768px) { .nav-links { display: none; } .hamburger { display: flex; } .mobile-menu .item { margin: 0; padding: 0.5rem 0; } }
.footer-nav { width: 100%; background: #5C8D89; padding: 2rem 0 1.2rem 0; position: relative; bottom: 0; left: 0; z-index: 999; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.footer-links { display: flex; justify-content: center; align-items: center; gap: 2.5rem; }
.footer-credit { color: whitesmoke; font-size: 1.1rem; margin-top: 1.2rem; letter-spacing: 1px; font-family: 'Righteous', Arial, sans-serif; text-align: center; opacity: 0.85; }
.footer-item { color: white; font-size: 2rem; text-decoration: none; transition: transform 0.4s cubic-bezier(.34,1.56,.64,1), color 0.4s; animation: footer-bounce 1.8s infinite alternate; display: flex; align-items: center; justify-content: center; }
.footer-item:nth-child(2) { animation-delay: 0.3s; } .footer-item:nth-child(3) { animation-delay: 0.6s; }
.footer-item:hover { color: #aeaeae; transform: scale(1.2) translateY(-6px); }
@keyframes footer-bounce { 0% { transform: scale(1) translateY(0); } 50% { transform: scale(1.12) translateY(-4px);} 100% { transform: scale(1) translateY(0);} }
@media (max-width: 600px) { .footer-links { gap: 1.3rem; } .footer-item { font-size: 1.5rem; } .footer-credit { font-size: 0.95rem; margin-top: 0.7rem; } }
