/* ==========================================================================
   fgonzalez.cl - Sawad Framer Aesthetic Stylesheet
   Ultra-modern, sleek, dark portfolio template design
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,700&display=swap');

:root {
  /* Colors inspired by Sawad Framer Template */
  --bg-dark: #131211;
  --bg-dark-secondary: #1a1817;
  --bg-dark-tertiary: #22201e;
  
  --card-light-bg: #faf7f3;
  --card-light-text: #151312;
  --card-light-muted: #6a6b6e;
  
  --text-white: #ffffff;
  --text-muted: #998f8f;
  --text-dark: #151312;
  
  --accent-orange: #f46c38;
  --accent-orange-hover: #e05824;
  --accent-lime: #c5ff41;
  --accent-glow: rgba(244, 108, 56, 0.2);
  
  --border-dark: rgba(255, 255, 255, 0.08);
  --border-dark-hover: rgba(244, 108, 56, 0.4);
  
  --font-heading: 'Poppins', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --radius-full: 9999px;
  
  --shadow-card: 0 20px 40px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 30px rgba(244, 108, 56, 0.25);
  
  --transition-fast: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-white);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;

  /* Firefox scrollbar */
  scrollbar-width: thin;
  scrollbar-color: var(--accent-orange) rgba(255, 255, 255, 0.05);
}

/* ============================================================
   Custom Scrollbar — Premium thin orange accent (Webkit)
   ============================================================ */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    var(--accent-orange) 0%,
    rgba(244, 108, 56, 0.45) 100%
  );
  border-radius: var(--radius-full);
  transition: background var(--transition-fast);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    #ff8c5a 0%,
    var(--accent-orange) 100%
  );
}

::-webkit-scrollbar-thumb:active {
  background: var(--accent-orange-hover);
}

::-webkit-scrollbar-corner {
  background: transparent;
}

/* ── Animated Background Canvas ── */
#bgCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  display: block;
  opacity: 0;
  animation: canvasFadeIn 2.5s ease 0.3s forwards;
}

@keyframes canvasFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Main Container Layout */
.app-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

/* Scroll padding: compensate for sticky floating nav (≈ 80px) */
html {
  scroll-padding-top: 88px;
}

/* ── Scoped Modal Scrollbar ── */
.modal-content {
  scrollbar-width: thin;
  scrollbar-color: rgba(244, 108, 56, 0.6) transparent;
}

.modal-content::-webkit-scrollbar {
  width: 4px;
}

.modal-content::-webkit-scrollbar-track {
  background: transparent;
}

.modal-content::-webkit-scrollbar-thumb {
  background: rgba(244, 108, 56, 0.55);
  border-radius: var(--radius-full);
  box-shadow: 0 0 6px rgba(244, 108, 56, 0.3);
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: var(--accent-orange);
  box-shadow: 0 0 10px rgba(244, 108, 56, 0.5);
}

.sawad-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 3.5rem;
  align-items: start;
}

/* Floating Navigation Header (Sawad Style) */
.floating-nav {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: rgba(26, 24, 23, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-full);
  padding: 0.5rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 92vw;
  box-sizing: border-box;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-brand-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-brand-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(244, 108, 56, 0.4);
}

.brand-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-orange);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-orange);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text-white);
}

