/* profile.css */

/* PROFILE HERO */
.profile-hero {
  position: relative;
  text-align: center;
  padding: 60px 24px 0;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* CIRCLE AVATAR */
.avatar-wrapper {
  position: relative;
  z-index: 10;
  transition: transform 0.05s linear, opacity 0.05s linear;
  transform-origin: top center;
  margin-bottom: 20px;
}

.avatar-ring {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--clr-primary);
  box-shadow: 0 0 0 6px var(--clr-primary-light),
              var(--shadow-card);
  background: var(--clr-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.avatar-fallback {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--clr-primary);
}

     
/* FULL PHOTO REVEAL */
.photo-reveal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 4;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100%);
  transition: none;
  background: #000;
}

.photo-reveal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.0)  0%,
    rgba(0, 0, 0, 0.0)  50%,
    rgba(255, 248, 242, 0.6) 80%,
    rgba(255, 248, 242, 1.0) 100%
  );
}

/* Name overlay on full photo */
.photo-reveal::after {
  content: 'Ram Mahadev Pandhare';
  position: absolute;
  bottom: 80px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
  letter-spacing: -0.5px;
}



/* HERO INFO */
.hero-info {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-bottom: 40px;
  animation: fadeSlideUp 0.7s ease both;
}

.hero-info h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #111;
}

.hero-info .tag { margin: 0; }

/* SOCIAL LINKS */
.social-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 6px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--clr-primary-light);
  border: 1px solid var(--clr-primary-border);
  color: var(--clr-primary);
  transition: background 0.2s, transform 0.2s;
}

.social-btn:hover {
  background: rgba(232, 98, 26, 0.18);
  transform: translateY(-2px);
}

.social-btn.linkedin {
  background: rgba(0, 119, 181, 0.08);
  border-color: rgba(0, 119, 181, 0.2);
  color: #0077b5;
}

.social-btn.linkedin:hover {
  background: rgba(0, 119, 181, 0.16);
}

/* PROFILE WRAPPER */
.profile-wrapper {
  max-width: 720px;
  margin-inline: auto;
  padding: 0 24px 100px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 10;
}

/* SECTION CARDS */
.profile-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: fadeSlideUp 0.6s ease both;
}

.profile-section p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.75;
}

/* SECTION HEADER */
.section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.section-icon {
  font-size: 1.2rem;
  width: 36px;
  height: 36px;
  background: var(--clr-primary-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111;
}

/* ══════════════════════════════
   EDUCATION TIMELINE
   ══════════════════════════════ */

.edu-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* EACH BLOCK */
.edu-block {
  display: flex;
  gap: 0;
  position: relative;
}

/* LEFT — year + dot */
.edu-year-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 110px;
  flex-shrink: 0;
  padding-top: 2px;
}

.edu-period {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--clr-primary);
  letter-spacing: 0.5px;
  text-align: center;
  margin-bottom: 6px;
  white-space: nowrap;
}

.edu-big-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--clr-primary);
  border: 3px solid var(--clr-bg);
  box-shadow: 0 0 0 2px var(--clr-primary);
  flex-shrink: 0;
  z-index: 1;
}

.edu-block.current .edu-big-dot {
  background: var(--clr-primary);
  box-shadow: 0 0 0 3px var(--clr-primary-light),
              0 0 0 5px var(--clr-primary);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--clr-primary-light), 0 0 0 5px var(--clr-primary); }
  50%       { box-shadow: 0 0 0 6px var(--clr-primary-light), 0 0 0 8px rgba(232,98,26,0.2); }
}

/* Vertical line between blocks */
.edu-block:not(:last-child) .edu-year-dot::after {
  content: '';
  width: 2px;
  flex: 1;
  background: var(--clr-primary-border);
  margin-top: 6px;
  min-height: 40px;
}

/* RIGHT — content */
.edu-content {
  flex: 1;
  padding: 0 0 36px 20px;
  border-left: 2px solid var(--clr-primary-border);
  margin-left: -1px;
}

.edu-block:last-child .edu-content {
  padding-bottom: 0;
}

.edu-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 4px;
}

.edu-college {
  font-size: 0.85rem;
  color: var(--clr-primary);
  font-weight: 600;
  margin-bottom: 8px;
}

.edu-desc {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.7;
  margin-bottom: 14px;
}

/* SUB MILESTONES */
.edu-milestones {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
  padding-left: 4px;
  border-left: 2px dashed var(--clr-primary-border);
}

.edu-milestone {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-left: 14px;
  position: relative;
}

.milestone-dot {
  position: absolute;
  left: -5px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clr-primary-light);
  border: 2px solid var(--clr-primary);
  flex-shrink: 0;
}

.milestone-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #aaa;
  letter-spacing: 0.5px;
  white-space: nowrap;
  padding-top: 2px;
  min-width: 80px;
}

.edu-milestone p {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

/* CGPA BADGE */
.cgpa-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: var(--clr-primary);
  padding: 3px 10px;
  border-radius: 999px;
}

/* RESPONSIVE */
@media (max-width: 600px) {
  .hero-info h1    { font-size: 1.6rem; }
  .avatar-ring     { width: 100px; height: 100px; }
  .profile-wrapper { padding-inline: 16px; }
  .edu-year-dot    { width: 80px; }
  .edu-period      { font-size: 0.65rem; }
  .milestone-label { min-width: 60px; font-size: 0.65rem; }
  .edu-content     { padding-left: 14px; }
}
