/* ============================================================
   AUGUSTO PERULAN - Personal Professional Website
   Complete Design System & Styles
   ============================================================ */

/* ============================================================
   1. DESIGN TOKENS (CSS Custom Properties)
   ============================================================ */

:root {
  /* Backgrounds */
  --bg-primary: #08090d;
  --bg-secondary: #0f1117;
  --bg-tertiary: #161820;
  --bg-card: #1a1c24;
  --bg-card-hover: #1f2129;

  /* Text */
  --text-primary: #f0f1f5;
  --text-secondary: #9ca0b0;
  --text-muted: #6b6f80;

  /* Borders */
  --border-subtle: #1e2028;
  --border-default: #2a2d38;
  --border-hover: #3a3d48;

  /* Accent (primary - Augusto Perulan) */
  --accent: #8b7cf6;
  --accent-light: #a899ff;
  --accent-dark: #6c5ce7;
  --accent-bg: rgba(139, 124, 246, 0.08);
  --accent-border: rgba(139, 124, 246, 0.2);

  /* Vexa project */
  --vexa-accent: #9c9cff;
  --vexa-bg: rgba(156, 156, 255, 0.06);
  --vexa-border: rgba(156, 156, 255, 0.15);

  /* 3D Print project */
  --print3d-accent: #4ecdc4;
  --print3d-bg: rgba(78, 205, 196, 0.06);
  --print3d-border: rgba(78, 205, 196, 0.15);

  /* BIBIA project */
  --bibia-accent: #f0b429;
  --bibia-bg: rgba(240, 180, 41, 0.06);
  --bibia-border: rgba(240, 180, 41, 0.15);

  /* HamLog project */
  --hamlog-accent: #60a5fa;
  --hamlog-bg: rgba(96, 165, 250, 0.06);
  --hamlog-border: rgba(96, 165, 250, 0.15);

  /* Spacing scale */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-5xl: 128px;

  /* Typography */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Font sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3.5rem;

  /* Border radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(139, 124, 246, 0.15);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Z-index */
  --z-nav: 100;
  --z-modal: 200;

  /* Container */
  --container-max: 1200px;
  --container-padding: 24px;
}


/* ============================================================
   2. CSS RESET & BASE
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.nav-open {
  overflow: hidden;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background-color: rgba(139, 124, 246, 0.3);
  color: var(--text-primary);
}

::-moz-selection {
  background-color: rgba(139, 124, 246, 0.3);
  color: var(--text-primary);
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-default);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-hover);
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--border-default) var(--bg-secondary);
}

/* Focus-visible for accessibility */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

input,
textarea,
select {
  font: inherit;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}


/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw + 1rem, var(--text-5xl));
  letter-spacing: -0.04em;
  line-height: 1.05;
}

h2 {
  font-size: clamp(2rem, 4vw + 0.5rem, var(--text-4xl));
  letter-spacing: -0.03em;
}

h3 {
  font-size: var(--text-2xl);
  letter-spacing: -0.02em;
}

h4 {
  font-size: var(--text-xl);
  letter-spacing: -0.02em;
}

h5 {
  font-size: var(--text-lg);
  letter-spacing: -0.01em;
}

h6 {
  font-size: var(--text-base);
  letter-spacing: -0.01em;
}

p {
  color: var(--text-secondary);
  max-width: 65ch;
}

a {
  color: var(--accent);
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-light);
}

.label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 500;
}


