/**************** My Resume Section ***************/

.header {
  text-align: center;
  padding: 30px 20px;
}

.header h2 {
  color: #ff9500;
  font-size: 2em;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}



.header p {
  font-size: 1.2em;
  color: #aaaaaa;
}

/* Navigation */
.nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.nav a.btn {
  padding: 12px 25px;
  font-size: 1.1em;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease;
  color: #ffffff;
  font-weight: 600;
}

.nav a.btn:not(:hover):not(:focus) {
  background-color: #ff9500; /* Default button color */
}

.nav a.btn:hover,
.nav a.btn:focus,
.nav a.btn:checked {
  background-color: #8e9bb5; /* Hover/focus state */
}

.my-resume-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  min-height: 500px;
  height: 500px; /* Fixed height */
  position: relative;
  overflow: hidden; /* Prevent scroll on main */
}

.content {
  display: none;
  opacity: 0;
  animation: fadeIn 0.4s forwards;
  height: 100%; /* Full height of container */
  padding: 20px 0;
}

/* Show only the targeted section */
#contact:target,
#education:target,
#experience:target {
  display: block;
  opacity: 1;
}

/* Default view (when no hash) */
.default {
  display: block;
  opacity: 1;
}

/* Layout for content sections */
.content > div {
  display: inline-block;
  vertical-align: top;
  width: 48%;
}

.content .left {
  width: 48%;
}

.content .right {
  width: 40%;
  text-align: right;
}

.right img {
  max-width: 80%;
  border-radius: 10px;
}

.profile-img {
  border-radius: 50%;
  border: 4px solid #ff9500;
  width: 50%;
}

/* contact me*/

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  color: #ff9500;
  font-size: 1.2em;
}

#contact {
  color: white;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

#contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

#contact .left,
#contact .right {
  padding: 40px 20px;
}

#contact h2 {
  color: #ff9500;
  font-size: 2em;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

#contact h2::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 60%;
  height: 3px;
  background: #ff9500;
  border-radius: 2px;
}

#contact p {
  color: #ecf0f1;
  font-size: 1.1em;
  margin-bottom: 25px;
  line-height: 1.8;
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 18px;
  margin-top: 10px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: #ff9500;
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.social-icon:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 15px rgba(247, 183, 51, 0.3);
  background: white;
}

.social-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: brightness(0) invert(1); /* Makes icons white if they're black */
}

.social-icon:hover img {
  filter: brightness(0) saturate(100%) invert(0); /* Gold color on hover */
}

/* Call to Action Button */
.cta-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 28px;
  background: #ff9500;
  color: #1e2a38;
  font-weight: bold;
  text-decoration: none;
  border-radius: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(247, 183, 51, 0.3);
}

.cta-btn:hover {
  background: white;
  color: #f7b733;
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Profile Image */
#contact .profile-img {
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 5px solid #f7b733;
  max-width: 100%;
  width: 300px;
  display: block;
  margin: 0 auto;
  transition: transform 0.3s ease;
}

#contact .profile-img:hover {
  transform: scale(1.05);
}

/* === RESPONSIVE: Hide image on mobile === */
@media (max-width: 600px) {
  #contact .right {
    display: none; /* Hide image completely on mobile */
  }

  #contact .left {
    text-align: center;
    padding: 30px 15px;
  }

  #contact h2 {
    font-size: 1.8em;
  }

  .social-icons {
    justify-content: center;
  }

  .cta-btn {
    font-size: 1em;
  }
}

@media (max-width: 900px) {
  .content > div {
    width: 100%;
    text-align: center;
    display: block;
  }

  .content .right {
    margin-top: 20px;
  }
}

/* Timeline styling */
.timeline {
  position: relative;
  padding-left: 40px; /* Space for the timeline line */
}

.timeline::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: #4a4a4a;
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -28px; /* Adjust based on timeline line width */
  top: 0;
  width: 15px;
  height: 15px;
  background-color: #ff9500;
  border-radius: 50%;
  z-index: 1;
}

.timeline-item h3 {
  font-size: 1.5em;
  color: #ff9500;
  margin-bottom: 6px;
}

.timeline-item p {
  font-size: 1.1em;
  color: #cccccc;
}

/* Hide image on mobile devices */
@media (max-width: 600px) {
  .content .right img,
  .right img {
    display: none !important;
  }
}