.btn-nav-action {
  background: var(--accent-orange);
  color: var(--text-white);
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-nav-action:hover {
  background: var(--accent-orange-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px var(--accent-glow);
}


/* Fixed Top-Left Corner CV Button Badge */
.fixed-cv-corner {
  position: fixed !important;
  top: 1.25rem;
  left: 1.5rem;
  right: auto;
  bottom: auto;
  width: max-content;
  z-index: 1001;
  background: rgba(26, 24, 23, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.fixed-cv-corner:hover {
  border-color: var(--accent-orange);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(244, 108, 56, 0.35);
}

/* Fixed Top-Right Corner Language Switcher Badge */
.fixed-lang-corner {
  position: fixed !important;
  top: 1.25rem;
  right: 1.5rem;
  left: auto;
  bottom: auto;
  width: max-content;
  z-index: 1005;
  background: rgba(26, 24, 23, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-dark);
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: all var(--transition-fast);
}

.fixed-lang-corner:hover {
  border-color: rgba(244, 108, 56, 0.5);
  box-shadow: 0 10px 30px rgba(244, 108, 56, 0.25);
}

.fixed-lang-corner .lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all var(--transition-fast);
}

.fixed-lang-corner .lang-btn.active {
  color: var(--accent-orange);
  background: rgba(244, 108, 56, 0.2);
  box-shadow: 0 0 12px rgba(244, 108, 56, 0.25);
}

.fixed-lang-corner .lang-btn:hover {
  color: var(--text-white);
}

.fixed-lang-corner .lang-sep {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.75rem;
}

/* Left Column: Sticky Profile Card */
.sticky-profile-column {
  position: sticky;
  top: 6.5rem;
}

.profile-card {
  background-color: var(--card-light-bg);
  color: var(--card-light-text);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.profile-avatar-box {
  width: 100%;
  height: 280px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.5rem;
  position: relative;
  background: linear-gradient(135deg, #f46c38 0%, #22201e 100%);
}

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

.profile-name {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--card-light-text);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.flame-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--accent-orange);
  color: #ffffff;
  border-radius: 50%;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 15px rgba(244, 108, 56, 0.4);
}

.profile-bio {
  font-size: 0.95rem;
  color: var(--card-light-muted);
  line-height: 1.5;
  margin-bottom: 1.75rem;
  font-weight: 450;
}

.btn-about-modal {
  background: rgba(244, 108, 56, 0.12);
  color: var(--accent-orange);
  border: 1px solid rgba(244, 108, 56, 0.3);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-bottom: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-about-modal:hover {
  background: var(--accent-orange);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(244, 108, 56, 0.3);
}

.profile-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  width: 100%;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.social-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.04);
  color: var(--card-light-text);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.social-icon-btn:hover {
  background: var(--accent-orange);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Right Column: Main Content Area */
.main-content-column {
  display: flex;
  flex-direction: column;
  gap: 5rem;
  padding-top: 6rem;
}

/* Section Header Typography (Sawad Huge Two-Tone Text) */
.sawad-section-title {
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.section-title-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-orange);
  background: rgba(244, 108, 56, 0.1);
  border: 1px solid rgba(244, 108, 56, 0.25);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.85rem;
  margin-top: 0.75rem;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 10px rgba(244, 108, 56, 0.12);
  width: fit-content;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all var(--transition-fast);
}

.section-title-badge:hover {
  border-color: var(--accent-orange);
  background: rgba(244, 108, 56, 0.18);
  box-shadow: 0 4px 15px rgba(244, 108, 56, 0.25);
  transform: translateY(-1px);
}

.title-line-1 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--text-white);
  display: block;
}

.title-line-2 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.15);
  display: block;
}

/* Staggered Experience Stat Cards Grid */
.exp-stats-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin-bottom: 3.5rem;
  align-items: start;
  position: relative;
  padding-top: 1rem;
}

.exp-stat-card {
  background: linear-gradient(145deg, rgba(32, 30, 28, 0.85), rgba(18, 17, 16, 0.95));
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* Staggered intentional vertical offsets */
.stat-card-1 {
  transform: translateY(0px);
  border-top: 3px solid var(--accent-orange);
}

.stat-card-2 {
  transform: translateY(24px); /* Intentional staggered offset */
  border-top: 3px solid var(--accent-lime);
}

.stat-card-3 {
  transform: translateY(-8px); /* Intentional staggered offset */
  border-top: 3px solid #00f0ff;
}

.exp-stat-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 14px 35px rgba(244, 108, 56, 0.22);
  border-color: rgba(255, 255, 255, 0.25);
}