/* ============================================================
   4. LAYOUT UTILITIES
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: 120px 0;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 500;
  display: block;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw + 0.5rem, var(--text-4xl));
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  font-size: var(--text-lg);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}


/* ============================================================
   5. BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all var(--transition-base);
  border: none;
  text-decoration: none;
  line-height: 1.4;
  white-space: nowrap;
  user-select: none;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background-color: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--accent-light);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(139, 124, 246, 0.3);
}

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

.btn-secondary:hover {
  border-color: var(--border-hover);
  background-color: var(--bg-card);
  color: var(--text-primary);
}

.btn-ghost {
  background-color: transparent;
  color: var(--text-secondary);
  border: none;
  padding: 12px 16px;
}

.btn-ghost:hover {
  color: var(--text-primary);
  background-color: var(--bg-card);
}

.btn-sm {
  padding: 8px 16px;
  font-size: var(--text-xs);
}

.btn-lg {
  padding: 16px 32px;
  font-size: var(--text-base);
}

.btn-icon {
  padding: 10px;
  border-radius: var(--radius-sm);
}

.btn-icon svg {
  width: 20px;
  height: 20px;
}


/* ============================================================
   6. CARDS
   ============================================================ */

.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition-base);
}

.card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.card-header {
  margin-bottom: 20px;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
  background-color: var(--accent-bg);
  border: 1px solid var(--accent-border);
  color: var(--accent);
}

.card-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.card-description {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.6;
}


/* ============================================================
   7. TAGS / BADGES
   ============================================================ */

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  border: 1px solid transparent;
  line-height: 1.6;
  white-space: nowrap;
}

.tag-accent {
  background-color: var(--accent-bg);
  border-color: var(--accent-border);
  color: var(--accent-light);
}

.tag-vexa {
  background-color: var(--vexa-bg);
  border-color: var(--vexa-border);
  color: var(--vexa-accent);
}

.tag-print {
  background-color: var(--print3d-bg);
  border-color: var(--print3d-border);
  color: var(--print3d-accent);
}

.tag-bibia {
  background-color: var(--bibia-bg);
  border-color: var(--bibia-border);
  color: var(--bibia-accent);
}

.tag-hamlog {
  background-color: var(--hamlog-bg);
  border-color: var(--hamlog-border);
  color: var(--hamlog-accent);
}


/* ============================================================
   8. NAVIGATION
   ============================================================ */

.navbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  height: 72px;
  display: flex;
  align-items: center;
  background: rgba(8, 9, 13, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-base);
}

.navbar.scrolled {
  background: rgba(8, 9, 13, 0.95);
  border-bottom-color: var(--border-default);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-text {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 18px;
  color: var(--text-primary);
}

.nav-logo-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background-color: var(--accent);
  margin-left: 2px;
}

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

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
  position: relative;
  padding: 4px 0;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--accent);
  border-radius: var(--radius-full);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 14px;
  background-color: var(--accent);
  color: #ffffff;
  text-decoration: none;
  transition: all var(--transition-base);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.nav-cta:hover {
  background-color: var(--accent-light);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(139, 124, 246, 0.3);
}

/* Mobile hamburger toggle */
.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.nav-mobile-toggle:hover {
  background-color: var(--bg-card);
}

.nav-mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.nav-mobile-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.nav-mobile-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile navigation overlay */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  top: 72px;
  background-color: rgba(8, 9, 13, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: calc(var(--z-nav) - 1);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.nav-mobile.open,
.nav-mobile.active {
  display: flex;
  opacity: 1;
  pointer-events: all;
}

.nav-mobile-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

.nav-mobile a {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.nav-mobile a:hover {
  color: var(--text-primary);
  background-color: var(--bg-card);
}

.nav-mobile a.active {
  color: var(--accent);
}


/* ============================================================
   9. HERO SECTION
   ============================================================ */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--accent-bg);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 32px;
  color: var(--accent-light);
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background-color: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

.hero h1 {
  font-size: clamp(3rem, 6vw + 1rem, 6rem);
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 24px;
  max-width: 900px;
}

.hero h1 .highlight {
  color: var(--accent);
}

.hero-description {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 580px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--border-subtle);
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

.hero-stat-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: 4px;
}


/* ============================================================
   10. ABOUT SECTION
   ============================================================ */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-tertiary) 50%, var(--accent-bg) 100%);
  position: relative;
}

.about-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, var(--bg-primary) 100%);
  opacity: 0.3;
}

