/* ===== RESUME SPECIFIC STYLES ===== */

.resume-section {
  padding: 4rem 1.5rem;
}

.resume-header-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 3rem;
  text-align: center;
}

.resume-header-actions .header-actions {
  margin-top: 1rem;
}

/* Resume Main Container */
.resume-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem;
  border-radius: 24px;
  background: var(--dark-surface);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transition: all 0.3s ease;
}

/* Resume Header Part */
.resume-header {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 2.5rem;
}

.resume-avatar-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--gradient-1);
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3);
  font-size: 4rem;
  border: 4px solid var(--glass-border);
}

.resume-info {
  flex-grow: 1;
}

.resume-info h2 {
  font-family: "Orbitron", sans-serif;
  font-size: 2.8rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

.resume-title {
  font-size: 1.15rem;
  color: var(--primary-light);
  font-weight: 500;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.resume-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.resume-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.resume-meta i {
  color: var(--accent);
}

/* Resume Grid Layout */
.resume-body-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2.5rem;
}

.resume-sidebar, .resume-main {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Resume Card Styles */
.resume-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 1.75rem;
  transition: all 0.3s ease;
}

.resume-card:hover {
  border-color: rgba(124, 58, 237, 0.2);
  background: rgba(255, 255, 255, 0.03);
}

.resume-card h3 {
  font-family: "Orbitron", sans-serif;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 0.5rem;
  display: inline-block;
}

.resume-card h3 i {
  margin-right: 0.5rem;
  color: var(--primary-light);
}

/* Stats Layout */
.resume-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.resume-stat-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
}

.resume-stat-item .stat-icon {
  font-size: 1.5rem;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(6, 182, 212, 0.1);
  border-radius: 50%;
}

.resume-stat-item:nth-child(2) .stat-icon {
  color: var(--primary-light);
  background: rgba(167, 139, 250, 0.1);
}

.resume-stat-item:nth-child(3) .stat-icon {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
}

.resume-stat-item:nth-child(4) .stat-icon {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.stat-details {
  display: flex;
  flex-direction: column;
}

.stat-val {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-lbl {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Skills Tags */
.skills-category h4 {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.skill-tag {
  background: rgba(124, 58, 237, 0.1);
  color: var(--primary-light);
  border: 1px solid rgba(124, 58, 237, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.3s ease;
}

.skill-tag:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

/* DSA Progress bars */
.dsa-progress-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.dsa-progress-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dsa-progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.dsa-topic-name {
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.dsa-topic-pct {
  font-family: "Fira Code", monospace;
  font-weight: 500;
  color: var(--accent);
}

.dsa-progress-bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
}

.dsa-progress-bar-fill {
  height: 100%;
  background: var(--gradient-3);
  border-radius: 4px;
  width: 0%;
  transition: width 1s cubic-bezier(0.1, 0.8, 0.25, 1);
}

/* Badges Showcase Grid */
.resume-badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
}

.resume-badge-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.resume-badge-card.earned {
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.05);
}

.resume-badge-card.locked {
  opacity: 0.4;
}

.resume-badge-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.04);
}

.resume-badge-card.earned:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.15);
}

.resume-badge-icon {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}

.resume-badge-card.locked .resume-badge-icon {
  filter: grayscale(1);
}