.stat-card-badge {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  padding: 0.25rem 0.65rem;
  width: fit-content;
  letter-spacing: 0.02em;
}

.stat-number-box {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-top: 0.15rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 30%, var(--accent-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-card-2 .stat-number {
  background: linear-gradient(135deg, #ffffff 30%, var(--accent-lime) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-card-3 .stat-number {
  background: linear-gradient(135deg, #ffffff 30%, #00f0ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-unit {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--accent-orange);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.stat-card-2 .stat-unit {
  color: var(--accent-lime);
}

.stat-card-3 .stat-unit {
  color: #00f0ff;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.35;
}

@media (max-width: 900px) {
  .exp-stats-container {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
  }

  .stat-card-1,
  .stat-card-2,
  .stat-card-3 {
    transform: translateY(0);
  }

  .stat-card-2 {
    margin-left: 1rem;
  }

  .stat-card-3 {
    margin-left: 0.5rem;
  }
}

/* Experience List (Sawad Style) */
.experience-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.experience-card {
  background: var(--bg-dark-secondary);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  transition: all var(--transition-normal);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.experience-card:hover {
  border-color: var(--border-dark-hover);
  transform: translateY(-3px);
  background: var(--bg-dark-tertiary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.exp-main {
  flex: 1;
}

.exp-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.35rem;
}

.exp-company {
  font-size: 0.9rem;
  color: var(--accent-orange);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.exp-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.exp-date {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
}

.arrow-action-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

/* Courses Grid & Cards */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.course-card-sawad {
  background: var(--bg-dark-secondary);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: 1rem;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.6rem;
}

.course-card-sawad:hover {
  border-color: rgba(244, 108, 56, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.course-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
}

.course-icon-badge {
  font-size: 1.1rem;
  width: 32px;
  height: 32px;
  background: var(--bg-dark-tertiary);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.course-issuer {
  font-size: 0.72rem;
  color: var(--accent-orange);
  font-weight: 600;
  text-align: right;
}

.course-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.35;
  margin-bottom: 0;
}

.course-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Show More / Show Less Buttons */
.show-more-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 1.75rem;
}

.btn-show-more {
  background: var(--bg-dark-secondary);
  border: 1px solid var(--border-dark);
  color: var(--text-white);
  padding: 0.65rem 1.75rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-show-more:hover {
  background: var(--bg-dark-tertiary);
  border-color: var(--accent-orange);
  color: var(--accent-orange);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(244, 108, 56, 0.25);
}

.experience-card:hover .arrow-action-btn {
  background: var(--accent-orange);
  color: #ffffff;
  transform: rotate(45deg);
}

.card-img-thumb {
  width: 100%;
  height: 130px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  margin-bottom: 0.85rem;
  border: 1px solid var(--border-dark);
  transition: transform var(--transition-fast);
  background: var(--bg-dark-tertiary);
}

.project-card-sawad:hover .card-img-thumb {
  transform: scale(1.02);
}

.exp-thumb-box {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  object-fit: contain;
  border: 1px solid var(--border-dark);
  flex-shrink: 0;
  background: #ffffff;
  padding: 4px;
}

.modal-img-preview {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-dark);
}

/* Projects Cards Grid (Sawad Style) */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.project-card-sawad {
  background: var(--bg-dark-secondary);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-normal);
  cursor: pointer;
}

.project-card-sawad:hover {
  border-color: var(--border-dark-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.proj-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.proj-icon-badge {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--bg-dark-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  border: 1px solid var(--border-dark);
}

.proj-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.proj-desc {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-bottom: 0.85rem;
}

.proj-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-dark);
}

/* Filter Controls */
.filter-pills {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.pill-btn {
  background: var(--bg-dark-secondary);
  border: 1px solid var(--border-dark);
  color: var(--text-muted);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pill-btn:hover {
  color: var(--text-white);
  border-color: rgba(255, 255, 255, 0.2);
}

.pill-btn.active {
  background: var(--accent-orange);
  color: #ffffff;
  border-color: transparent;
}

/* Tools & Stack Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.tool-card {
  background: var(--bg-dark-secondary);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  transition: all var(--transition-fast);
}

.tool-card:hover {
  border-color: var(--border-dark-hover);
  background: var(--bg-dark-tertiary);
  transform: translateY(-2px);
}

.tool-icon {
  font-size: 1.3rem;
  width: 36px;
  height: 36px;
  background: var(--bg-dark-tertiary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tool-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.3;
}

.tool-role {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* About Me Box */
.about-me-sawad-box {
  background: var(--bg-dark-secondary);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2.5rem;
  align-items: center;
}

.about-me-img {
  width: 200px;
  height: 220px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  border: 1px solid var(--border-dark);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.about-me-text-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-white);
}

.about-me-p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* Heroes Grid (Sawad Cards) */
.heroes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}

.hero-quote-card {
  background: var(--bg-dark-secondary);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all var(--transition-normal);
  position: relative;
}

.hero-quote-card:hover {
  border-color: rgba(244, 108, 56, 0.4);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.hero-card-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-orange);
  box-shadow: 0 4px 15px rgba(244, 108, 56, 0.3);
}

.hero-card-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 0.2rem;
}

.hero-card-role {
  font-size: 0.82rem;
  color: var(--accent-orange);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.hero-card-quote {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.6;
  padding-left: 0.85rem;
  border-left: 2px solid var(--accent-orange);
}

/* Contact Footer Section */
.contact-section {
  background: var(--bg-dark-secondary);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-xl);
  padding: 3.5rem 2.5rem;
  text-align: center;
}

.contact-title {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.contact-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 550px;
  margin: 0 auto 2rem auto;
}

.btn-contact-main {
  background: var(--accent-orange);
  color: #ffffff;
  padding: 1rem 2.5rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: all var(--transition-fast);
  box-shadow: 0 8px 25px var(--accent-glow);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-contact-main:hover {
  background: var(--accent-orange-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(244, 108, 56, 0.4);
}

/* Footer Bottom */
.footer-sawad {
  padding: 3rem 0 2rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border-dark);
  margin-top: 4rem;
}

/* Detail Modal */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  padding: 1.5rem;
}

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

.modal-content {
  background: var(--bg-dark-secondary);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-xl);
  max-width: 580px;
  width: 100%;
  padding: 2.5rem;
  position: relative;
  box-shadow: var(--shadow-card);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--bg-dark-tertiary);
  border: 1px solid var(--border-dark);
  color: var(--text-white);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: #ef4444;
}

/* Tags */
.tag-pill {
  font-size: 0.75rem;
  background: var(--bg-dark-tertiary);
  color: var(--text-muted);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-dark);
}

/* Responsive Media Queries for Tablets & iPad Mini */
/* Responsive Media Queries for Tablets & iPad Mini */
@media (max-width: 1200px) {
  .floating-nav {
    max-width: calc(100vw - 320px);
  }
  .nav-links {
    gap: 0.75rem;
  }
  .nav-links a {
    font-size: 0.82rem;
  }
}

@media (max-width: 1024px) {
  .sawad-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .sticky-profile-column {
    position: relative;
    top: 0;
    width: 100%;
    max-width: 100%;
    margin: 4.5rem 0 0 0;
  }
  .profile-card {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    box-sizing: border-box;
  }
  .main-content-column {
    padding-top: 0;
  }
  .title-line-1, .title-line-2 {
    font-size: 2.3rem;
  }
  .tools-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .floating-nav {
    position: fixed;
    top: 1.25rem;
    left: 1.25rem;
    transform: none;
    width: auto;
    max-width: calc(100vw - 180px);
    padding: 0.5rem 1rem;
  }
  .fixed-lang-corner {
    top: 1.25rem;
    right: 1.25rem;
    padding: 0.3rem 0.55rem;
  }
  .exp-thumb-box {
    display: none !important;
  }
  .experience-card {
    padding: 1.35rem 1.1rem;
    gap: 1rem;
  }
  .arrow-action-btn {
    width: 40px;
    height: 40px;
    font-size: 1.05rem;
  }
}

@media (max-width: 768px) {
  .title-line-1, .title-line-2 {
    font-size: 2.1rem;
  }
  .contact-title {
    font-size: 2rem;
  }
  .btn-contact-main {
    font-size: 0.95rem;
    padding: 0.85rem 1.5rem;
  }
  .modal-content {
    width: 94vw;
    padding: 1.75rem 1.25rem;
  }
}

@media (max-width: 580px) {
  .floating-nav {
    top: 0.85rem;
    left: 0.75rem;
    max-width: calc(100vw - 145px);
    padding: 0.4rem 0.75rem;
    gap: 0.4rem;
  }
  .fixed-lang-corner {
    top: 0.85rem;
    right: 0.75rem;
    padding: 0.25rem 0.5rem;
  }
  .fixed-lang-corner .lang-btn {
    padding: 0.15rem 0.35rem;
    font-size: 0.75rem;
  }
  .nav-brand-text {
    font-size: 0.9rem;
    gap: 0.35rem;
  }
  .btn-nav-action {
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
    white-space: nowrap;
  }
  .title-line-1, .title-line-2 {
    font-size: 1.8rem;
  }
  .profile-card {
    padding: 1.5rem 1.1rem;
  }
}

@media (max-width: 400px) {
  .lang-text {
    display: none;
  }
  .floating-nav {
    max-width: calc(100vw - 95px);
  }
  .nav-brand-icon {
    width: 20px;
    height: 20px;
  }
}

/* Skills Section in About Me Modal */
.skill-soft-pill {
  background: var(--bg-dark-tertiary);
  color: var(--text-white);
  border: 1px solid var(--border-dark);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

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

.skill-tech-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.skill-tech-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.skill-tech-name {
  font-weight: 700;
  color: var(--text-white);
}

.skill-tech-level {
  color: var(--accent-orange);
  font-size: 0.78rem;
  font-weight: 600;
}

.skill-bar-bg {
  width: 100%;
  height: 6px;
  background: var(--bg-dark-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-orange) 0%, var(--accent-lime) 100%);
  border-radius: var(--radius-full);
}

/* Visually Hidden Utility for AI Web Scrapers & Screen Readers */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Floating Back to Top Button */
.btn-scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(26, 24, 23, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-dark);
  color: var(--accent-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.9);
  transition: all var(--transition-normal);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.btn-scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.btn-scroll-top:hover {
  background: rgba(35, 32, 30, 0.95);
  border-color: var(--accent-orange);
  color: #ffffff;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 25px rgba(244, 108, 56, 0.35);
}

@media (max-width: 992px) {
  .courses-grid, .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .courses-grid, .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* Email Choice Modal Custom Styles */
.btn-email-choice {
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
}

.btn-email-choice:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

/* Noscript Banner Styles */
.noscript-banner {
  background: linear-gradient(135deg, #2a1b12 0%, #151312 100%);
  border-bottom: 2px solid var(--accent-orange);
  color: var(--text-white);
  padding: 1.1rem 1.5rem;
  position: relative;
  z-index: 2000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.noscript-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.92rem;
  line-height: 1.5;
}

.noscript-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

/* Konami Code Secret Hover Hint on Video Games Card (2-second hover delay) */
.project-card-sawad[data-id="video-games"] {
  position: relative;
}

.konami-hover-hint {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(20, 18, 17, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--accent-orange);
  color: var(--accent-orange);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal), transform var(--transition-normal);
  transition-delay: 0s; /* Fades out immediately when mouse leaves */
  box-shadow: 0 4px 15px rgba(244, 108, 56, 0.4);
  z-index: 10;
}

.project-card-sawad[data-id="video-games"]:hover .konami-hover-hint {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  transition-delay: 2s; /* Waits 2 seconds of continuous hover before appearing */
}