.about-text p,
.about-content p {
  margin-bottom: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.about-text strong,
.about-content strong {
  color: var(--text-primary);
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.about-highlight {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  transition: border-color var(--transition-fast);
}

.about-highlight:hover {
  border-color: var(--border-hover);
}

.about-highlight-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: var(--accent-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 18px;
  flex-shrink: 0;
}

.about-highlight-text {
  font-size: var(--text-sm);
  color: var(--text-primary);
  font-weight: 500;
}


/* ============================================================
   11. SKILLS SECTION
   ============================================================ */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.skill-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition-base);
}

.skill-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-border);
  box-shadow: var(--shadow-glow);
}

.skill-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
  background-color: var(--accent-bg);
  border: 1px solid var(--accent-border);
  color: var(--accent);
}

.skill-card-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-lg);
  margin-bottom: 8px;
  color: var(--text-primary);
}

.skill-card-description {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  margin-bottom: 16px;
  line-height: 1.6;
}

.skill-card-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-item {
  padding: 6px 12px;
  background-color: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}


/* ============================================================
   12. PROJECTS SECTION (OVERVIEW)
   ============================================================ */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.project-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
  transition: all var(--transition-base);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.project-card-banner {
  height: 200px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card-banner-bg {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  transition: opacity var(--transition-base);
}

.project-card:hover .project-card-banner-bg {
  opacity: 0.25;
}

.project-card-icon {
  position: relative;
  z-index: 1;
  font-size: 48px;
}

.project-card-body {
  padding: 28px;
}

.project-card-category {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.project-card-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.project-card-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.project-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.project-card-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--accent);
  transition: gap var(--transition-base);
}

.project-card:hover .project-card-cta {
  gap: 10px;
}

/* Project card color variants */
.project-card--vexa:hover {
  border-color: var(--vexa-accent);
}

.project-card--vexa .project-card-banner-bg {
  background: linear-gradient(135deg, rgba(156, 156, 255, 0.3) 0%, rgba(139, 124, 246, 0.2) 100%);
}

.project-card--vexa .project-card-category {
  color: var(--vexa-accent);
}

.project-card--vexa .project-card-cta {
  color: var(--vexa-accent);
}

.project-card--print:hover {
  border-color: var(--print3d-accent);
}

.project-card--print .project-card-banner-bg {
  background: linear-gradient(135deg, rgba(78, 205, 196, 0.3) 0%, rgba(78, 205, 196, 0.15) 100%);
}

.project-card--print .project-card-category {
  color: var(--print3d-accent);
}

.project-card--print .project-card-cta {
  color: var(--print3d-accent);
}

.project-card--bibia:hover {
  border-color: var(--bibia-accent);
}

.project-card--bibia .project-card-banner-bg {
  background: linear-gradient(135deg, rgba(240, 180, 41, 0.3) 0%, rgba(240, 180, 41, 0.15) 100%);
}

.project-card--bibia .project-card-category {
  color: var(--bibia-accent);
}

.project-card--bibia .project-card-cta {
  color: var(--bibia-accent);
}

.project-card--hamlog:hover {
  border-color: var(--hamlog-accent);
}

.project-card--hamlog .project-card-banner-bg {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.3) 0%, rgba(96, 165, 250, 0.15) 100%);
}

.project-card--hamlog .project-card-category {
  color: var(--hamlog-accent);
}

.project-card--hamlog .project-card-cta {
  color: var(--hamlog-accent);
}


/* ============================================================
   13. PROJECT DETAIL SECTIONS
   ============================================================ */

.project-section {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border-subtle);
}

.project-section-header {
  text-align: center;
  margin-bottom: 80px;
}

.project-section-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0 auto 24px;
  background-color: var(--accent-bg);
  border: 1px solid var(--accent-border);
  color: var(--accent);
}

.project-section-title {
  font-size: clamp(2rem, 4vw + 0.5rem, var(--text-4xl));
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.project-section-subtitle {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  font-size: var(--text-lg);
  line-height: 1.6;
}

.project-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-feature-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition-base);
}