.resume-badge-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.resume-badge-desc {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.resume-badge-lock {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Placeholders */
.loading-placeholder {
  text-align: center;
  color: var(--text-secondary);
  padding: 2rem;
  font-style: italic;
}

/* Light mode overrides */
body.light-mode .resume-container {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

body.light-mode .resume-header {
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

body.light-mode .resume-info h2 {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.light-mode .resume-title {
  color: var(--primary);
}

body.light-mode .resume-meta {
  color: #4b5563;
}

body.light-mode .resume-card {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.05);
}

body.light-mode .resume-card:hover {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(124, 58, 237, 0.15);
}

body.light-mode .resume-card h3 {
  color: #1f2937;
}

body.light-mode .resume-stat-item {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.04);
}

body.light-mode .stat-val {
  color: #1f2937;
}

body.light-mode .stat-lbl {
  color: #6b7280;
}

body.light-mode .skills-category h4 {
  color: #4b5563;
}

body.light-mode .dsa-topic-name {
  color: #1f2937;
}

body.light-mode .dsa-progress-bar-bg {
  background: rgba(0, 0, 0, 0.05);
}

body.light-mode .resume-badge-card {
  background: rgba(0, 0, 0, 0.01);
  border-color: rgba(0, 0, 0, 0.05);
}

body.light-mode .resume-badge-card.earned {
  border-color: rgba(6, 182, 212, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

body.light-mode .resume-badge-card.earned:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.1);
}

body.light-mode .resume-badge-name {
  color: #1f2937;
}

body.light-mode .resume-badge-desc {
  color: #6b7280;
}

/* Responsiveness */
@media (max-width: 768px) {
  .resume-container {
    padding: 1.5rem;
    border-radius: 16px;
  }

  .resume-header {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .resume-meta {
    justify-content: center;
    gap: 1rem;
  }

  .resume-body-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .resume-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .resume-stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-family: "Poppins", Helvetica, Arial, sans-serif !important;
  }

  /* Hide UI elements that shouldn't be printed */
  .navbar,
  .footer,
  #scrollTopBtn,
  .resume-header-actions,
  .hero-background,
  .spacer {
    display: none !important;
  }

  /* Reset main container layout */
  .resume-section {
    padding: 0 !important;
    margin: 0 !important;
  }

  .resume-container {
    background: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .resume-header {
    border-bottom: 2px solid #000000 !important;
    padding-bottom: 1.5rem !important;
    margin-bottom: 1.5rem !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    text-align: left !important;
  }

  .resume-avatar-container {
    width: 90px !important;
    height: 90px !important;
    font-size: 2.75rem !important;
    border: 2px solid #000000 !important;
    background: #f3f4f6 !important;
    box-shadow: none !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .resume-info h2 {
    font-size: 2.2rem !important;
    color: #000000 !important;
    background: none !important;
    -webkit-text-fill-color: initial !important;
  }

  .resume-title {
    color: #4b5563 !important;
    font-size: 1rem !important;
  }

  .resume-meta {
    color: #4b5563 !important;
    font-size: 0.85rem !important;
  }

  .resume-body-grid {
    grid-template-columns: 1fr 2fr !important;
    gap: 1.5rem !important;
  }

  .resume-card {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    padding: 1.25rem !important;
    page-break-inside: avoid;
    border-radius: 8px !important;
  }

  .resume-card h3 {
    color: #000000 !important;
    border-bottom: 2px solid #000000 !important;
    font-size: 1.1rem !important;
    margin-bottom: 1rem !important;
  }

  /* Stats on print */
  .resume-stats-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.5rem !important;
  }

  .resume-stat-item {
    background: #f9fafb !important;
    border: 1px solid #e5e7eb !important;
    padding: 0.5rem !important;
    border-radius: 6px !important;
  }

  .stat-val {
    color: #000000 !important;
    font-size: 1rem !important;
  }

  /* Skills tag lists */
  .skill-tag {
    background: #f3f4f6 !important;
    color: #1f2937 !important;
    border: 1px solid #d1d5db !important;
    padding: 0.25rem 0.6rem !important;
    font-size: 0.75rem !important;
    border-radius: 4px !important;
  }

  /* Progress bars on print */
  .dsa-progress-bar-bg {
    background: #e5e7eb !important;
    border: 1px solid #d1d5db !important;
    height: 10px !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .dsa-progress-bar-fill {
    background: #4f46e5 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .dsa-topic-name {
    color: #000000 !important;
    font-size: 0.8rem !important;
  }

  .dsa-topic-pct {
    color: #000000 !important;
    font-size: 0.8rem !important;
  }

  /* Badges on print */
  .resume-badges-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 0.5rem !important;
  }

  .resume-badge-card {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    padding: 0.5rem !important;
    border-radius: 6px !important;
    page-break-inside: avoid;
  }

  .resume-badge-card.locked {
    display: none !important; /* hide locked badges when printing to focus on achievements */
  }

  .resume-badge-name {
    color: #000000 !important;
    font-size: 0.75rem !important;
  }

  .resume-badge-desc {
    font-size: 0.6rem !important;
    color: #4b5563 !important;
  }

  .resume-badge-icon {
    font-size: 1.5rem !important;
  }
}
