* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  line-height: 1.6;
  color: #1a1a1a;
  background: #f8fafc;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  font-weight: 400;
  letter-spacing: -0.01em;
}


.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 30px;
  position: relative;
  z-index: 1;
}

header {
  text-align: center;
  color: #1a1a1a;
  padding: 40px 0 30px;
  margin-bottom: 30px;
}

.profile-img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: #f1f5f9;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  font-weight: 600;
  color: white;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

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

.profile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
}

h1 {
  font-size: 2.25rem;
  margin-bottom: 8px;
  color: #1a1a1a;
  font-weight: 700;
  letter-spacing: -0.02em;
  animation: fadeInUp 1s ease-out;
}

.subtitle {
  font-size: 1.1rem;
  color: #64748b;
  margin-bottom: 20px;
  font-weight: 500;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.contact-info {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.header-quote {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 0.95rem;
  color: #94a3b8;
  font-weight: 400;
  margin-top: 4px;
  animation: fadeInUp 1s ease-out 0.6s both;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #475569;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.contact-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

.contact-item i {
  font-size: 1.3rem;
}

.contact-item.location {
  font-size: 1rem;
}

.contact-item.location i {
  font-size: 1.1rem;
}

/* Contact item brand colors */
.contact-item.email { color: #64748b; }
.contact-item.email:hover { color: #EA4335; }

.contact-item.github { color: #64748b; }
.contact-item.github:hover { color: #1a1a1a; }

.contact-item.linkedin { color: #64748b; }
.contact-item.linkedin:hover { color: #0A66C2; }

.contact-item.cv { color: #64748b; }
.contact-item.cv:hover { color: #dc2626; }

/* ==================== SECTIONS BENTO GRID ==================== */
.sections-grid {
  display: flex;
  flex-direction: column;
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
  margin-bottom: 50px;
}

/* Section highlight when navigated from navbar */
.sections-grid > .collapsible.collapsed.section-highlight {
  box-shadow: inset 3px 0 0 #1a1a1a;
  background: rgba(0, 0, 0, 0.04) !important;
  transition: none;
  animation: sectionPulse 2s ease-out forwards;
}

@keyframes sectionPulse {
  0% { box-shadow: inset 3px 0 0 #1a1a1a; background: rgba(0, 0, 0, 0.04); }
  100% { box-shadow: inset 3px 0 0 transparent; background: transparent; }
}

body.dark-mode .sections-grid > .collapsible.collapsed.section-highlight {
  box-shadow: inset 3px 0 0 #f1f5f9;
  background: rgba(255, 255, 255, 0.05) !important;
  animation: sectionPulseDark 2s ease-out forwards;
}

@keyframes sectionPulseDark {
  0% { box-shadow: inset 3px 0 0 #f1f5f9; background: rgba(255, 255, 255, 0.05); }
  100% { box-shadow: inset 3px 0 0 transparent; background: transparent; }
}

/* Collapsed accordion item */
.sections-grid > .collapsible.collapsed {
  background: transparent;
  border: none;
  border-bottom: 1px solid #e2e8f0;
  border-left: none;
  border-radius: 0;
  padding: 22px 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: none;
  min-height: 0;
}

.sections-grid > .collapsible.collapsed:hover {
  background: rgba(0, 0, 0, 0.02);
  transform: none;
  box-shadow: none;
}

.sections-grid > .collapsible.collapsed h2 {
  font-size: 1.1rem;
  margin-bottom: 0;
}

.sections-grid > .collapsible.collapsed h2::after {
  display: none;
}

/* Expanded section - hidden, content moves to modal */
.sections-grid > .collapsible:not(.collapsed) {
  display: none;
}

/* ==================== SECTION MODAL ==================== */
.section-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  overflow-y: auto;
}

.section-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.section-modal {
  background: #ffffff;
  border-radius: 0;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  padding: 48px 60px;
  position: relative;
  transform: translateY(30px);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: none;
  margin: 0;
}

.section-modal-overlay.active .section-modal {
  transform: translateY(0);
}

.section-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e2e8f0;
}

.section-modal-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
}

.section-modal-title::after {
  display: none;
}

.section-modal-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #f1f5f9;
  color: #64748b;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.section-modal-close:hover {
  background: #e2e8f0;
  color: #1a1a1a;
}

.section-modal-body {
  color: #1a1a1a;
}

/* Dark mode modal */
body.dark-mode .section-modal {
  background: #1e293b;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

body.dark-mode .section-modal-header {
  border-bottom-color: #334155;
}

body.dark-mode .section-modal-title {
  color: #f1f5f9;
}

body.dark-mode .section-modal-close {
  background: #334155;
  color: #94a3b8;
}

body.dark-mode .section-modal-close:hover {
  background: #475569;
  color: #f1f5f9;
}

body.dark-mode .section-modal-body {
  color: #e2e8f0;
}

/* Section icon */
.section-icon-circle {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 14px;
  transition: all 0.3s ease;
  background: none;
}

.section-icon-circle i {
  font-size: 1.15rem;
  color: #94a3b8;
  filter: none;
}

.collapsible.collapsed:hover .section-icon-circle i {
  color: #1e293b;
}

/* Subtitle text */
.section-subtitle {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
  color: #64748b;
  margin-top: 2px;
  letter-spacing: 0;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.collapsible.collapsed .section-subtitle {
  opacity: 1;
  max-height: 30px;
}

/* Hide icon circle when expanded */
.collapsible:not(.collapsed) .section-icon-circle {
  display: none;
}

.collapsible:not(.collapsed) .section-subtitle {
  display: none;
}

/* Heading layout with icon */
.collapsible h2 .heading-content {
  display: flex;
  align-items: center;
  min-width: 0;
}

.collapsible h2 .heading-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* ==================== SECTION ACCENT COLORS ==================== */

/* ==================== DARK MODE - BENTO GRID ==================== */
body.dark-mode .sections-grid > .collapsible.collapsed {
  background: transparent;
  border-color: #334155;
}

body.dark-mode .sections-grid > .collapsible.collapsed:hover {
  background: rgba(255, 255, 255, 0.03);
}

body.dark-mode .sections-grid > .collapsible:not(.collapsed) {
  background: #1e293b;
  border-color: #334155;
}

body.dark-mode .section-subtitle {
  color: #94a3b8;
}

body.dark-mode .section-icon-circle i {
  color: #64748b;
}

body.dark-mode .collapsible.collapsed:hover .section-icon-circle i {
  color: #e2e8f0;
}

body.dark-mode .sections-grid > .collapsible.collapsed h2 {
  color: #f1f5f9;
}

.card {
  background: #ffffff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
}

.card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

h2 {
  color: #1a1a1a;
  margin-bottom: 35px;
  font-size: 2.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  position: relative;
}

h2::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2px;
  background: #1e293b;
  border-radius: 2px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.mobile-full-width {
  grid-column: 1 / -1;
}

.mobile-frameworks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
  margin-top: 25px;
}

.framework-section {
  background: #f8fafc;
  padding: 30px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.framework-section:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.framework-section h4 {
  color: #1a1a1a;
  margin-bottom: 20px;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.skill-group-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 20px 0 10px;
}

.skill-group-label:first-of-type {
  margin-top: 0;
}

body.dark-mode .skill-group-label {
  color: #94a3b8;
}


.skill-category {
  background: transparent;
  padding: 30px;
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.6);
  transition: all 0.3s ease;
}

.skill-category:hover {
  transform: translateY(-2px);
}

.skill-category h3 {
  color: #1a1a1a;
  margin-bottom: 20px;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skill-tag {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  cursor: default;
  letter-spacing: -0.01em;
}

.skill-tag.icon-only {
  width: 70px;
  height: auto;
  padding: 12px 8px 10px;
  border-radius: 14px;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 6px;
  position: relative;
  cursor: pointer;
  background: linear-gradient(145deg, #ffffff, #f0f4f8);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.05),
    0 1px 3px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
}

.skill-tag.icon-only i {
  font-size: 3rem;
  transition: all 0.3s ease;
}

.skill-tag.icon-only .skill-name {
  font-size: 0.65rem;
  font-weight: 500;
  color: #64748b;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Devicons use their own colored class for brand colors */
.skill-tag.icon-only i[class*="devicon-"] {
  /* Let devicons use their native colors via the 'colored' class */
}

/* Font Awesome icons get dark color */
.skill-tag.icon-only i[class*="fa-"] {
  color: #475569;
}

.skill-tag.icon-only::after {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: rgba(15, 23, 42, 0.95);
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
  z-index: 100;
}

.skill-tag.icon-only::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(2px);
  border: 6px solid transparent;
  border-top-color: rgba(15, 23, 42, 0.95);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
  z-index: 100;
}

.skill-tag.icon-only:hover::after,
.skill-tag.icon-only:hover::before {
  opacity: 1;
  visibility: visible;
}

.skill-tag:hover {
  transform: scale(1.05) translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.skill-tag.icon-only:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  border-color: #cbd5e1;
}

.skill-tag i {
  font-size: 1rem;
}

.experience-item {
  margin-bottom: 40px;
  padding: 35px;
  background: rgba(248, 250, 252, 0.6);
  backdrop-filter: blur(5px);
  border-radius: 12px;
  border-left: 4px solid #2563eb;
  border: 1px solid rgba(226, 232, 240, 0.6);
  transition: all 0.3s ease;
}

.experience-item:hover {
  background: rgba(248, 250, 252, 0.9);
  transform: translateX(4px);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.08);
}

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.job-title {
  font-size: 1.375rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.company {
  color: #64748b;
  font-style: italic;
  font-size: 1rem;
  font-weight: 400;
}

.date-location {
  text-align: right;
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 400;
}

.achievements {
  list-style: none;
}

.achievements li {
  margin-bottom: 12px;
  padding-left: 25px;
  position: relative;
  font-size: 1rem;
  font-weight: 400;
  color: #374151;
  transition: color 0.3s ease;
  line-height: 1.6;
}

.achievements li:hover {
  color: #2563eb;
}

.achievements li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Profiles Section */
.profiles-intro {
  text-align: center;
  color: #64748b;
  margin-bottom: 25px;
  font-size: 1rem;
}

.profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  backdrop-filter: blur(5px);
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.6);
  text-decoration: none;
  transition: all 0.3s ease;
  gap: 12px;
}

.profile-card i {
  font-size: 1.8rem;
  color: white;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #475569, #334155);
  box-shadow:
    0 4px 12px rgba(71, 85, 105, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.profile-card span {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  transition: all 0.3s ease;
}

.profile-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-4px);
  background: rgba(248, 250, 252, 0.95);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.profile-card:hover i {
  transform: scale(1.05) translateY(-2px);
  box-shadow:
    0 8px 20px rgba(71, 85, 105, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.profile-card:hover span {
  color: #1e293b;
}

/* Profile brand colors */
.profile-card.leetcode i {
  background: linear-gradient(135deg, #FFA116, #FF8C00);
  box-shadow: 0 4px 12px rgba(255, 161, 22, 0.4);
}

.profile-card.hackerrank i {
  background: linear-gradient(135deg, #00EA64, #00C853);
  box-shadow: 0 4px 12px rgba(0, 234, 100, 0.4);
}

.profile-card.googleplay i {
  background: linear-gradient(135deg, #34A853, #4285F4);
  box-shadow: 0 4px 12px rgba(66, 133, 244, 0.4);
}

.profile-card.appstore i {
  background: linear-gradient(135deg, #007AFF, #5856D6);
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.4);
}

.profile-card.credly i {
  background: linear-gradient(135deg, #FF6B00, #FF8C00);
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.4);
}

.profile-card.stackoverflow i {
  background: linear-gradient(135deg, #F48024, #BCBBBB);
  box-shadow: 0 4px 12px rgba(244, 128, 36, 0.4);
}

/* Hover effects for brand colors */
.profile-card.leetcode:hover i {
  box-shadow: 0 8px 20px rgba(255, 161, 22, 0.5);
}

.profile-card.hackerrank:hover i {
  box-shadow: 0 8px 20px rgba(0, 234, 100, 0.5);
}

.profile-card.googleplay:hover i {
  box-shadow: 0 8px 20px rgba(66, 133, 244, 0.5);
}

.profile-card.appstore:hover i {
  box-shadow: 0 8px 20px rgba(0, 122, 255, 0.5);
}

.profile-card.credly:hover i {
  box-shadow: 0 8px 20px rgba(255, 107, 0, 0.5);
}

.profile-card.stackoverflow:hover i {
  box-shadow: 0 8px 20px rgba(244, 128, 36, 0.5);
}

.languages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.language-item {
  text-align: center;
  padding: 24px 20px;
  background: rgba(248, 250, 252, 0.6);
  backdrop-filter: blur(5px);
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.6);
  transition: all 0.3s ease;
}

.language-item:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
  background: rgba(248, 250, 252, 0.9);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.language-name {
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.language-flag {
  width: 60px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.language-level {
  color: #475569;
  font-size: 0.875rem;
  font-weight: 600;
  background: rgba(100, 116, 139, 0.1);
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 8px;
}

.language-context {
  color: #64748b;
  font-size: 0.8rem;
  font-style: italic;
  margin-top: 4px;
}

.cta-section {
  text-align: center;
  padding: 60px 50px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  backdrop-filter: blur(10px);
  color: white;
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Override collapsed card style for CTA */
.sections-grid > .cta-section.collapsed {
  background: transparent;
  border: none;
  border-bottom: 1px solid #e2e8f0;
  color: inherit;
}

.sections-grid > .cta-section.collapsed h2 {
  color: #1a1a1a;
}

body.dark-mode .sections-grid > .cta-section.collapsed {
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(51, 65, 85, 0.5);
}

body.dark-mode .sections-grid > .cta-section.collapsed h2 {
  color: #f1f5f9;
}

.cta-section:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.25);
}

.cta-section h2 {
  color: white;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.cta-section h2::after {
  background: rgba(255, 255, 255, 0.3);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  color: #2563eb;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  margin: 15px;
  transition: all 0.3s ease;
  font-size: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  letter-spacing: -0.01em;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cta-button i {
  font-size: 1.2rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.3);
  transition: all 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  background: white;
  border-color: rgba(255, 255, 255, 0.3);
}

.cta-button:hover i {
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4);
}

/* CTA button brand colors */
.cta-button.email i {
  background: linear-gradient(135deg, #EA4335, #DC2626);
  box-shadow: 0 3px 10px rgba(234, 67, 53, 0.4);
}

.cta-button.email:hover i {
  box-shadow: 0 5px 15px rgba(234, 67, 53, 0.5);
}

.cta-button.linkedin i {
  background: linear-gradient(135deg, #0A66C2, #004182);
  box-shadow: 0 3px 10px rgba(10, 102, 194, 0.4);
}

.cta-button.linkedin:hover i {
  box-shadow: 0 5px 15px rgba(10, 102, 194, 0.5);
}

/* Projects Subsections */
.projects-subsection {
  margin-bottom: 40px;
}

.projects-subsection:last-child {
  margin-bottom: 0;
}

.subsection-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 20px;
  padding-left: 12px;
  border-left: 4px solid;
}

.shipped-title {
  border-color: #1e293b;
  color: #1e293b;
}

.in-progress-title {
  border-color: #94a3b8;
  color: #64748b;
}

/* Project Cards */
.project-card {
  backdrop-filter: blur(10px);
  color: #1a1a1a;
  padding: 35px;
  border-radius: 12px;
  margin: 15px 0;
  transition: all 0.3s ease;
}

.project-card.shipped {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: inherit;
}

.project-card.shipped:hover {
  transform: translateY(-3px);
  border-color: #cbd5e1;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.project-card.in-progress {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  color: inherit;
}

.project-card.in-progress:hover {
  transform: translateY(-3px);
  border-color: #94a3b8;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.project-card h4 {
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.project-card p {
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 16px;
}

.project-card a {
  color: #1e293b;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.project-card a:hover {
  color: #475569;
}

body.dark-mode .project-card a {
  color: #e2e8f0;
}

body.dark-mode .project-card a:hover {
  color: #94a3b8;
}

/* Store Badges */
.project-store-badges {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.store-badge {
  height: 40px;
  width: auto;
  transition: transform 0.2s ease;
}

.store-badge:hover {
  transform: scale(1.05);
}

.store-badge-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.store-badge-soon .badge-label {
  font-size: 0.7rem;
  color: #94a3b8;
  font-style: italic;
}

/* Legacy support */
.project-placeholder {
  background: linear-gradient(135deg, #dc2626 0%, #ea580c 100%);
  backdrop-filter: blur(10px);
  color: white;
  text-align: center;
  padding: 50px;
  border-radius: 16px;
  margin: 30px 0;
  transition: all 0.3s ease;
}

.project-placeholder:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(220, 38, 38, 0.25);
}

.project-placeholder h3 {
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.project-placeholder p {
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 16px;
}

/* ==================== RESPONSIVE DESIGN ==================== */

/* Large Tablets and Small Desktops */
@media (max-width: 1200px) {
  .container {
    max-width: 100%;
    padding: 25px;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2rem;
  }

  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .contact-info {
    gap: 25px;
  }
}

/* Tablets */
@media (max-width: 992px) {
  .container {
    padding: 20px;
  }

  header {
    padding: 120px 0 60px;
    margin-bottom: 30px;
  }

  h1 {
    font-size: 2.75rem;
  }

  .subtitle {
    font-size: 1.25rem;
  }

  .profile-img {
    width: 150px;
    height: 150px;
    margin-bottom: 30px;
  }

  .card {
    padding: 30px;
  }

  .sections-grid {
    gap: 16px;
  }

  .cta-section {
    padding: 50px 40px;
  }

  .cta-section h2 {
    font-size: 1.875rem;
  }

  .experience-item {
    padding: 25px;
  }

  .framework-section {
    padding: 20px;
  }

  .volunteer-section {
    padding: 25px;
  }
}

/* Small Tablets and Large Phones */
@media (max-width: 768px) {
  .section-modal {
    padding: 30px 25px;
  }

  .sections-grid {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }

  .sections-grid > .collapsible.collapsed h2 {
    font-size: 1.1rem;
  }

  .section-icon-circle {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    margin-right: 12px;
  }

  .section-icon-circle i {
    font-size: 1rem;
  }

  header {
    padding: 100px 0 50px;
    margin-bottom: 25px;
  }

  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.75rem;
    margin-bottom: 25px;
  }

  .subtitle {
    font-size: 1.125rem;
    margin-bottom: 30px;
  }

  .profile-img {
    width: 130px;
    height: 130px;
    margin-bottom: 25px;
  }

  .contact-info {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .contact-item {
    width: 100%;
    max-width: 300px;
    justify-content: center;
    padding: 12px 20px;
    font-size: 1rem;
  }

  .container {
    padding: 15px;
  }

  .card {
    padding: 25px;
    border-radius: 12px;
  }

  .card:hover {
    transform: none;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .mobile-frameworks {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .framework-section {
    padding: 20px;
  }

  .skill-category {
    padding: 20px;
  }

  .skill-tags {
    gap: 8px;
  }

  .skill-tag {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  .skill-tag.icon-only {
    width: 60px;
    height: auto;
    padding: 10px 6px 8px;
  }

  .skill-tag.icon-only i {
    font-size: 1.4rem;
  }

  .skill-tag.icon-only .skill-name {
    font-size: 0.55rem;
  }

  .experience-item {
    padding: 20px;
    margin-bottom: 20px;
  }

  .experience-item:hover {
    transform: none;
  }

  .experience-header {
    flex-direction: column;
  }

  .job-title {
    font-size: 1.2rem;
  }

  .date-location {
    text-align: left;
    margin-top: 10px;
    font-size: 0.85rem;
  }

  .achievements li {
    font-size: 0.95rem;
    padding-left: 20px;
  }

  .languages-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .language-item {
    padding: 20px 15px;
  }

  .cta-section {
    padding: 40px 25px;
    margin-top: 30px;
    border-radius: 12px;
  }

  .cta-section h2 {
    font-size: 1.5rem;
  }

  .cta-section .cta-description {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .cta-button {
    display: block;
    width: 100%;
    max-width: 280px;
    margin: 10px auto;
    padding: 14px 24px;
    font-size: 0.95rem;
  }

  .project-placeholder {
    padding: 35px 25px;
  }

  .project-placeholder h3 {
    font-size: 1.25rem;
  }

  .volunteer-section {
    padding: 20px;
  }

  .volunteer-title {
    font-size: 1.125rem;
  }

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .about-stat {
    padding: 16px 10px;
  }

  .about-stat-value {
    font-size: 1.5rem;
  }

  .about-text {
    font-size: 1rem;
  }

  .education-title {
    font-size: 1.2rem;
  }

  .education-degree {
    font-size: 1rem;
  }

  .scroll-top-btn {
    width: 45px;
    height: 45px;
    bottom: 20px;
    right: 20px;
    font-size: 1rem;
  }

  #particles-canvas {
    opacity: 0.7;
  }
}

/* Small Phones */
@media (max-width: 480px) {
  .section-modal {
    padding: 20px 16px;
  }

  .sections-grid {
    padding: 0 12px;
    gap: 12px;
  }

  .sections-grid > .collapsible.collapsed {
    padding: 20px 18px;
  }

  .sections-grid > .collapsible.collapsed h2 {
    font-size: 1rem;
  }

  .section-icon-circle {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    margin-right: 10px;
  }

  .section-icon-circle i {
    font-size: 0.85rem;
  }

  .section-subtitle {
    font-size: 0.7rem;
  }

  header {
    padding: 90px 0 40px;
  }

  h1 {
    font-size: 1.875rem;
  }

  h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }

  .subtitle {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .profile-img {
    width: 110px;
    height: 110px;
    margin-bottom: 20px;
  }

  .container {
    padding: 12px;
  }

  .card {
    padding: 20px;
    border-radius: 10px;
  }

  .contact-item {
    padding: 10px 15px;
    font-size: 0.9rem;
  }

  .contact-item i {
    font-size: 1.1rem;
  }

  .skill-category h3 {
    font-size: 1.1rem;
  }

  .framework-section h4 {
    font-size: 1rem;
    margin-bottom: 15px;
  }

  .skill-tag {
    padding: 5px 10px;
    font-size: 0.75rem;
    gap: 5px;
  }

  .skill-tag i {
    font-size: 0.85rem;
  }

  .skill-tag.icon-only {
    width: 55px;
    height: auto;
    padding: 8px 4px 6px;
  }

  .skill-tag.icon-only i {
    font-size: 1.2rem;
  }

  .skill-tag.icon-only .skill-name {
    font-size: 0.5rem;
  }

  .experience-item {
    padding: 15px;
  }

  .job-title {
    font-size: 1.1rem;
  }

  .company {
    font-size: 0.9rem;
  }

  .achievements li {
    font-size: 0.9rem;
    padding-left: 18px;
    margin-bottom: 10px;
  }

  .achievements li::before {
    font-size: 0.7rem;
  }

  .languages-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .language-item {
    padding: 15px 10px;
  }

  .language-name {
    font-size: 0.9rem;
  }

  .language-level {
    font-size: 0.8rem;
  }

  .cta-section {
    padding: 30px 20px;
  }

  .cta-section h2 {
    font-size: 1.25rem;
  }

  .cta-section .cta-description {
    font-size: 0.9rem;
  }

  .cta-button {
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  .project-placeholder {
    padding: 25px 20px;
  }

  .project-placeholder h3 {
    font-size: 1.125rem;
  }

  .project-placeholder p {
    font-size: 0.9rem;
  }

  .volunteer-section {
    padding: 15px;
  }

  .volunteer-list li {
    font-size: 0.9rem;
  }

  .about-text {
    font-size: 0.95rem;
  }

  .education-title {
    font-size: 1.1rem;
  }

  .education-degree {
    font-size: 0.95rem;
  }

  .education-description {
    font-size: 0.9rem;
  }

  .scroll-top-btn {
    width: 40px;
    height: 40px;
    bottom: 15px;
    right: 15px;
    font-size: 0.9rem;
    border-radius: 10px;
  }

  #particles-canvas {
    opacity: 0.5;
  }
}

/* Extra Small Phones */
@media (max-width: 360px) {
  h1 {
    font-size: 1.625rem;
  }

  h2 {
    font-size: 1.375rem;
  }

  .profile-img {
    width: 100px;
    height: 100px;
  }

  .container {
    padding: 10px;
  }

  .card {
    padding: 15px;
  }

  .languages-grid {
    grid-template-columns: 1fr;
  }

  .skill-tag {
    padding: 4px 8px;
    font-size: 0.7rem;
  }

  .skill-tag.icon-only {
    width: 50px;
    height: auto;
    padding: 6px 3px 5px;
    gap: 4px;
  }

  .skill-tag.icon-only i {
    font-size: 1rem;
  }

  .skill-tag.icon-only .skill-name {
    font-size: 0.45rem;
  }

  .cta-section h2 {
    font-size: 1.125rem;
  }
}

/* Enhanced Animations */
.fade-in {
  animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Performance optimizations */
.container {
  will-change: transform;
}

#particles-canvas {
  will-change: contents;
}

/* About section */
.about-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.about-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  transition: border-color 0.2s;
}

.about-stat:hover {
  border-color: #cbd5e1;
}

.about-stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1;
  margin-bottom: 6px;
}

.about-stat-label {
  font-size: 0.8rem;
  color: #64748b;
  text-align: center;
  line-height: 1.3;
}

.about-text {
  font-size: 1.05rem;
  color: #4b5563;
  line-height: 1.7;
  font-weight: 400;
}

/* Education section */
.education-title {
  color: #1a1a1a;
  margin-bottom: 15px;
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.education-degree {
  color: #4b5563;
  margin-bottom: 8px;
  font-size: 1.125rem;
  font-weight: 500;
}

.education-description {
  color: #6b7280;
  line-height: 1.6;
  font-size: 1rem;
  font-weight: 400;
}

.volunteer-section {
  background: #f8fafc;
  padding: 32px;
  border-radius: 12px;
  margin-top: 25px;
  border: 1px solid #e2e8f0;
}

.volunteer-title {
  color: #1a1a1a;
  margin-bottom: 20px;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.volunteer-list {
  list-style: none;
  padding-left: 0;
}

.volunteer-list li {
  margin-bottom: 12px;
  font-size: 1rem;
  color: #374151;
  font-weight: 400;
}

.volunteer-list li:last-child {
  margin-bottom: 0;
}

/* CTA section headings */
.cta-section h2 {
  color: white;
  margin-bottom: 25px;
  font-size: 2.25rem;
  font-weight: 600;
}

.cta-section .cta-description {
  font-size: 1.125rem;
  margin-bottom: 35px;
  opacity: 0.9;
  font-weight: 400;
}

/* Education container */
.education-block {
  margin-bottom: 25px;
}

/* ==================== NAVIGATION ==================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  padding: 0 30px;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2563eb;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-link {
  color: #1a1a1a;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: #1a1a1a;
  background: rgba(0, 0, 0, 0.05);
}

.nav-link.active {
  color: #1a1a1a;
  font-weight: 700;
  background: none;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: #1a1a1a;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.dark-mode-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.toggle-track {
  display: flex;
  align-items: center;
  width: 60px;
  height: 30px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 30px;
  position: relative;
  padding: 0 8px;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.08),
    inset 0 1px 1px rgba(255, 255, 255, 0.6),
    inset 0 -1px 1px rgba(0, 0, 0, 0.04);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.toggle-track i {
  font-size: 0.8rem;
  z-index: 1;
  transition: all 0.5s ease;
}

.toggle-track .fa-sun {
  color: #f59e0b;
  filter: drop-shadow(0 0 5px rgba(245, 158, 11, 0.6));
}

.toggle-track .fa-moon {
  color: rgba(148, 163, 184, 0.5);
  filter: none;
}

.toggle-thumb {
  position: absolute;
  left: 3px;
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.1),
    inset 0 1px 1px rgba(255, 255, 255, 0.8);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-mode .toggle-track {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.25),
    inset 0 1px 1px rgba(255, 255, 255, 0.08),
    inset 0 -1px 1px rgba(0, 0, 0, 0.1);
}

body.dark-mode .toggle-track .fa-sun {
  color: rgba(148, 163, 184, 0.3);
  filter: none;
}

body.dark-mode .toggle-track .fa-moon {
  color: #fcd34d;
  filter: drop-shadow(0 0 5px rgba(252, 211, 77, 0.5));
}

body.dark-mode .toggle-thumb {
  left: calc(100% - 27px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.25),
    inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.dark-mode-toggle:hover .toggle-track {
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.12),
    inset 0 1px 1px rgba(255, 255, 255, 0.7),
    inset 0 -1px 1px rgba(0, 0, 0, 0.04);
}

body.dark-mode .dark-mode-toggle:hover .toggle-track {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.35),
    inset 0 1px 1px rgba(255, 255, 255, 0.12),
    inset 0 -1px 1px rgba(0, 0, 0, 0.1);
}

/* Tablet Navigation */
@media (max-width: 992px) {
  .nav-link {
    padding: 6px 12px;
    font-size: 0.85rem;
  }

  .navbar {
    padding: 0 20px;
  }
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .navbar {
    padding: 0 15px;
  }

  .nav-container {
    height: 60px;
  }

  .nav-logo {
    font-size: 1.25rem;
  }

  .nav-menu {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 15px;
    gap: 5px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    padding: 12px 15px;
    font-size: 1rem;
    border-radius: 8px;
  }

  .toggle-track {
    width: 48px;
    height: 26px;
  }

  .toggle-thumb {
    width: 20px;
    height: 20px;
  }

  body.dark-mode .toggle-thumb {
    left: calc(100% - 23px);
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

@media (max-width: 480px) {
  .nav-container {
    height: 55px;
  }

  .nav-menu {
    top: 55px;
    padding: 12px;
  }

  .nav-logo {
    font-size: 1.125rem;
  }

  .toggle-track {
    width: 44px;
    height: 24px;
  }

  .toggle-track i {
    font-size: 0.65rem;
  }

  .toggle-thumb {
    width: 18px;
    height: 18px;
  }

  body.dark-mode .toggle-thumb {
    left: calc(100% - 21px);
  }
}

/* Adjust header for fixed navbar */
header {
  padding-top: 150px;
}

/* ==================== SCROLL TO TOP BUTTON ==================== */
.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

/* ==================== DARK MODE ==================== */
body.dark-mode {
  background: #0f172a;
  color: #e2e8f0;
}

body.dark-mode .navbar {
  background: rgba(15, 23, 42, 0.95);
  border-bottom-color: rgba(51, 65, 85, 0.5);
}

body.dark-mode .nav-logo {
  color: #60a5fa;
}

body.dark-mode .nav-link {
  color: #f1f5f9;
}

body.dark-mode .nav-link:hover {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.05);
}

body.dark-mode .nav-link.active {
  color: #f1f5f9;
  font-weight: 700;
  background: none;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}

body.dark-mode .nav-toggle span {
  background: #e2e8f0;
}

body.dark-mode .nav-menu {
  background: rgba(15, 23, 42, 0.98);
  border-bottom-color: rgba(51, 65, 85, 0.5);
}


body.dark-mode h1,
body.dark-mode .job-title,
body.dark-mode .language-name,
body.dark-mode .subtitle,
body.dark-mode .header-quote {
  color: #f1f5f9;
}

body.dark-mode .language-level {
  color: #e2e8f0;
  background: rgba(100, 116, 139, 0.2);
}

body.dark-mode .language-context {
  color: #94a3b8;
}

body.dark-mode h2 {
  color: #fcd34d;
}

body.dark-mode h3,
body.dark-mode h4,
body.dark-mode .skill-category h3,
body.dark-mode .framework-section h4 {
  color: #fde68a;
}

body.dark-mode .company,
body.dark-mode .date-location {
  color: #94a3b8;
}

body.dark-mode .card {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(51, 65, 85, 0.5);
}

body.dark-mode .card:hover {
  background: rgba(30, 41, 59, 0.95);
}

body.dark-mode .about-stat {
  background: rgba(51, 65, 85, 0.3);
  border-color: #334155;
}

body.dark-mode .about-stat:hover {
  border-color: #475569;
}

body.dark-mode .about-stat-value {
  color: #f1f5f9;
}

body.dark-mode .about-stat-label {
  color: #94a3b8;
}

body.dark-mode .about-text,
body.dark-mode .achievements li,
body.dark-mode .education-description {
  color: #cbd5e1;
}

body.dark-mode .skill-category,
body.dark-mode .experience-item,
body.dark-mode .language-item,
body.dark-mode .framework-section {
  background: rgba(51, 65, 85, 0.3);
  border-color: rgba(71, 85, 105, 0.5);
}

body.dark-mode .skill-category:hover,
body.dark-mode .experience-item:hover,
body.dark-mode .language-item:hover,
body.dark-mode .framework-section:hover {
  background: rgba(51, 65, 85, 0.5);
  border-color: #94a3b8;
}

body.dark-mode .volunteer-section {
  background: rgba(51, 65, 85, 0.3);
  border-color: rgba(71, 85, 105, 0.5);
}

body.dark-mode .volunteer-list li {
  color: #cbd5e1;
}

body.dark-mode .education-title,
body.dark-mode .volunteer-title {
  color: #f1f5f9;
}

body.dark-mode .education-degree {
  color: #94a3b8;
}

body.dark-mode .contact-item {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

body.dark-mode .contact-item:hover {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
}

body.dark-mode .contact-item.location {
  color: #94a3b8;
}

/* Dark mode contact brand colors */
body.dark-mode .contact-item.email {
  color: #f87171;
  background: rgba(248, 113, 113, 0.15);
  border-color: rgba(248, 113, 113, 0.3);
}

body.dark-mode .contact-item.email:hover {
  background: rgba(248, 113, 113, 0.25);
  box-shadow: 0 8px 25px rgba(248, 113, 113, 0.2);
  color: #fca5a5;
}

body.dark-mode .contact-item.github {
  color: #e2e8f0;
  background: rgba(226, 232, 240, 0.1);
  border-color: rgba(226, 232, 240, 0.2);
}

body.dark-mode .contact-item.github:hover {
  background: rgba(226, 232, 240, 0.2);
  box-shadow: 0 8px 25px rgba(226, 232, 240, 0.15);
  color: #f8fafc;
}

body.dark-mode .contact-item.linkedin {
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.15);
  border-color: rgba(96, 165, 250, 0.3);
}

body.dark-mode .contact-item.linkedin:hover {
  background: rgba(96, 165, 250, 0.25);
  box-shadow: 0 8px 25px rgba(96, 165, 250, 0.2);
  color: #93c5fd;
}

body.dark-mode .contact-item.cv {
  color: #f87171;
  background: rgba(248, 113, 113, 0.15);
  border-color: rgba(248, 113, 113, 0.3);
}

body.dark-mode .contact-item.cv:hover {
  background: rgba(248, 113, 113, 0.25);
  box-shadow: 0 8px 25px rgba(248, 113, 113, 0.2);
  color: #fca5a5;
}

body.dark-mode h2::after {
  background: linear-gradient(90deg, #fcd34d, #fde68a);
}

body.dark-mode .skill-tag {
  background: rgba(51, 65, 85, 0.6);
  border: 1px solid rgba(100, 116, 139, 0.5);
  color: #e2e8f0;
}

body.dark-mode .skill-tag:hover {
  background: rgba(71, 85, 105, 0.8);
  border-color: #fcd34d;
  box-shadow: 0 4px 15px rgba(252, 211, 77, 0.2);
}

body.dark-mode .skill-tag i {
  color: #f1f5f9;
}

body.dark-mode .skill-tag.icon-only {
  background: linear-gradient(145deg, #334155, #1e293b);
  border-color: rgba(100, 116, 139, 0.5);
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.3),
    0 1px 3px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.dark-mode .skill-tag.icon-only i[class*="fa-"] {
  color: #60a5fa;
}

body.dark-mode .skill-tag.icon-only:hover {
  box-shadow:
    0 12px 20px rgba(252, 211, 77, 0.2),
    0 4px 8px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border-color: rgba(252, 211, 77, 0.4);
}

body.dark-mode .skill-tag.icon-only::after {
  background: rgba(241, 245, 249, 0.95);
  color: #1e293b;
}

body.dark-mode .skill-tag.icon-only::before {
  border-top-color: rgba(241, 245, 249, 0.95);
}

body.dark-mode .skill-tag.icon-only:hover {
  box-shadow: 0 10px 25px rgba(252, 211, 77, 0.3);
}

body.dark-mode .skill-tag.icon-only .skill-name {
  color: #94a3b8;
}

body.dark-mode .profiles-intro {
  color: #94a3b8;
}

body.dark-mode .profile-card {
  background: linear-gradient(145deg, #334155, #1e293b);
  border-color: rgba(71, 85, 105, 0.5);
}

body.dark-mode .profile-card i {
  background: linear-gradient(135deg, #64748b, #475569);
  color: white;
  box-shadow:
    0 4px 12px rgba(71, 85, 105, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body.dark-mode .profile-card span {
  color: #e2e8f0;
}

body.dark-mode .profile-card:hover {
  background: rgba(51, 65, 85, 0.8);
  border-color: #94a3b8;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

body.dark-mode .profile-card:hover i {
  background: linear-gradient(135deg, #94a3b8, #64748b);
  box-shadow:
    0 8px 20px rgba(100, 116, 139, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

body.dark-mode .profile-card:hover span {
  color: #f1f5f9;
}

/* Dark mode profile brand colors */
body.dark-mode .profile-card.leetcode i {
  background: linear-gradient(135deg, #FFA116, #FF8C00);
  box-shadow: 0 4px 12px rgba(255, 161, 22, 0.4);
}

body.dark-mode .profile-card.hackerrank i {
  background: linear-gradient(135deg, #00EA64, #00C853);
  box-shadow: 0 4px 12px rgba(0, 234, 100, 0.4);
}

body.dark-mode .profile-card.googleplay i {
  background: linear-gradient(135deg, #34A853, #4285F4);
  box-shadow: 0 4px 12px rgba(66, 133, 244, 0.4);
}

body.dark-mode .profile-card.appstore i {
  background: linear-gradient(135deg, #007AFF, #5856D6);
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.4);
}

body.dark-mode .profile-card.credly i {
  background: linear-gradient(135deg, #FF6B00, #FF8C00);
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.4);
}

body.dark-mode .profile-card.stackoverflow i {
  background: linear-gradient(135deg, #F48024, #BCBBBB);
  box-shadow: 0 4px 12px rgba(244, 128, 36, 0.4);
}

/* Dark mode profile brand hover effects */
body.dark-mode .profile-card.leetcode:hover i {
  box-shadow: 0 8px 20px rgba(255, 161, 22, 0.5);
}

body.dark-mode .profile-card.hackerrank:hover i {
  box-shadow: 0 8px 20px rgba(0, 234, 100, 0.5);
}

body.dark-mode .profile-card.googleplay:hover i {
  box-shadow: 0 8px 20px rgba(66, 133, 244, 0.5);
}

body.dark-mode .profile-card.appstore:hover i {
  box-shadow: 0 8px 20px rgba(0, 122, 255, 0.5);
}

body.dark-mode .profile-card.credly:hover i {
  box-shadow: 0 8px 20px rgba(255, 107, 0, 0.5);
}

body.dark-mode .profile-card.stackoverflow:hover i {
  box-shadow: 0 8px 20px rgba(244, 128, 36, 0.5);
}

body.dark-mode .project-placeholder {
  background: linear-gradient(135deg, #b91c1c 0%, #c2410c 100%);
}

body.dark-mode .shipped-title {
  border-color: #f1f5f9;
  color: #f1f5f9;
}

body.dark-mode .in-progress-title {
  border-color: #64748b;
  color: #94a3b8;
}

body.dark-mode .project-card.shipped {
  background: rgba(51, 65, 85, 0.3);
  border-color: rgba(71, 85, 105, 0.5);
}

body.dark-mode .project-card.shipped:hover {
  border-color: #475569;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

body.dark-mode .project-card.in-progress {
  background: rgba(51, 65, 85, 0.3);
  border-color: rgba(71, 85, 105, 0.5);
}

body.dark-mode .project-card.in-progress:hover {
  border-color: #475569;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

body.dark-mode .cta-section {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

body.dark-mode .cta-button {
  background: rgba(241, 245, 249, 0.95);
  color: #1d4ed8;
}

body.dark-mode .cta-button i {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

body.dark-mode .cta-button:hover {
  background: #f8fafc;
}

body.dark-mode .cta-button:hover i {
  background: linear-gradient(135deg, #fcd34d, #f59e0b);
  box-shadow: 0 5px 15px rgba(252, 211, 77, 0.4);
}

/* Dark mode CTA button brand colors */
body.dark-mode .cta-button.email i {
  background: linear-gradient(135deg, #f87171, #ef4444);
  box-shadow: 0 3px 10px rgba(248, 113, 113, 0.4);
}

body.dark-mode .cta-button.email:hover i {
  box-shadow: 0 5px 15px rgba(248, 113, 113, 0.5);
}

body.dark-mode .cta-button.linkedin i {
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  box-shadow: 0 3px 10px rgba(96, 165, 250, 0.4);
}

body.dark-mode .cta-button.linkedin:hover i {
  box-shadow: 0 5px 15px rgba(96, 165, 250, 0.5);
}

body.dark-mode .achievements li:hover {
  color: #60a5fa;
}

body.dark-mode .achievements li::before {
  color: #64748b;
}

body.dark-mode .project-placeholder h3,
body.dark-mode .project-placeholder p,
body.dark-mode .project-placeholder strong,
body.dark-mode .project-placeholder em {
  color: white;
}

/* ==================== CERTIFICATIONS SECTION ==================== */
.cert-intro {
  color: #64748b;
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.cert-category-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: rgba(248, 250, 252, 0.6);
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.6);
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.cert-category-card:hover {
  background: rgba(248, 250, 252, 0.95);
  border-color: #cbd5e1;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.cert-category-card:hover .cert-icon {
  transform: scale(1.05);
  box-shadow:
    0 8px 20px rgba(71, 85, 105, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.cert-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #475569, #334155);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow:
    0 4px 12px rgba(71, 85, 105, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.cert-icon i {
  font-size: 1.5rem;
  color: white;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

/* Certification category colors - all neutral */

.cert-info {
  flex: 1;
  min-width: 0;
}

.cert-info h3 {
  color: #1a1a1a;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.cert-platforms {
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cert-count {
  background: linear-gradient(135deg, #475569, #334155);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.cert-linkedin {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
}

.cert-linkedin a {
  color: #475569;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.cert-linkedin a:hover {
  background: rgba(100, 116, 139, 0.1);
}

.cert-linkedin i {
  font-size: 1.2rem;
}

/* LinkedIn CTA */
.cert-linkedin-cta {
  text-align: center;
  margin-top: 30px;
  padding: 30px;
  background: rgba(100, 116, 139, 0.05);
  border-radius: 16px;
  border: 1px solid rgba(100, 116, 139, 0.15);
}

.cert-linkedin-cta p {
  color: #64748b;
  margin-bottom: 15px;
  font-size: 1rem;
}

.cert-linkedin-cta .linkedin-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #0A66C2;
  color: white;
  padding: 14px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(10, 102, 194, 0.3);
}

.cert-linkedin-cta .linkedin-btn:hover {
  background: #004182;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(10, 102, 194, 0.4);
}

.cert-linkedin-cta .linkedin-btn i {
  font-size: 1.3rem;
}

/* Dark mode for certifications */
body.dark-mode .cert-intro {
  color: #94a3b8;
}

body.dark-mode .cert-category-card {
  background: rgba(51, 65, 85, 0.3);
  border-color: rgba(71, 85, 105, 0.5);
}

body.dark-mode .cert-category-card:hover {
  background: rgba(51, 65, 85, 0.5);
  border-color: #94a3b8;
}

body.dark-mode .cert-category-card:hover .cert-icon {
  box-shadow:
    0 8px 20px rgba(100, 116, 139, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

body.dark-mode .cert-info h3 {
  color: #f1f5f9;
}

body.dark-mode .cert-platforms {
  color: #94a3b8;
}

body.dark-mode .cert-linkedin {
  border-top-color: rgba(71, 85, 105, 0.5);
}

body.dark-mode .cert-linkedin a {
  color: #e2e8f0;
}

body.dark-mode .cert-linkedin a:hover {
  background: rgba(100, 116, 139, 0.15);
}

body.dark-mode .cert-linkedin-cta {
  background: rgba(100, 116, 139, 0.1);
  border-color: rgba(100, 116, 139, 0.2);
}

body.dark-mode .cert-linkedin-cta p {
  color: #94a3b8;
}

/* Responsive certifications */
@media (max-width: 768px) {
  .cert-grid {
    grid-template-columns: 1fr;
  }
  
  .cert-category-card {
    padding: 20px;
  }
  
  .cert-icon {
    width: 45px;
    height: 45px;
  }
  
  .cert-icon i {
    font-size: 1.2rem;
  }
  
  .cert-info h3 {
    font-size: 1rem;
  }
  
  .cert-count {
    padding: 6px 12px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .cert-category-card {
    padding: 16px;
    gap: 15px;
  }

  .cert-icon {
    width: 40px;
    height: 40px;
  }

  .cert-icon i {
    font-size: 1rem;
  }

  .cert-info h3 {
    font-size: 0.95rem;
  }

  .cert-platforms {
    font-size: 0.8rem;
  }
}

/* ==================== GITHUB SECTION ==================== */

/* Mini Stats */
.github-mini-stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.github-stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(248, 250, 252, 0.6);
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.6);
  transition: all 0.3s ease;
  flex: 1;
  min-width: 140px;
}

.github-stat-item:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.github-stat-item i {
  font-size: 1.4rem;
  color: #475569;
}

.github-stat-info {
  display: flex;
  flex-direction: column;
}

.github-stat-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a1a1a;
}

.github-stat-label {
  font-size: 0.8rem;
  color: #64748b;
}

/* GitHub Cards */
.github-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.github-cards img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Streak */
.github-streak {
  text-align: center;
  margin-bottom: 30px;
}

.github-streak img {
  max-width: 100%;
  border-radius: 8px;
}

/* Section Titles */
.github-section-title {
  color: #1a1a1a;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.github-section-title i {
  color: #475569;
}

/* Activity Graph */
.github-activity-graph {
  margin-bottom: 30px;
}

.github-activity-graph img {
  width: 100%;
  border-radius: 8px;
}

/* Trophies */
.github-trophies {
  margin-bottom: 30px;
}

.github-trophies img {
  width: 100%;
}

/* Repos Grid */
.github-repos-section {
  margin-bottom: 30px;
}

.github-repos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.github-repo-card {
  background: rgba(248, 250, 252, 0.6);
  border: 1px solid rgba(226, 232, 240, 0.6);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: block;
}

.github-repo-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.github-repo-card.loading {
  text-align: center;
  color: #64748b;
}

.github-repo-name {
  color: #1e293b;
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.github-repo-desc {
  color: #64748b;
  font-size: 0.9rem;
  margin-bottom: 12px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.github-repo-meta {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  color: #64748b;
}

.github-repo-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.github-lang-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

/* Open Source */
.github-opensource {
  margin-bottom: 30px;
}

.github-opensource-placeholder {
  background: rgba(100, 116, 139, 0.05);
  border: 2px dashed rgba(100, 116, 139, 0.2);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  color: #64748b;
}

.github-opensource-placeholder i {
  font-size: 2.5rem;
  color: #475569;
  margin-bottom: 15px;
  display: block;
}

.github-opensource-placeholder h4 {
  color: #1a1a1a;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.github-opensource-placeholder p {
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Profile Link */
.github-profile-link {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
}

.github-profile-link a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #475569;
  text-decoration: none;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 10px;
  transition: all 0.3s ease;
  background: rgba(100, 116, 139, 0.05);
  border: 1px solid rgba(100, 116, 139, 0.1);
}

.github-profile-link a:hover {
  background: rgba(100, 116, 139, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.github-profile-link a i {
  font-size: 1.3rem;
}

/* Dark Mode GitHub */
body.dark-mode .github-stat-item {
  background: rgba(51, 65, 85, 0.3);
  border-color: rgba(71, 85, 105, 0.5);
}

body.dark-mode .github-stat-item:hover {
  border-color: #94a3b8;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

body.dark-mode .github-stat-item i {
  color: #cbd5e1;
}

body.dark-mode .github-stat-value {
  color: #f1f5f9;
}

body.dark-mode .github-stat-label {
  color: #94a3b8;
}

body.dark-mode .github-section-title {
  color: #fde68a;
}

body.dark-mode .github-section-title i {
  color: #cbd5e1;
}

body.dark-mode .github-repo-card {
  background: rgba(51, 65, 85, 0.3);
  border-color: rgba(71, 85, 105, 0.5);
}

body.dark-mode .github-repo-card:hover {
  border-color: #94a3b8;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

body.dark-mode .github-repo-name {
  color: #e2e8f0;
}

body.dark-mode .github-repo-desc {
  color: #94a3b8;
}

body.dark-mode .github-repo-meta {
  color: #64748b;
}

body.dark-mode .github-opensource-placeholder {
  background: rgba(100, 116, 139, 0.1);
  border-color: rgba(100, 116, 139, 0.3);
}

body.dark-mode .github-opensource-placeholder i {
  color: #cbd5e1;
}

body.dark-mode .github-opensource-placeholder h4 {
  color: #f1f5f9;
}

body.dark-mode .github-opensource-placeholder p {
  color: #94a3b8;
}

body.dark-mode .github-profile-link {
  border-top-color: rgba(71, 85, 105, 0.5);
}

body.dark-mode .github-profile-link a {
  color: #e2e8f0;
  background: rgba(100, 116, 139, 0.1);
  border-color: rgba(100, 116, 139, 0.2);
}

body.dark-mode .github-profile-link a:hover {
  background: rgba(100, 116, 139, 0.2);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Responsive GitHub */
@media (max-width: 768px) {
  .github-mini-stats {
    gap: 12px;
  }

  .github-stat-item {
    padding: 14px 16px;
    min-width: calc(50% - 6px);
    flex: none;
  }

  .github-stat-value {
    font-size: 1.2rem;
  }

  .github-cards {
    grid-template-columns: 1fr;
  }

  .github-repos-grid {
    grid-template-columns: 1fr;
  }

  .github-trophies img {
    transform: scale(0.9);
    transform-origin: center;
  }
}

@media (max-width: 480px) {
  .github-stat-item {
    min-width: 100%;
  }

  .github-stat-value {
    font-size: 1.1rem;
  }

  .github-stat-label {
    font-size: 0.75rem;
  }

  .github-opensource-placeholder {
    padding: 30px 20px;
  }

  .github-opensource-placeholder i {
    font-size: 2rem;
  }
}

/* ==================== GITHUB PREVIEW VARIANTS ==================== */

/* Option Label */
.github-option-label {
  background: linear-gradient(135deg, #475569, #334155);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 20px;
  display: inline-block;
}

.github-option-label.recommended {
  background: linear-gradient(135deg, #fcd34d, #f59e0b);
  color: #1a1a1a;
}

/* GitHub Preview Card */
.github-preview-card {
  background: rgba(248, 250, 252, 0.6);
  border: 1px solid rgba(226, 232, 240, 0.6);
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 25px;
  transition: all 0.3s ease;
}

.github-preview-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.github-preview-card.recommended {
  border-color: #fcd34d;
}

.github-preview-card.recommended:hover {
  box-shadow: 0 8px 25px rgba(252, 211, 77, 0.2);
}

/* Mini Stats Variant */
.github-mini-stats-preview {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.mini-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(248, 250, 252, 0.8);
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.6);
  transition: all 0.3s ease;
  flex: 1;
  min-width: 140px;
}

.mini-stat:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.mini-stat i {
  font-size: 1.4rem;
  color: #475569;
}

.mini-stat-info {
  display: flex;
  flex-direction: column;
}

.mini-stat-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a1a1a;
}

.mini-stat-label {
  font-size: 0.8rem;
  color: #64748b;
}

.mini-stat.clickable {
  text-decoration: none;
  cursor: pointer;
}

.mini-stat.clickable:hover {
  border-color: #fcd34d;
}

/* Repos Grid */
.github-repos-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.repo-card-preview {
  background: rgba(248, 250, 252, 0.6);
  border: 1px solid rgba(226, 232, 240, 0.6);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: block;
}

.repo-card-preview:hover {
  border-color: #cbd5e1;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.repo-card-preview.example {
  border-style: dashed;
  opacity: 0.7;
}

.repo-card-preview .repo-name {
  color: #1e293b;
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.repo-card-preview .repo-desc {
  color: #64748b;
  font-size: 0.9rem;
  margin-bottom: 12px;
  line-height: 1.5;
}

.repo-card-preview .repo-stats {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  color: #64748b;
}

.repo-card-preview .repo-stats span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.repo-lang {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

/* Contribution Section */
.contribution-section {
  margin-top: 25px;
}

.contribution-section h3 {
  color: #1a1a1a;
  margin-bottom: 16px;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contribution-section h3 i {
  color: #475569;
}

.contribution-section img {
  width: 100%;
  border-radius: 8px;
}

/* Divider */
.github-divider {
  height: 1px;
  background: rgba(226, 232, 240, 0.8);
  margin: 30px 0;
}

/* Loading Placeholder */
.github-loading-placeholder {
  background: rgba(248, 250, 252, 0.6);
  border-radius: 8px;
  padding: 40px;
  text-align: center;
  color: #64748b;
  border: 2px dashed rgba(226, 232, 240, 0.8);
}

.github-loading-placeholder i {
  font-size: 2rem;
  margin-bottom: 10px;
  display: block;
  color: #475569;
}

/* Info Box */
.github-info-box {
  margin-top: 25px;
  padding: 20px;
  background: rgba(100, 116, 139, 0.05);
  border-radius: 12px;
  border-left: 4px solid #94a3b8;
}

.github-info-box h4 {
  color: #475569;
  margin-bottom: 10px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.github-info-box p {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* Dark Mode for Preview Variants */
body.dark-mode .github-preview-card {
  background: rgba(51, 65, 85, 0.3);
  border-color: rgba(71, 85, 105, 0.5);
}

body.dark-mode .github-preview-card:hover {
  border-color: #94a3b8;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

body.dark-mode .github-preview-card.recommended {
  border-color: rgba(252, 211, 77, 0.5);
}

body.dark-mode .github-preview-card.recommended:hover {
  border-color: #fcd34d;
  box-shadow: 0 8px 25px rgba(252, 211, 77, 0.2);
}

body.dark-mode .mini-stat {
  background: rgba(51, 65, 85, 0.4);
  border-color: rgba(71, 85, 105, 0.5);
}

body.dark-mode .mini-stat:hover {
  border-color: #94a3b8;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

body.dark-mode .mini-stat i {
  color: #cbd5e1;
}

body.dark-mode .mini-stat-value {
  color: #f1f5f9;
}

body.dark-mode .mini-stat-label {
  color: #94a3b8;
}

body.dark-mode .repo-card-preview {
  background: rgba(51, 65, 85, 0.3);
  border-color: rgba(71, 85, 105, 0.5);
}

body.dark-mode .repo-card-preview:hover {
  border-color: #94a3b8;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

body.dark-mode .repo-card-preview .repo-name {
  color: #e2e8f0;
}

body.dark-mode .repo-card-preview .repo-desc,
body.dark-mode .repo-card-preview .repo-stats {
  color: #94a3b8;
}

body.dark-mode .contribution-section h3 {
  color: #fde68a;
}

body.dark-mode .contribution-section h3 i {
  color: #cbd5e1;
}

body.dark-mode .github-divider {
  background: rgba(71, 85, 105, 0.5);
}

body.dark-mode .github-loading-placeholder {
  background: rgba(51, 65, 85, 0.3);
  border-color: rgba(71, 85, 105, 0.5);
}

body.dark-mode .github-loading-placeholder i {
  color: #cbd5e1;
}

body.dark-mode .github-info-box {
  background: rgba(100, 116, 139, 0.1);
  border-left-color: #94a3b8;
}

body.dark-mode .github-info-box h4 {
  color: #cbd5e1;
}

body.dark-mode .github-info-box p {
  color: #94a3b8;
}

/* Responsive Preview */
@media (max-width: 768px) {
  .github-preview-card {
    padding: 20px;
  }

  .github-mini-stats-preview {
    gap: 12px;
  }

  .mini-stat {
    min-width: calc(50% - 6px);
    flex: none;
    padding: 14px 16px;
  }

  .mini-stat-value {
    font-size: 1.2rem;
  }

  .github-repos-preview {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .mini-stat {
    min-width: 100%;
  }

  .github-info-box {
    padding: 15px;
  }
}

/* ==================== COLLAPSIBLE SECTIONS ==================== */
.collapsible h2 {
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.collapsible h2::before {
  content: none;
}

.collapsible h2 .collapse-icon {
  font-size: 0.85rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-left: 15px;
  color: #94a3b8;
}

.collapsible.collapsed:hover h2 .collapse-icon {
  color: #1a1a1a;
  transform: translateX(3px);
}

/* ==================== COLLAPSIBLE EXPERIENCE CHAPTERS ==================== */
.exp-collapsible .experience-header {
  cursor: pointer;
  user-select: none;
}

.exp-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.exp-toggle-icon {
  font-size: 0.85rem;
  color: #94a3b8;
  transition: transform 0.3s ease, color 0.2s ease;
  flex-shrink: 0;
}

.exp-collapsible:not(.exp-collapsed) .exp-toggle-icon {
  transform: rotate(180deg);
  color: #2563eb;
}

.exp-collapsible:hover .exp-toggle-icon {
  color: #1e293b;
}

.exp-collapsible .achievements {
  max-height: 500px;
  opacity: 1;
  transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
}

.exp-collapsible.exp-collapsed .achievements {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Dark mode */
body.dark-mode .exp-toggle-icon {
  color: #64748b;
}

body.dark-mode .exp-collapsible:not(.exp-collapsed) .exp-toggle-icon {
  color: #60a5fa;
}

body.dark-mode .exp-collapsible:hover .exp-toggle-icon {
  color: #e2e8f0;
}

/* ==================== COLLAPSIBLE SKILL CATEGORIES ==================== */
.skill-collapsible > h3 {
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.skill-toggle-icon {
  font-size: 0.8rem;
  color: #94a3b8;
  transition: transform 0.3s ease, color 0.2s ease;
  margin-left: auto;
}

.skill-collapsible:not(.skill-collapsed) .skill-toggle-icon {
  transform: rotate(180deg);
  color: #475569;
}

.skill-collapsible:hover .skill-toggle-icon {
  color: #1e293b;
}

.skill-collapsible .mobile-frameworks {
  max-height: 3000px;
  opacity: 1;
  transition: max-height 0.5s ease, opacity 0.3s ease, margin 0.3s ease;
}

.skill-collapsible.skill-collapsed .mobile-frameworks {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.skill-collapsible.skill-collapsed {
  padding-bottom: 20px;
}

.skill-collapsible.skill-collapsed > h3 {
  margin-bottom: 0;
}

/* Expanded skill category highlight */
.section-modal-body .skill-collapsible:not(.skill-collapsed) {
  background: #f8fafc;
  border-color: #cbd5e1;
}

/* Dark mode */
body.dark-mode .skill-toggle-icon {
  color: #64748b;
}

body.dark-mode .skill-collapsible:not(.skill-collapsed) .skill-toggle-icon {
  color: #cbd5e1;
}

body.dark-mode .skill-collapsible:hover .skill-toggle-icon {
  color: #e2e8f0;
}

body.dark-mode .section-modal-body .skill-collapsible:not(.skill-collapsed) {
  background: rgba(51, 65, 85, 0.3);
  border-color: #475569;
}

/* ==================== COLLAPSIBLE FRAMEWORK SECTIONS ==================== */
.fw-collapsible > h4 {
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fw-toggle-icon {
  font-size: 0.75rem;
  color: #94a3b8;
  transition: transform 0.3s ease, color 0.2s ease;
  margin-left: auto;
}

.fw-collapsible:not(.fw-collapsed) .fw-toggle-icon {
  transform: rotate(180deg);
  color: #475569;
}

.fw-collapsible:hover .fw-toggle-icon {
  color: #1e293b;
}

.fw-collapsible > *:not(h4) {
  max-height: 2000px;
  opacity: 1;
  transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
}

.fw-collapsible.fw-collapsed > *:not(h4) {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.fw-collapsible.fw-collapsed {
  padding-bottom: 16px;
}

.fw-collapsible.fw-collapsed > h4 {
  margin-bottom: 0;
}

/* Dark mode */
body.dark-mode .fw-toggle-icon {
  color: #64748b;
}

body.dark-mode .fw-collapsible:not(.fw-collapsed) .fw-toggle-icon {
  color: #cbd5e1;
}

body.dark-mode .fw-collapsible:hover .fw-toggle-icon {
  color: #e2e8f0;
}

/* ==================== COMPACT SKILL ICONS IN MODAL ==================== */
.section-modal-body .skill-tag.icon-only {
  width: 56px;
  padding: 8px 6px 6px;
  gap: 4px;
  border-radius: 10px;
}

.section-modal-body .skill-tag.icon-only i {
  font-size: 1.8rem;
}

.section-modal-body .skill-tag.icon-only img {
  width: 1.8rem !important;
  height: 1.8rem !important;
}

.section-modal-body .skill-tag.icon-only .skill-name {
  font-size: 0.55rem;
}

.section-modal-body .skill-tags {
  gap: 8px;
}

/* Compact profile cards in modal */
.section-modal-body .profiles-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.section-modal-body .profile-card {
  padding: 14px 18px;
  gap: 8px;
  flex: 0 0 auto;
  width: 100px;
}

.section-modal-body .profile-card i {
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  border-radius: 10px;
}

.section-modal-body .profile-card span {
  font-size: 0.78rem;
}

/* Compact language cards in modal */
.section-modal-body .languages-grid {
  grid-template-columns: repeat(auto-fit, minmax(120px, 140px));
  gap: 12px;
}

.section-modal-body .language-item {
  padding: 16px 14px;
}

.section-modal-body .language-flag {
  width: 48px;
  height: 32px;
  margin-bottom: 8px;
}

.section-modal-body .language-name {
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.section-modal-body .language-level {
  font-size: 0.78rem;
  padding: 3px 10px;
}

/* Compact cert cards in modal */
.section-modal-body .cert-category-card {
  padding: 16px;
  gap: 14px;
}

.section-modal-body .cert-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.section-modal-body .cert-icon i {
  font-size: 1.1rem;
}

.section-modal-body .cert-info h3 {
  font-size: 0.95rem;
}

.section-modal-body .cert-count {
  padding: 5px 12px;
  font-size: 0.8rem;
}

.section-modal-body .skill-group-label {
  margin: 14px 0 8px;
  font-size: 0.75rem;
}

.section-modal-body .framework-section {
  padding: 20px;
}

.section-modal-body .mobile-frameworks {
  gap: 20px;
}

.collapsible > *:not(h2) {
  overflow: hidden;
  max-height: 5000px;
  opacity: 1;
  transition: max-height 0.5s ease, opacity 0.3s ease, margin 0.3s ease, padding 0.3s ease;
}

.collapsible.collapsed > *:not(h2) {
  max-height: 0;
  opacity: 0;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.collapsible.collapsed h2 {
  margin-bottom: 0;
}

.collapsible.collapsed h2::after {
  bottom: -4px;
}