.project-feature-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.project-feature-card .card-icon {
  margin-bottom: 16px;
}

.project-feature-card .card-title {
  margin-bottom: 8px;
}

.project-feature-card .card-description {
  line-height: 1.6;
}

.project-cta-area {
  text-align: center;
  padding: 64px 0;
  border-top: 1px solid var(--border-subtle);
  margin-top: 64px;
}

.project-cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* ---- Vexa Section ---- */

.section-vexa {
  background-color: var(--bg-primary);
}

.section-vexa .project-section-icon {
  background-color: var(--vexa-bg);
  border: 1px solid var(--vexa-border);
  color: var(--vexa-accent);
}

.section-vexa .project-feature-card:hover {
  border-color: var(--vexa-border);
}

.section-vexa .project-cta-area {
  border-top-color: var(--vexa-border);
}

/* ---- 3D Print Section ---- */

.section-print3d {
  background-color: var(--bg-secondary);
}

.section-print3d .project-section-icon {
  background-color: var(--print3d-bg);
  border: 1px solid var(--print3d-border);
  color: var(--print3d-accent);
}

.section-print3d .project-feature-card:hover {
  border-color: var(--print3d-border);
}

.section-print3d .project-cta-area {
  border-top-color: var(--print3d-border);
}

/* ---- BIBIA Section ---- */

.section-bibia {
  background-color: var(--bg-primary);
}

.section-bibia .project-section-icon {
  background-color: var(--bibia-bg);
  border: 1px solid var(--bibia-border);
  color: var(--bibia-accent);
}

.section-bibia .project-feature-card:hover {
  border-color: var(--bibia-border);
}

.section-bibia .project-cta-area {
  border-top-color: var(--bibia-border);
}

/* ---- HamLog Section ---- */

.section-hamlog {
  background-color: var(--bg-secondary);
}

.section-hamlog .project-section-icon {
  background-color: var(--hamlog-bg);
  border: 1px solid var(--hamlog-border);
  color: var(--hamlog-accent);
}

.section-hamlog .project-feature-card:hover {
  border-color: var(--hamlog-border);
}

.section-hamlog .project-cta-area {
  border-top-color: var(--hamlog-border);
}


/* ============================================================
   14. TIMELINE / JOURNEY SECTION
   ============================================================ */

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  width: 2px;
  height: 100%;
  background-color: var(--border-default);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  padding-bottom: 48px;
  display: flex;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item:nth-child(odd) {
  justify-content: flex-start;
  padding-right: calc(50% + 32px);
}

.timeline-item:nth-child(even) {
  justify-content: flex-end;
  padding-left: calc(50% + 32px);
}

.timeline-dot {
  position: absolute;
  left: 50%;
  width: 16px;
  height: 16px;
  background-color: var(--accent);
  border-radius: var(--radius-full);
  transform: translateX(-50%);
  border: 3px solid var(--bg-primary);
  z-index: 1;
}

.timeline-content {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color var(--transition-fast);
  width: 100%;
}

.timeline-content:hover {
  border-color: var(--border-hover);
}

.timeline-year {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--accent);
  margin-bottom: 8px;
  display: block;
}

.timeline-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-lg);
  margin-bottom: 4px;
  color: var(--text-primary);
}

.timeline-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}


/* ============================================================
   15. CONTACT SECTION
   ============================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.7;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text-primary);
  transition: all var(--transition-base);
}

.contact-link:hover {
  border-color: var(--border-hover);
  background-color: var(--bg-card-hover);
}

.contact-link-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background-color: var(--accent-bg);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  flex-shrink: 0;
}

.contact-link-text {
  display: flex;
  flex-direction: column;
}

.contact-link-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact-link-value {
  font-weight: 500;
  color: var(--text-primary);
}

/* Contact Form */

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
}

.form-input,
.form-textarea {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  transition: all var(--transition-fast);
  width: 100%;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(139, 124, 246, 0.1);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}


/* ============================================================
   16. FOOTER
   ============================================================ */

