/* Ensure the html and body cover the full viewport */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background: url('background.png') no-repeat center center fixed;
  background-size: cover;
  font-family: 'Segoe UI', sans-serif;
  color: #333;
  overflow-x: hidden;
}


body {
  animation: fadeInBody 0.8s ease;
}

@keyframes fadeInBody {
  from { opacity: 0; }
  to { opacity: 1; }
}


  
header {
  padding: 1rem;
  text-align: center;

}

nav button {
  margin: 0.3rem;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  color: rgb(31, 29, 136);
  background-color: #74d6e7; /* bright pink */
}

.section {
  display: none;
  padding: 2rem;
  text-align: center;
}

.section.active {
  display: block;
}


.content-box {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  background-color: #add8e6;  padding: 30px;
  border-radius: 12px;
  margin: 20px auto;
  max-width: 800px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.content-box.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0);
}
textarea {
  width: 90%;
  max-width: 700px;
  padding: 10px;
  font-size: 1rem;
  margin-top: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  resize: vertical;
  background-color: #d6f0ff; /* Light blue */
  color: #001f3f; /* 🔵 Dark blue text */
}


h4 {
  color: #4682b4;
  margin-top: 10px;
  font-weight: 500;
}
button {
  margin-top: 10px;
  padding: 10px 20px;
  font-weight: bold;
  background-color: #4682b4; /* Blue */
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #2c5d85;
}

.section {
  padding: 2rem;
  text-align: center;
  min-height: 100vh;
}


/* Home Section Styling */
#home .home-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* aligns content to the top */
  min-height: calc(100vh - 120px); /* give some space below header but not too much */
  padding-top: 40px; /* control spacing manually */
  text-align: center;
  color: #3336c5;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
  position: relative;
}



#home .home-content h1 {
  font-size: 2.5rem;
  margin: 20px 0 10px;
}

#home .home-content p {
  font-size: 1.4rem;
  font-style: oblique;
  color: #b433ce;
  margin: 0;
}


#profile-pic {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.4s ease-in-out;
  border: 4px solid transparent;
  display: block;
  margin-top: 0; /* ensure no extra spacing here */
}

/* Enlarged state */
#profile-pic.enlarged,
#profile-pic:hover {
  width: 260px;
  height: 260px;
  border: 4px solid #a8e9b1;
  box-shadow: 0 0 25px #fff;
  margin-top: -10px; /* small upward lift */
}

.social-icons {
  margin-top: 20px;
  display: flex;
  gap: 20px;
  justify-content: center;
}

.social-icons a img {
  width: 35px;
  height: 35px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.social-icons a img:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}




/* About text box styling and enhanced slide-up animation */
.about-text-box {
  background-color: #add8e6;
  padding: 20px;
  border-radius: 12px;
  margin: 20px auto;
  width: fit-content;
  max-width: 700px;
  min-width: 300px;
  font-size: 1.1rem;
  line-height: 1.6;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  word-wrap: break-word;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-text-box.revealed {
  opacity: 1;
  transform: translateY(0);
}
.subheading {
  margin-top: 30px;
  font-size: 1.4rem;
  color: #5e60ce;
  text-align: center;
  font-weight: bold;
}

.image-gallery {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.image-gallery img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  border: 3px solid #ffffffaa;
}

/* Pop on hover */
.image-gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  border-color: #5e60ce;
}


.education-list {
  background-color: #add8e6;
  list-style: none;
  padding: 0;
  text-align: left;
  margin-top: 15px;
  font-size: 1.1rem;
  color: #003366; /* Deep blue for good contrast */
}

.education-list li {
  margin-bottom: 12px;
  padding-left: 10px;
  position: relative;
}

.education-list li::before {
  content: "📘";
  position: absolute;
  left: 0;
  top: 2px;
}
.timeline {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.timeline-item {
  background-color: #add8e6;
  border-left: 4px solid #6db5f2;
  border-radius: 10px;
  padding: 20px;
  width: 90%;
  max-width: 600px;
  margin-bottom: 10px;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.edu-title {
  color: #0077cc;
  font-size: 1.3em;
  font-weight: 700;
  margin-bottom: 5px;
}

.edu-duration {
  font-style: italic;
  color: #555;
  margin-bottom: 10px;
}

.edu-desc {
  color: #333;
}

.timeline-line {
  width: 2px;
  height: 30px;
  background-color: #6db5f2;
}



 
.achievements-box {
  background-color: #add8e6; /* Light blue */
  padding: 30px;
  border-radius: 15px;
  margin: 20px auto;
  max-width: 800px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);

  /* Initial hidden state (inherited from .content-box) */
  opacity: 0;
  transform: translateY(30px);
  transition: transform 0.8s ease, opacity 0.8s ease;
}

.achievements-box.revealed {
  opacity: 1;
  transform: translateY(0);
}



/* When section is active, trigger slide-in */
#achievements.section.active .achievements-box {
  transform: translateX(0);
  opacity: 1;
}

.achievements-box h2 {
  color: #6a5acd;
  margin-bottom: 20px;
}

.achievements-list {
  text-align: left;
  padding-left: 20px;
  font-size: 1.1rem;
  color: #7c1373;
}


/* Base state: hidden for reveal */
.achievements-list li {
  margin-bottom: 12px;
  list-style-type: disc;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease, color 0.3s ease;
}

/* Reveal animation class */
.achievements-list li.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Hover effect still works */
.achievements-list li:hover {
  transform: translateX(5px);
  color: #4b0082;
}

.analysis-box {
  background-color: #add8e6;
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  text-align: left;
  display: none; /* hidden initially */
}

.analysis-group {
  margin-top: 20px;
}

.analysis-group h4 {
  color: #5e60ce;
  margin-bottom: 8px;
  font-size: 1.1rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: 4px;
}

.analysis-group ul {
  list-style: none;
  padding-left: 10px;
}

.analysis-group li {
  margin: 3px 0;
  font-family: monospace;
}


.cv-link {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  background-color: #add8e6;  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.cv-link:hover {
  background-color: #483d8b;
}




.skills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 20px;
}

.skill-level {
  background-color: #add8e6;  border-radius: 15px;
  padding: 20px 30px;
  width: 200px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.skill-level h3 {
  color: #5e60ce;
  margin-bottom: 10px;
  text-align: center;
}

.skill-level ul {
  list-style: none;
  padding: 0;
  text-align: center;
}

.skill-level ul li {
  padding: 5px 0;
  color: #333;
  font-weight: 500;
}


.highlighted-text {
  color: #ff69b4; /* hot pink */
  font-size: 1.2rem;
}

.skills {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.skill-level {
  background-color: #add8e6;  border-radius: 12px;
  padding: 1rem;
  width: 200px;
}
