/* =============================================================
 * Components CSS Stylesheet - João Marcos Portfolio
 * ============================================================= */

/* -------------------------------------------------------------
 * 1. Preloader Screen
 * ------------------------------------------------------------- */
.loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #14011E;
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-wrapper.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.loader-logo {
  font-family: var(--font-title);
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #A78BFA 0%, var(--secondary) 50%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
  animation: float 2s ease-in-out infinite;
}

.loader-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(139, 92, 246, 0.1);
  border-radius: 50%;
  border-top-color: var(--secondary);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* -------------------------------------------------------------
 * 2. Floating Navbar
 * ------------------------------------------------------------- */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background: rgba(20, 1, 30, 0.7);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition-speed), border var(--transition-speed);
}

[data-theme="light"] .app-header {
  background: rgba(248, 250, 252, 0.75);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
}

.logo-text {
  font-weight: 500;
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 0.5rem 0;
  color: var(--text-muted);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-controls {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* -------------------------------------------------------------
 * 3. Buttons & Control Buttons
 * ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
  font-family: var(--font-body);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(109, 40, 217, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(109, 40, 217, 0.6);
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: rgba(139, 92, 246, 0.1);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: 8px;
}

.btn-full {
  width: 100%;
}

.btn-arrow {
  width: 16px;
  height: 16px;
  margin-left: 8px;
  transition: transform 0.2s ease;
}

.btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-control {
  background: var(--bg-control);
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background var(--transition-speed), border-color var(--transition-speed), transform 0.2s;
}

.btn-control:hover {
  border-color: var(--border-hover);
  transform: scale(1.05);
}

/* Sun/Moon Theme Toggle */
.sun-icon {
  display: block;
  width: 20px;
  height: 20px;
}

.moon-icon {
  display: none;
  width: 20px;
  height: 20px;
}

[data-theme="light"] .sun-icon {
  display: none;
}

[data-theme="light"] .moon-icon {
  display: block;
}

.lang-text {
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--font-title);
}

/* Mobile Toggle Hamburger */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}

.mobile-menu-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
  border-radius: 3px;
}

/* Hamburger transition when active */
.mobile-menu-toggle.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* -------------------------------------------------------------
 * 4. Hero Section
 * ------------------------------------------------------------- */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 8rem;
  padding-bottom: 4rem;
}

.hero-grid {
  width: 100%;
}

.profile-container {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.profile-ring {
  position: relative;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  padding: 5px;
  z-index: 0;
}

.profile-ring::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, blue, orange, blue);
  z-index: -1;
  animation: rotate-border 4s linear infinite;
}

@keyframes rotate-border {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.profile-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bg);
}

.hero-title {
  font-family: var(--font-title);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.greeting {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.highlight-name {
  background: linear-gradient(135deg, #FFFFFF 40%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .highlight-name {
  background: linear-gradient(135deg, #0F172A 40%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.hero-description {
  max-width: 650px;
  font-size: 1.15rem;
  color: var(--text-dark);
  margin: 0 auto 2.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.social-quicklinks {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: transform 0.2s, border-color 0.2s, background 0.3s;
}

.social-pill:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.social-pill-icon {
  width: 16px;
  height: 16px;
  margin-right: 8px;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: float 2.5s ease-in-out infinite;
}

@keyframes scrollDown {
  0% {
    opacity: 1;
    transform: translate(-50%, 0);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, 15px);
  }
}

/* -------------------------------------------------------------
 * 5. About Section
 * ------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 4rem;
  align-items: start;
}

.about-text p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  text-align: justify;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-card {
  padding: 2rem;
  text-align: left;
}

.about-card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.about-card h3 {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.about-card p {
  font-size: 0.95rem;
  color: var(--text-dark);
}

.experience-summary {
  max-width: 860px;
  margin: 0 auto 2.2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  padding: 1.2rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(32, 4, 53, 0.22);
}

[data-theme="light"] .experience-summary {
  background: rgba(255, 255, 255, 0.72);
}

/* -------------------------------------------------------------
 * 6. Experience Timeline
 * ------------------------------------------------------------- */
.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2.2rem 0;
  display: flow-root;
  /* clearfix: contains floated timeline items */
}

.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
  border-radius: 2px;
  box-shadow: 0 0 18px rgba(139, 92, 246, 0.45);
}

.timeline-item {
  padding: 1rem 0;
  position: relative;
  width: 50%;
  clear: both;
}

.timeline-item:nth-child(even) {
  float: right;
  padding-left: 3rem;
}

.timeline-item:nth-child(odd) {
  float: left;
  padding-right: 3rem;
  text-align: left;
}

.timeline-badge {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--secondary);
  top: 1.5rem;
  left: 50%;
  margin-left: -16px;
  z-index: 1;
  transition: transform 0.3s;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.95rem;
}

.timeline-item:hover .timeline-badge {
  transform: scale(1.3);
  background: var(--secondary);
}

.timeline-content {
  padding: 1.7rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.timeline-content::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.1), transparent 35%, transparent 100%);
  pointer-events: none;
}