.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 64px 0 32px;
  background-color: var(--bg-primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
}

.footer-brand p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-top: 12px;
  max-width: 280px;
  line-height: 1.6;
}

.footer-heading {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-sm);
  margin-bottom: 20px;
  color: var(--text-primary);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  margin-top: 48px;
  border-top: 1px solid var(--border-subtle);
}

.footer-bottom p {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-social-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-tertiary);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-base);
  font-size: 16px;
}

.footer-social-icon:hover {
  background-color: var(--accent);
  color: #ffffff;
}


/* ============================================================
   17. ANIMATIONS
   ============================================================ */

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

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

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Staggered animation delays for children */
.animate-stagger > *:nth-child(1) {
  transition-delay: 0ms;
}

.animate-stagger > *:nth-child(2) {
  transition-delay: 100ms;
}

.animate-stagger > *:nth-child(3) {
  transition-delay: 200ms;
}

.animate-stagger > *:nth-child(4) {
  transition-delay: 300ms;
}

.animate-stagger > *:nth-child(5) {
  transition-delay: 400ms;
}

.animate-stagger > *:nth-child(6) {
  transition-delay: 500ms;
}

/* Entrance animations applied directly */
.animate-fade-up {
  animation: fadeUp 0.6s ease forwards;
}

.animate-fade-in {
  animation: fadeIn 0.6s ease forwards;
}

.animate-slide-in {
  animation: slideIn 0.6s ease forwards;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }
}


/* ============================================================
   18. DOT GRID BACKGROUND
   ============================================================ */

.dot-grid {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(139, 124, 246, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}


/* ============================================================
   19. SPECIAL COMPONENTS
   ============================================================ */

/* ---- HamLog Feature Grid ---- */

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

.hamlog-feature {
  padding: 20px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast);
}

.hamlog-feature:hover {
  border-color: var(--hamlog-border);
}

.hamlog-feature-title {
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.hamlog-feature-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---- HamLog Stats Row ---- */

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

.hamlog-stat {
  text-align: center;
  padding: 24px;
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  transition: border-color var(--transition-fast);
}

.hamlog-stat:hover {
  border-color: var(--hamlog-border);
}

.hamlog-stat-value {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--hamlog-accent);
  line-height: 1.2;
}

.hamlog-stat-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---- HamLog Action Buttons Area ---- */

.hamlog-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  padding: 64px 0;
}

.hamlog-action-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---- Material Cards (3D Print) ---- */

.material-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color var(--transition-fast);
}

.material-card:hover {
  border-color: var(--print3d-border);
}

.material-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.material-card-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-lg);
  color: var(--text-primary);
}

.material-card-resistance {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  white-space: nowrap;
}

.material-card-resistance.high {
  background-color: rgba(78, 205, 196, 0.1);
  color: var(--print3d-accent);
  border: 1px solid var(--print3d-border);
}

.material-card-resistance.medium {
  background-color: rgba(240, 180, 41, 0.1);
  color: var(--bibia-accent);
  border: 1px solid var(--bibia-border);
}

.material-card-resistance.low {
  background-color: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.material-card-description {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.material-card-props {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.material-prop-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  display: block;
  margin-bottom: 2px;
}

.material-prop-value {
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--text-primary);
}

/* ---- BIBIA Category Cards ---- */

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

.bibia-category {
  padding: 24px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-base);
}

.bibia-category:hover {
  border-color: var(--bibia-border);
  box-shadow: 0 4px 20px rgba(240, 180, 41, 0.1);
}

.bibia-category-icon {
  font-size: 28px;
  margin-bottom: 12px;
  display: block;
}

.bibia-category-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-lg);
  margin-bottom: 8px;
  color: var(--text-primary);
}

.bibia-category-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---- Vexa-specific Feature Highlights ---- */

.vexa-feature-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.vexa-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast);
}

.vexa-feature-item:hover {
  border-color: var(--vexa-border);
}

