/* ==========================================================================
   SyncTeam - Personal Profile & Portfolio Stylesheet (KNAI.dev)
   Features: Glowing Avatar Ring, Glassmorphism Hero Card, Skill Progress Bars,
   Portfolio Showcase Grid, Work Timeline & Interactive Contact Form
   ========================================================================== */

body.profile-page {
  background-color: var(--bg-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

.profile-main-container {
  padding-top: 100px;
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  flex: 1;
  position: relative;
  z-index: 2;
}

/* HERO PROFILE BANNER CARD */
.profile-hero-card {
  padding: 42px 40px;
  display: flex;
  align-items: center;
  gap: 36px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.85) 0%,
    rgba(30, 41, 59, 0.65) 50%,
    rgba(17, 24, 39, 0.85) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .profile-hero-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(241, 245, 249, 0.85) 100%);
}

.profile-avatar-wrapper {
  position: relative;
  width: 170px;
  height: 170px;
  flex-shrink: 0;
}

.avatar-ring-glow {
  position: absolute;
  top: -6px;
  left: -6px;
  width: calc(100% + 12px);
  height: calc(100% + 12px);
  border-radius: 50%;
  background: var(--gradient-primary);
  filter: blur(12px);
  opacity: 0.65;
  animation: pulseGlow 3s infinite ease-in-out alternate;
}

.profile-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 2;
  border: 3px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.status-online-dot {
  position: absolute;
  bottom: 8px;
  right: 12px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-emerald);
  border: 3px solid var(--bg-main);
  box-shadow: 0 0 12px var(--accent-emerald);
  z-index: 3;
}

.profile-hero-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  width: fit-content;
}

.profile-name {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.profile-title-sub {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-cyan);
}

.profile-bio-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 680px;
}

.profile-social-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

.social-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.social-icon-btn:hover {
  background: var(--gradient-primary);
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

@media (max-width: 768px) {
  .profile-hero-card {
    flex-direction: column;
    text-align: center;
    padding: 32px 20px;
  }

  .availability-badge {
    margin: 0 auto;
  }

  .profile-social-row {
    justify-content: center;
  }
}

/* STATS COUNTER OVERVIEW */
.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.stat-box {
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.stat-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), 0 0 20px rgba(99, 102, 241, 0.15);
}

.stat-box-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-indigo);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.stat-box-content {
  display: flex;
  flex-direction: column;
}

.stat-count {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.825rem;
  color: var(--text-muted);
}

/* SECTION TITLES */
.profile-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section-title-wrapper {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* TECH STACK & SKILLS GRID */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.skill-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.skill-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.2);
}

.skill-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.skill-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.icon-cyan { background: rgba(6, 182, 212, 0.15); color: var(--accent-cyan); border: 1px solid rgba(6, 182, 212, 0.3); }
.icon-pink { background: rgba(236, 72, 153, 0.15); color: var(--accent-pink); border: 1px solid rgba(236, 72, 153, 0.3); }
.icon-indigo { background: rgba(99, 102, 241, 0.15); color: var(--accent-indigo); border: 1px solid rgba(99, 102, 241, 0.3); }
.icon-emerald { background: rgba(16, 185, 129, 0.15); color: var(--accent-emerald); border: 1px solid rgba(16, 185, 129, 0.3); }

.skill-title-group {
  display: flex;
  flex-direction: column;
}

.skill-title-group h3 {
  font-size: 1rem;
  font-weight: 700;
}

.skill-title-group span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.skill-level-bar {
  width: 100%;
  height: 8px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.skill-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 1s ease;
}

.fill-cyan { background: var(--accent-cyan); box-shadow: 0 0 10px var(--accent-cyan); }
.fill-pink { background: var(--accent-pink); box-shadow: 0 0 10px var(--accent-pink); }
.fill-indigo { background: var(--accent-indigo); box-shadow: 0 0 10px var(--accent-indigo); }
.fill-emerald { background: var(--accent-emerald); box-shadow: 0 0 10px var(--accent-emerald); }

/* PORTFOLIO PROJECTS SHOWCASE */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}

.project-card {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.4), 0 0 25px rgba(99, 102, 241, 0.2);
  border-color: rgba(255, 255, 255, 0.25);
}

.project-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.12);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  width: fit-content;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.project-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
}

.project-tech-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.project-tech-pills span {
  font-size: 0.725rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--text-subtle);
}

.project-actions {
  margin-top: 10px;
}

/* WORK EXPERIENCE TIMELINE */
.timeline-wrapper {
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
}

.timeline-wrapper::before {
  content: '';
  position: absolute;
  left: 45px;
  top: 40px;
  bottom: 40px;
  width: 2px;
  background: var(--border-color);
}

.timeline-item {
  position: relative;
  padding-left: 36px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.timeline-dot {
  position: absolute;
  left: 3px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-indigo);
  box-shadow: 0 0 10px var(--accent-indigo);
}

.timeline-date {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.timeline-role {
  font-size: 1.1rem;
  font-weight: 700;
}

.timeline-company {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.timeline-desc {
  font-size: 0.875rem;
  color: var(--text-subtle);
  margin-top: 4px;
}

/* CONTACT FORM */
.contact-card {
  padding: 32px 36px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.submit-btn {
  margin-top: 8px;
  padding: 14px;
}

/* TOAST NOTIFICATION */
.toast-notification {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 10000;
  background: rgba(15, 23, 42, 0.95);
  color: #ffffff;
  border: 1px solid var(--accent-indigo);
  padding: 14px 22px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(99, 102, 241, 0.3);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toast-notification.hidden {
  transform: translateY(100px);
  opacity: 0;
  pointer-events: none;
}