.timeline-item:hover .timeline-content,
.timeline-item:focus-within .timeline-content,
.timeline-item:focus .timeline-content {
  transform: translateY(-6px) scale(1.01);
  border-color: var(--border-hover);
  box-shadow: 0 16px 34px rgba(15, 1, 35, 0.34), 0 0 0 1px rgba(167, 139, 250, 0.25);
}

.timeline-date {
  font-weight: 700;
  color: var(--secondary);
  font-family: var(--font-title);
  font-size: 1rem;
  margin-bottom: 0.7rem;
  display: block;
}

.timeline-content h3 {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.timeline-role-chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.36rem 0.72rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  border: 1px solid transparent;
}

.role-chip-violet {
  color: #EDE9FE;
  background: rgba(139, 92, 246, 0.24);
  border-color: rgba(139, 92, 246, 0.42);
}

.role-chip-cyan {
  color: #CFFAFE;
  background: rgba(14, 116, 144, 0.35);
  border-color: rgba(34, 211, 238, 0.45);
}

.role-chip-rose {
  color: #FFE4E6;
  background: rgba(190, 24, 93, 0.3);
  border-color: rgba(244, 63, 94, 0.46);
}

.timeline-desc {
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

.timeline-block {
  margin-top: 1rem;
}

.timeline-subtitle {
  font-family: var(--font-title);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.timeline-list,
.timeline-projects {
  margin: 0;
  padding-left: 1rem;
}

.timeline-list li,
.timeline-projects li {
  color: var(--text-dark);
  margin-bottom: 0.45rem;
  font-size: 0.92rem;
}

.timeline-tech-list {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.timeline-tech-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(139, 92, 246, 0.1);
  color: var(--secondary);
  border: 1px solid rgba(139, 92, 246, 0.2);
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
  border-radius: 999px;
  font-weight: 600;
}

.timeline-tech-icon {
  font-size: 0.92rem;
}

.timeline-tech-icon-fallback {
  font-size: 1rem;
  line-height: 1;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px) scale(0.99);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-on-scroll.reveal-from-left {
  transform: translate3d(-36px, 18px, 0) scale(0.98);
}

.reveal-on-scroll.reveal-from-right {
  transform: translate3d(36px, 18px, 0) scale(0.98);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* -------------------------------------------------------------
 * 7. Projects Gallery Toolbar & Cards
 * ------------------------------------------------------------- */
.projects-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  margin-bottom: 3rem;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  flex: 1;
  max-width: 350px;
  min-width: 250px;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-dark);
}

.search-box input {
  width: 100%;
  background: rgba(20, 1, 30, 0.4);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.75rem 1rem 0.75rem 2.8rem;
  border-radius: 9999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

[data-theme="light"] .search-box input {
  background: rgba(255, 255, 255, 0.8);
}

.search-box input:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

.filter-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-pill {
  background: transparent;
  color: var(--text-dark);
  border: 1px solid var(--border);
  padding: 0.5rem 1.2rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-speed);
}

.filter-pill:hover {
  background: rgba(139, 92, 246, 0.1);
  border-color: var(--border-hover);
  color: var(--text);
}

.filter-pill.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 4px 10px rgba(109, 40, 217, 0.3);
}

/* Projects Grid and Cards */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2.5rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.project-card-image {
  height: 200px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s ease;
}

.project-card:hover .project-card-image img {
  transform: scale(1.08);
}