.vexa-feature-item-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--vexa-bg);
  border: 1px solid var(--vexa-border);
  color: var(--vexa-accent);
  flex-shrink: 0;
  font-size: 16px;
}

.vexa-feature-item-text h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.vexa-feature-item-text p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.5;
}


/* ============================================================
   20. RESPONSIVE BREAKPOINTS
   ============================================================ */

@media (max-width: 1024px) {
  /* Tablet adjustments */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-image {
    max-width: 400px;
    margin: 0 auto;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

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

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

  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    padding-left: 48px;
    padding-right: 0;
    justify-content: flex-start;
  }

  .timeline::before {
    left: 16px;
  }

  .timeline-dot {
    left: 16px;
  }

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

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

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

@media (max-width: 768px) {
  :root {
    --container-padding: 20px;
  }

  .section {
    padding: 80px 0;
  }

  .section-header {
    margin-bottom: 48px;
  }

  .nav-links {
    display: none;
  }

  .nav-mobile-toggle {
    display: flex;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 10vw, 3.5rem);
  }

  .hero-stats {
    flex-direction: column;
    gap: 24px;
  }

  .hero-stat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: left;
  }

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

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

  .project-features {
    grid-template-columns: 1fr;
  }

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

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

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

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

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .project-cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .about-highlights {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .project-section {
    padding: 80px 0;
  }

  .project-section-header {
    margin-bottom: 48px;
  }

  .project-cta-area {
    padding: 48px 0;
    margin-top: 48px;
  }

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

  .material-card-props {
    grid-template-columns: 1fr;
  }

  .nav-cta {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 100px 16px 60px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero h1 {
    font-size: clamp(2rem, 8vw, 2.75rem);
  }

  .hero-description {
    font-size: var(--text-base);
  }

  .section {
    padding: 64px 0;
  }

  .card {
    padding: 24px;
  }

  .project-section {
    padding: 64px 0;
  }

  .contact-form {
    gap: 16px;
  }

  .btn-lg {
    padding: 14px 24px;
    font-size: var(--text-sm);
  }

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

  .bibia-categories {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   21. MISCELLANEOUS UTILITY CLASSES
   ============================================================ */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center {
  text-align: center;
}

.text-accent {
  color: var(--accent);
}

.text-vexa {
  color: var(--vexa-accent);
}

.text-print {
  color: var(--print3d-accent);
}

.text-bibia {
  color: var(--bibia-accent);
}

.text-hamlog {
  color: var(--hamlog-accent);
}

.mt-1 {
  margin-top: var(--space-sm);
}

.mt-2 {
  margin-top: var(--space-md);
}

.mt-3 {
  margin-top: var(--space-lg);
}

.mt-4 {
  margin-top: var(--space-2xl);
}

.mb-1 {
  margin-bottom: var(--space-sm);
}

.mb-2 {
  margin-bottom: var(--space-md);
}

.mb-3 {
  margin-bottom: var(--space-lg);
}

.mb-4 {
  margin-bottom: var(--space-2xl);
}

.gap-1 {
  gap: var(--space-sm);
}

.gap-2 {
  gap: var(--space-md);
}

.gap-3 {
  gap: var(--space-lg);
}

.gap-4 {
  gap: var(--space-2xl);
}

.w-full {
  width: 100%;
}

.overflow-hidden {
  overflow: hidden;
}

.relative {
  position: relative;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.block {
  display: block;
}

.hidden {
  display: none;
}

.opacity-0 {
  opacity: 0;
}

.opacity-50 {
  opacity: 0.5;
}

.opacity-100 {
  opacity: 1;
}

.pointer-events-none {
  pointer-events: none;
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.font-heading {
  font-family: var(--font-heading);
}

.font-mono {
  font-family: var(--font-mono);
}

.font-body {
  font-family: var(--font-body);
}

.uppercase {
  text-transform: uppercase;
}

.leading-tight {
  line-height: 1.2;
}

.leading-relaxed {
  line-height: 1.7;
}

.rounded-full {
  border-radius: var(--radius-full);
}

.border {
  border: 1px solid var(--border-default);
}

.border-subtle {
  border: 1px solid var(--border-subtle);
}

.no-underline {
  text-decoration: none;
}

.select-none {
  user-select: none;
}

/* Gradient text helper */
.gradient-text {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 50%, var(--accent-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glow effect */
.glow {
  box-shadow: var(--shadow-glow);
}

.glow-vexa {
  box-shadow: 0 0 40px rgba(156, 156, 255, 0.15);
}

.glow-print {
  box-shadow: 0 0 40px rgba(78, 205, 196, 0.15);
}

.glow-bibia {
  box-shadow: 0 0 40px rgba(240, 180, 41, 0.15);
}

.glow-hamlog {
  box-shadow: 0 0 40px rgba(96, 165, 250, 0.15);
}

/* Backdrop blur helper */
.backdrop-blur {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Divider */
.divider {
  width: 100%;
  height: 1px;
  background-color: var(--border-subtle);
  border: none;
}

/* Divider with max width */
.divider-sm {
  width: 64px;
  height: 2px;
  background-color: var(--accent);
  border: none;
  border-radius: var(--radius-full);
  margin: 0 auto;
}

/* Image placeholder */
.image-placeholder {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-tertiary) 50%, var(--accent-bg) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--accent);
  opacity: 0.6;
}

/* Avatar */
.avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: var(--text-sm);
  color: #ffffff;
}

.avatar-lg {
  width: 80px;
  height: 80px;
  font-size: var(--text-xl);
}

.avatar-sm {
  width: 32px;
  height: 32px;
  font-size: var(--text-xs);
}

/* Tooltip */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 12px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  color: var(--text-primary);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-fast);
  z-index: var(--z-modal);
}

[data-tooltip]:hover::after {
  opacity: 1;
}

/* Separator line with text */
.separator-text {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.separator-text::before,
.separator-text::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: var(--border-subtle);
}

/* Code block style */
.code-block {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  overflow-x: auto;
  color: var(--text-secondary);
  line-height: 1.7;
}

.inline-code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 2px 8px;
  color: var(--accent-light);
}

/* Progress bar */
.progress-bar {
  width: 100%;
  height: 6px;
  background-color: var(--bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
  transition: width var(--transition-slow);
}

/* Stat counter */
.stat-counter {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-4xl);
  color: var(--accent);
  line-height: 1;
}

.stat-counter-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: 8px;
}

/* Chip / Pill */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.chip:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.chip-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background-color: var(--accent);
}

/* Callout box */
.callout {
  padding: 20px 24px;
  border-radius: var(--radius-md);
  border-left: 3px solid var(--accent);
  background-color: var(--accent-bg);
}

.callout p {
  color: var(--text-primary);
  font-size: var(--text-sm);
  line-height: 1.6;
}

/* Icon circle */
.icon-circle {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-bg);
  border: 1px solid var(--accent-border);
  color: var(--accent);
}

.icon-circle-sm {
  width: 36px;
  height: 36px;
  font-size: 16px;
}

.icon-circle-lg {
  width: 64px;
  height: 64px;
  font-size: 28px;
}

/* Table styles */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--text-primary);
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-default);
  background-color: var(--bg-tertiary);
}

.table td {
  padding: 12px 16px;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

.table tr:last-child td {
  border-bottom: none;
}

.table tr:hover td {
  background-color: var(--bg-card);
}


/* ============================================================
   22. PRINT STYLES
   ============================================================ */

@media print {
  .navbar,
  .nav-mobile,
  .dot-grid,
  .footer-socials,
  .btn {
    display: none !important;
  }

  body {
    background-color: #ffffff;
    color: #000000;
  }

  .section {
    padding: 40px 0;
  }

  .card,
  .project-card,
  .skill-card {
    border: 1px solid #cccccc;
    box-shadow: none;
    break-inside: avoid;
  }

  a {
    color: #000000;
    text-decoration: underline;
  }
}