.project-card-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(20, 1, 30, 0.85);
  backdrop-filter: blur(4px);
  border: 1px solid var(--border);
  color: var(--secondary);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.project-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-card-title {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.project-card-desc {
  font-size: 0.92rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  line-height: 1.5;
  flex: 1;
}

.project-card-tech {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.project-tech-tag {
  background: rgba(139, 92, 246, 0.05);
  color: var(--text-muted);
  font-size: 0.78rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(139, 92, 246, 0.1);
  font-weight: 600;
}

.project-card-actions {
  display: flex;
  gap: 1rem;
  margin-top: auto;
}

.project-card-btn {
  flex: 1;
  text-align: center;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 8px;
}

/* -------------------------------------------------------------
 * 8. Tech Section Grid Badges
 * ------------------------------------------------------------- */
.tech-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.tech-category {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.tech-category-title {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--secondary);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1.5rem;
}

.tech-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: default;
}

.tech-badge:hover {
  transform: translateY(-4px);
}

.tech-badge-icon {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
  transition: transform 0.3s;
}

.tech-badge:hover .tech-badge-icon {
  transform: scale(1.1);
}

.tech-badge-name {
  font-size: 0.9rem;
  font-weight: 600;
}

/* -------------------------------------------------------------
 * 9. GitHub Dashboard Stats
 * ------------------------------------------------------------- */
.github-dashboard {
  padding: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.github-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.github-user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.github-icon {
  color: var(--secondary);
}

.github-user-info h3 {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 700;
}

.github-user-info p {
  font-size: 0.9rem;
  color: var(--text-dark);
}

.github-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.github-stat-card {
  background: rgba(139, 92, 246, 0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.2s;
}

.github-stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
}

.stat-number {
  display: block;
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 800;
  color: var(--secondary);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-dark);
  font-weight: 600;
}

.recent-repos-title {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  color: var(--text);
}

.github-repos-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.github-repo-item {
  background: rgba(20, 1, 30, 0.3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.2rem;
  transition: border-color var(--transition-speed), background var(--transition-speed);
}

.github-repo-item:hover {
  border-color: var(--border-hover);
  background: rgba(20, 1, 30, 0.5);
}

.github-repo-name {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.github-repo-desc {
  font-size: 0.82rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.6em;
}

.github-repo-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-dark);
  font-weight: 600;
}

.github-repo-lang {
  display: inline-flex;
  align-items: center;
}

.github-repo-lang::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--secondary);
  margin-right: 5px;
}

.github-repo-stars {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.github-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
  color: var(--text-dark);
  font-size: 0.95rem;
}

/* -------------------------------------------------------------
 * 10. Contact Section Elements
 * ------------------------------------------------------------- */
/* Contact Details */
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.contact-card {
  padding: 1.8rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  text-align: left;
}

.contact-icon {
  font-size: 1.8rem;
  background: rgba(139, 92, 246, 0.1);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  border: 1px solid var(--border);
  color: var(--secondary);
}

.contact-details {
  position: relative;
  width: 100%;
}

.contact-details h4 {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact-details p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.reveal-field {
  cursor: pointer;
  user-select: none;
  display: inline-block;
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}

.reveal-field:hover {
  color: var(--secondary);
}

.reveal-field.is-revealed {
  color: var(--text);
  letter-spacing: normal;
  user-select: text;
}

.tooltip-copy {
  position: absolute;
  bottom: 1.25rem;
  left: 120px;
  background-color: var(--primary);
  color: white;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  border-radius: 4px;
  font-weight: 700;
  animation: fadeIn 0.2s;
}

/* -------------------------------------------------------------
 * 11. Footer Section
 * ------------------------------------------------------------- */
.app-footer {
  background-color: var(--bg-section);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-dark);
  margin-top: 1rem;
  max-width: 320px;
}

.footer-links h4,
.footer-socials h4 {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  color: var(--text);
}

.footer-links ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--text-dark);
}

.footer-links a:hover {
  color: var(--secondary);
}

.footer-social-icons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-control);
  border: 1px solid var(--border);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.2s;
  color: var(--text-muted);
}

.footer-social-icon:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  color: var(--secondary);
}

.footer-social-icon svg {
  width: 16px;
  height: 16px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 2rem 0;
  border-top: 1px solid rgba(139, 92, 246, 0.1);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-dark);
}

/* -------------------------------------------------------------
 * 12. Back to Top Button
 * ------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #FFFFFF;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 99;
  border: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px rgba(109, 40, 217, 0.4);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(109, 40, 217, 0.6);
}

.back-to-top svg {
  width: 18px;
  height: 18px;
}

/* -------------------------------------------------------------
 * Responsive Component Adapters
 * ------------------------------------------------------------- */
@media (max-width: 1024px) {

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {

  /* Mobile Header Navigation Adapter */
  .mobile-menu-toggle {
    display: flex;
    z-index: 1000;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(20, 1, 30, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid var(--border);
    padding: 6rem 2rem 2rem;
    flex-direction: column;
    align-items: flex-start;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
  }

  .nav-link {
    font-size: 1.15rem;
    display: block;
    width: 100%;
  }

  /* Timeline adaptation to Single Column on Mobile */
  .timeline::after {
    left: 20px;
  }

  .reveal-on-scroll.reveal-from-left,
  .reveal-on-scroll.reveal-from-right {
    transform: translate3d(0, 24px, 0) scale(0.98);
  }

  .timeline-item {
    width: 100%;
    float: none !important;
    padding-left: 45px !important;
    padding-right: 0 !important;
    text-align: left !important;
  }

  .timeline-badge {
    left: 20px !important;
    margin-left: -16px !important;
  }

  .timeline-item:nth-child(odd) .timeline-tech-list {
    justify-content: flex-start;
  }

  .experience-summary {
    text-align: left;
    padding: 1rem;
  }

  .projects-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box {
    max-width: 100%;
  }

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

  .footer-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}