/* ===== RESOURCE CENTER CARDS ===== */
.resource-center-cards {
  padding: var(--space-12) 0;
  min-height: calc(100vh - var(--header-height));
  background:
    linear-gradient(135deg, rgba(10, 10, 10, 0.75) 0%, rgba(31, 59, 115, 0.75) 100%),
    url('../images/section-bg-2.jpeg') center/cover no-repeat fixed;
  position: relative;
}

.resource-center-cards::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(0, 217, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(215, 38, 56, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.resource-center-cards__container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-6);
  max-width: 1200px;
  margin: 0 auto;
  margin-bottom: var(--space-4);
}

@media (max-width: 768px) {
  .resource-center-cards__container {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

@media (max-width: 640px) {
  .resource-center-cards__container {
    gap: var(--space-3);
  }
}

.resource-center-card {
  background: linear-gradient(135deg, rgba(31, 59, 115, 0.1) 0%, rgba(10, 10, 10, 0.3) 100%);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: var(--border-width) solid rgba(0, 217, 255, 0.2);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
}

.resource-center-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 217, 255, 0.1), transparent);
  transition: left 0.5s;
}

.resource-center-card:hover::before {
  left: 100%;
}

.resource-center-card:focus,
.resource-center-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 217, 255, 0.3);
  border-color: rgba(0, 217, 255, 0.5);
}

.resource-center-card--active {
  border-color: var(--color-brand-primary);
  background: linear-gradient(135deg, rgba(0, 217, 255, 0.15) 0%, rgba(31, 59, 115, 0.3) 100%);
  box-shadow: 0 0 20px rgba(0, 217, 255, 0.4), 0 8px 24px rgba(0, 217, 255, 0.2);
  transform: translateY(-4px);
}

.resource-center-card--active .project-card__icon {
  animation: none;
  filter: drop-shadow(0 0 16px rgba(0, 217, 255, 0.9));
}

.resource-center-cards__container:has(.resource-center-card--active) .resource-center-card:not(.resource-center-card--active) {
  opacity: 0.55;
  transform: scale(0.98);
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.resource-center-card .project-card__icon {
  font-size: 80px;
  filter: drop-shadow(0 4px 20px rgba(0, 217, 255, 0.5));
  animation: iconFloat 3s ease-in-out infinite;
}

.resource-center-card .project-card__title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-2);
}

.resource-center-card .project-card__description {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-3);
}
/* Main Styles - BEM Naming Convention */
/* Mobile-first responsive design with 8px grid system */

/* ===== BASE STYLES ===== */
html {
  font-size: 16px;
  background-color: #ffffff;
}

html[data-theme="dark"] {
  background-color: #1a1a1a;
}

body {
  font-family: var(--font-family-sans);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-normal);
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  transition: background-color var(--transition-base), color var(--transition-base);
  min-height: 100vh;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--color-text-primary);
  letter-spacing: 0.05em;
}

h1 { font-size: var(--font-size-5xl); margin-bottom: var(--space-4); }
h2 { font-size: var(--font-size-4xl); margin-bottom: var(--space-3); }
h3 { font-size: var(--font-size-3xl); margin-bottom: var(--space-3); }
h4 { font-size: var(--font-size-2xl); margin-bottom: var(--space-2); }
h5 { font-size: var(--font-size-xl); margin-bottom: var(--space-2); }
h6 { font-size: var(--font-size-lg); margin-bottom: var(--space-2); }

p {
  margin-bottom: var(--space-3);
  color: var(--color-text-secondary);
}

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

a:hover {
  color: var(--color-link-hover);
}

a:focus-visible {
  outline: 2px solid var(--color-focus-ring);
  outline-offset: 2px;
  border-radius: var(--border-radius-sm);
}

/* ===== RESPONSIVE TYPOGRAPHY ===== */
@media (max-width: 768px) {
  h1 { font-size: var(--font-size-4xl); }
  h2 { font-size: var(--font-size-3xl); }
  h3 { font-size: var(--font-size-2xl); }
}

@media (max-width: 640px) {
  h1 { font-size: var(--font-size-3xl); }
  h2 { font-size: var(--font-size-2xl); }
  h3 { font-size: var(--font-size-xl); }
}

/* ===== SKIP LINK ===== */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-2);
  z-index: var(--z-popover);
  padding: var(--space-2) var(--space-3);
  background-color: var(--color-brand-primary);
  color: var(--color-text-inverse);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--border-radius-md);
  transition: top var(--transition-base);
}

.skip-link:focus {
  top: var(--space-2);
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: var(--z-fixed);
  background-color: var(--color-header-bg);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-bottom: var(--border-width) solid var(--color-header-border);
  transition: all var(--transition-base);
}

.header.scrolled {
  background-color: var(--color-header-bg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border-bottom-color: var(--color-header-border);
}

.header__container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

@media (max-width: 768px) {
  .header__container {
    padding: 0 var(--space-3);
  }
}

@media (max-width: 640px) {
  .header__container {
    padding: 0 var(--space-2);
  }
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
}

.header__logo-icon {
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.header__logo-text {
  font-family: var(--font-family-heading);
  font-size: var(--font-size-3xl);
  letter-spacing: 0.05em;
  transition: color var(--transition-fast);
  color: var(--color-logo-text);
}

.header__logo:hover .header__logo-text {
  color: var(--color-logo-text-hover);
}

.header__nav {
  flex: 1;
  display: flex;
  justify-content: flex-start;
  padding-left: var(--space-4);
}

/* Mobile navigation */
@media (max-width: 768px) {
  .header__nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(5px);
    z-index: 999;
    padding: 0;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    overflow-y: auto;
  }
  
  .header .header__nav--open,
  .header__nav.header__nav--open {
    display: flex !important;
  }

  .header.header--menu-open {
    height: 100vh;
  }
  
  .header__nav .nav-list {
    flex-direction: column;
    gap: 0;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  
  .header__nav .nav-list__item {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0;
  }
  
  .header__nav .nav-list__link {
    display: block;
    padding: 16px 24px;
    font-size: var(--font-size-base);
    width: 100%;
    margin: 0;
    color: #ffffff;
  }

  .header__nav .nav-list__link:hover {
    color: #e0e0e0;
  }
  
  .header__nav .nav-list__link--active {
    color: var(--color-cyan-accent);
  }
  
  .header__nav .nav-list__link--active::after {
    background-color: var(--color-cyan-accent);
  }
  
  .header {
    z-index: 1001;
  }
}

/* ===== NAVIGATION ===== */
.nav-list {
  display: flex;
  gap: var(--space-4);
  align-items: center;
}

.nav-list__item {
  display: flex;
}

.nav-list__link {
  padding: var(--space-2);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
  position: relative;
  transition: color var(--transition-fast);
}

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

.nav-list__link--active {
  color: var(--color-brand-primary);
}

.nav-list__link--active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: var(--space-2);
  right: var(--space-2);
  height: 2px;
  background-color: var(--color-brand-primary);
}

/* ===== MOBILE MENU TOGGLE ===== */
.mobile-menu-toggle {
  display: none;
  padding: var(--space-2);
  color: var(--color-text-secondary);
  border-radius: var(--border-radius-md);
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.mobile-menu-toggle:hover {
  color: var(--color-text-primary);
  background-color: var(--color-bg-secondary);
}

.mobile-menu-toggle:focus-visible {
  outline: 2px solid var(--color-focus-ring);
  outline-offset: 2px;
}

.mobile-menu-toggle__icon {
  width: 24px;
  height: 24px;
  filter: brightness(0) saturate(100%) invert(58%) sepia(10%) saturate(200%) hue-rotate(180deg) brightness(95%) contrast(85%);
}

[data-theme="dark"] .mobile-menu-toggle__icon {
  filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

.mobile-menu-toggle__icon--close {
  display: none;
}

.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-toggle__icon--open {
  display: none;
}

.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-toggle__icon--close {
  display: block;
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    order: 3;
  }
  
  .theme-toggle {
    order: 2;
  }
  
  .header__logo {
    order: 1;
  }
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  font-weight: var(--font-weight-medium);
  border-radius: var(--border-radius-md);
  border: var(--border-width) solid var(--color-border-default);
  background: var(--color-bg-secondary);
  color: var(--color-text-secondary);
  transition: color var(--transition-fast), border-color var(--transition-fast), background-color var(--transition-fast);
}

.theme-toggle:hover {
  color: var(--color-text-primary);
  border-color: var(--color-brand-primary);
  background: var(--color-bg-tertiary);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--color-focus-ring);
  outline-offset: 2px;
}

.theme-toggle__icon {
  width: 20px;
  height: 20px;
  display: none;
}

.theme-toggle__icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

[data-theme="dark"] .theme-toggle__icon img {
  filter: brightness(0) invert(1);
}

[data-theme="light"] .theme-toggle__icon img {
  filter: none;
}

[data-theme="light"] .theme-toggle__icon--sun {
  display: inline-block;
}

[data-theme="light"] .theme-toggle__icon--moon {
  display: none;
}

[data-theme="dark"] .theme-toggle__icon--sun {
  display: none;
}

[data-theme="dark"] .theme-toggle__icon--moon {
  display: inline-block;
}

.theme-toggle__label {
  font-weight: var(--font-weight-medium);
}

/* ===== MAIN CONTENT ===== */
.main {
  min-height: calc(100vh - var(--header-height) - var(--footer-min-height));
}

/* ===== CONTAINER ===== */
.hero__container,
.stats__container,
.expertise__container,
.page-header__container,
.filters__container,
.projects__container,
.library__container,
.story__container,
.skills__container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

@media (max-width: 768px) {
  .hero__container,
  .stats__container,
  .expertise__container,
  .filters__container,
  .projects__container,
  .library__container,
  .story__container,
  .skills__container {
    padding: 0 var(--space-3);
  }
}

@media (max-width: 640px) {
  .hero__container,
  .stats__container,
  .expertise__container,
  .filters__container,
  .projects__container,
  .library__container,
  .story__container,
  .skills__container {
    padding: 0 var(--space-2);
  }
}

.hero {
  height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0a0a0a;
  
  /* Initial default background for no-JS fallback */
  background: 
    linear-gradient(135deg, rgba(10, 10, 10, 0.85) 0%, rgba(31, 59, 115, 0.75) 100%),
    url('../images/hero-bg.jpeg') center/cover no-repeat;
    
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(0, 217, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(215, 38, 56, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero__container {
  text-align: center;
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
  position: relative;
  z-index: 2;
}

.hero__headline {
  font-size: var(--font-size-6xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-4);
  background: linear-gradient(135deg, #00D9FF 0%, #C0C0C0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.8s ease-out;
  filter: drop-shadow(0 4px 20px rgba(0, 217, 255, 0.5));
}

.hero__subheadline {
  font-size: var(--font-size-xl);
  color: var(--color-text-secondary);
  max-width: 700px;
  margin: 0 auto var(--space-6);
  animation: fadeInUp 0.8s ease-out 0.2s both;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero__cta-group {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero__social {
  position: absolute;
  bottom: var(--space-5);
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  z-index: 2;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero__social-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--color-text-secondary);
  opacity: 0.55;
  transition: opacity var(--transition-fast), transform var(--transition-fast), color var(--transition-fast);
  line-height: 1;
}

.hero__social-link:hover {
  opacity: 1;
  color: var(--color-brand-primary);
  transform: translateY(-2px);
}

.hero__social-icon {
  width: 22px;
  height: 22px;
}

.hero__social-copy {
  font-size: var(--font-size-xs);
  color: var(--color-text-tertiary);
  opacity: 0.5;
}

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

@media (prefers-reduced-data: reduce) {
  .hero {
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.92) 0%, rgba(31, 59, 115, 0.82) 100%);
  }

  .hero::before,
  .hero__headline,
  .hero__subheadline,
  .hero__cta-group {
    animation: none;
    transition: none;
  }
}

@media (max-width: 768px) {
  .hero__headline {
    font-size: var(--font-size-4xl);
  }
  
  .hero__subheadline {
    font-size: var(--font-size-lg);
  }
}

@media (max-width: 640px) {
  .hero__headline {
    font-size: var(--font-size-3xl);
  }
  
  .hero__cta-group {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ===== BUTTONS ===== */
.button {
  display: inline-block;
  padding: var(--space-3) var(--space-6);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  font-family: var(--font-family-heading);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: var(--border-radius-lg);
  transition: all var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.button:hover::before {
  width: 300px;
  height: 300px;
}

.button--primary {
  background-color: transparent;
  color: var(--color-brand-primary);
  border: var(--border-width-thick) solid var(--color-brand-primary);
  box-shadow: 0 4px 15px rgba(61, 139, 253, 0.2);
}

.button--primary:hover {
  background: linear-gradient(135deg, #6ea8fe 0%, var(--color-brand-primary) 100%);
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(61, 139, 253, 0.6);
}

.button--secondary {
  background-color: transparent;
  color: var(--color-brand-primary);
  border: var(--border-width-thick) solid var(--color-brand-primary);
  box-shadow: 0 4px 15px rgba(61, 139, 253, 0.2);
}

.button--secondary:hover {
  background: linear-gradient(135deg, #6ea8fe 0%, var(--color-brand-primary) 100%);
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(61, 139, 253, 0.6);
}

.button:focus-visible {
  outline: 2px solid var(--color-focus-ring);
  outline-offset: 2px;
}

/* ===== STATS SECTION ===== */
.stats {
  padding: var(--space-12) 0;
  background:
    linear-gradient(135deg, rgba(10, 10, 10, 0.75) 0%, rgba(31, 59, 115, 0.75) 100%),
    url('../images/section-bg-1.jpeg') center/cover no-repeat;
  position: relative;
}

.stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(0, 217, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(215, 38, 56, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-6);
  text-align: center;
}

.stat-card {
  padding: var(--space-4);
}

.stat-card__value {
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-brand-primary);
  margin-bottom: var(--space-2);
  transition: color var(--transition-base);
  font-variant-numeric: tabular-nums;
}

.stat-card__label {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-1);
}

.stat-card__context {
  font-size: var(--font-size-sm);
  color: var(--color-text-tertiary);
}

/* ===== EXPERTISE SECTION ===== */
.expertise {
  padding: var(--space-12) 0;
  background:
    linear-gradient(135deg, rgba(10, 10, 10, 0.75) 0%, rgba(31, 59, 115, 0.75) 100%),
    url('../images/section-bg-2.jpeg') center/cover no-repeat;
  position: relative;
}

.expertise::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(0, 217, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(215, 38, 56, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-8);
  font-size: var(--font-size-4xl);
  background: linear-gradient(135deg, #00D9FF 0%, #1F3B73 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.expertise__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
}

.expertise-card {
  padding: var(--space-6);
  background: linear-gradient(135deg, rgba(31, 59, 115, 0.1) 0%, rgba(10, 10, 10, 0.3) 100%);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: var(--border-width) solid rgba(0, 217, 255, 0.2);
  border-radius: var(--border-radius-lg);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.expertise-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 217, 255, 0.1), transparent);
  transition: left 0.5s;
}

.expertise-card:hover::before {
  left: 100%;
}

.expertise-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 217, 255, 0.3);
  border-color: rgba(0, 217, 255, 0.5);
}

.expertise-card__title {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-3);
  color: var(--color-text-primary);
}

.expertise-card__capabilities {
  list-style: none;
  padding: 0;
  margin: 0;
}

.expertise-card__capabilities li {
  padding: var(--space-2) 0;
  color: var(--color-text-secondary);
  border-bottom: var(--border-width) solid var(--color-border-light);
}

.expertise-card__capabilities li:last-child {
  border-bottom: none;
}

.expertise-card__capabilities li::before {
  content: "✓ ";
  color: var(--color-brand-primary);
  font-weight: var(--font-weight-bold);
  margin-right: var(--space-2);
}

.expertise-card__description {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
}

.expertise-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--color-link);
  font-weight: var(--font-weight-medium);
}

/* ===== PAGE HEADER ===== */
.page-header {
  padding: var(--space-1);
  background:
    linear-gradient(135deg, rgba(10, 10, 10, 0.75) 0%, rgba(31, 59, 115, 0.75) 100%),
    url('../images/section-bg-3.jpeg') center/cover no-repeat;
  position: relative;
  border-bottom: 1px solid rgba(0, 217, 255, 0.2);
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(0, 217, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(215, 38, 56, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.page-header__container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
}

.page-header__icon {
  height: 150px;
  width: auto;
  justify-self: center;
  filter: drop-shadow(0 4px 20px rgba(0, 217, 255, 0.5));
}

.page-header__icon:hover {
  transform: scale(1.3);
}

.page-header__content {
  margin-left: var(--space-16);
}

@media (max-width: 768px) {
  .page-header__container {
    grid-template-columns: 1fr;
    gap: var(--space-2);
    text-align: left;
  }
  
  .page-header__content {
    margin-left: 0;
  }
  
  .page-header__icon {
    display: none;
  }
}

@media (max-width: 640px) {
  .page-header {
    padding: var(--space-3) var(--space-2);
  }
  
  .page-header__icon {
    height: 60px;
  }
  
  .page-header__container {
    gap: var(--space-2);
  }
}

.page-header__title {
  margin-bottom: var(--space-1);
  background: linear-gradient(135deg, #00D9FF 0%, #C0C0C0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: left;
}

.page-header__description {
  font-size: var(--font-size-base);
  max-width: 600px;
}

/* ===== FILTERS ===== */
.filters {
  padding: var(--space-2) 0;
  background: linear-gradient(135deg, rgba(10, 10, 10, 0.95) 0%, rgba(13, 13, 13, 0.95) 100%);
  border-bottom: var(--border-width) solid rgba(0, 217, 255, 0.1);
  scroll-margin-top: var(--header-height);
}

.filters__container {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  align-items: center;
}

.filters__group {
  display: flex;
  flex-direction: row;
  gap: var(--space-2);
  align-items: center;
  flex: 0 1 auto;
}

.filters__label {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  color: var(--color-filter-label);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filters__select {
  padding: var(--space-1) var(--space-3);
  background: linear-gradient(135deg, rgba(31, 59, 115, 0.2) 0%, rgba(10, 10, 10, 0.5) 100%);
  color: var(--color-text-primary);
  border: var(--border-width) solid rgba(0, 217, 255, 0.3);
  border-radius: var(--border-radius-sm);
  font-size: var(--font-size-sm);
  cursor: pointer;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transition: all var(--transition-fast);
  min-width: 150px;
}

.filters__search {
  padding: var(--space-1) var(--space-3);
  background: linear-gradient(135deg, rgba(31, 59, 115, 0.2) 0%, rgba(10, 10, 10, 0.5) 100%);
  color: var(--color-text-primary);
  border: var(--border-width) solid rgba(0, 217, 255, 0.3);
  border-radius: var(--border-radius-sm);
  font-size: var(--font-size-sm);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transition: all var(--transition-fast);
  min-width: 200px;
}

.filters__search::placeholder {
  color: var(--color-text-tertiary);
}

.filters__search:focus-visible {
  outline: 2px solid var(--color-cyan-accent);
  outline-offset: 2px;
  border-color: var(--color-cyan-accent);
  box-shadow: 0 0 15px rgba(0, 217, 255, 0.4);
}

[data-theme="light"] .filters__search {
  background: #ffffff;
  border-color: var(--color-border-default);
}

.filters__select:hover {
  border-color: rgba(0, 217, 255, 0.5);
  box-shadow: 0 2px 10px rgba(0, 217, 255, 0.2);
}

.filters__select:focus-visible {
  outline: 2px solid var(--color-cyan-accent);
  outline-offset: 2px;
  border-color: var(--color-cyan-accent);
  box-shadow: 0 0 15px rgba(0, 217, 255, 0.4);
}

@media (max-width: 768px) {
  .filters__container {
    gap: var(--space-2);
  }
  
  .filters__group {
    flex-direction: column;
    align-items: stretch;
    flex: 1 1 100%;
    gap: var(--space-1);
  }
  
  .filters__select,
  .filters__search {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .filters {
    padding: var(--space-3) 0;
  }
  
  .filters__label {
    font-size: var(--font-size-xs);
  }
}

/* ===== PROJECTS SECTION ===== */
.projects {
  padding: var(--space-12) 0;
  min-height: calc(100vh - var(--header-height) - 200px);
  background:
    linear-gradient(135deg, rgba(10, 10, 10, 0.75) 0%, rgba(31, 59, 115, 0.75) 100%),
    url('../images/section-bg-1.jpeg') center/cover no-repeat fixed;
  position: relative;
}

.projects::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(0, 217, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(215, 38, 56, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-6);
}

.projects__count {
  font-size: var(--font-size-sm);
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-4);
  min-height: 1.4em;
}

@media (max-width: 768px) {
  .projects__grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

@media (max-width: 640px) {
  .projects__grid {
    gap: var(--space-3);
  }
}

.project-card {
  background: linear-gradient(135deg, rgba(31, 59, 115, 0.1) 0%, rgba(10, 10, 10, 0.3) 100%);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: var(--border-width) solid rgba(0, 217, 255, 0.2);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  position: relative;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 217, 255, 0.1), transparent);
  transition: left 0.5s;
}

.project-card:hover::before {
  left: 100%;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 217, 255, 0.3);
  border-color: rgba(0, 217, 255, 0.5);
}

.project-card__image {
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: 
    radial-gradient(circle at 50% 50%, rgba(0, 217, 255, 0.15) 0%, transparent 50%),
    linear-gradient(135deg, rgba(31, 59, 115, 0.4) 0%, rgba(10, 10, 10, 0.6) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.project-card__icon {
  font-size: 52px;
  filter: drop-shadow(0 4px 20px rgba(0, 217, 255, 0.5));
  animation: iconFloat 3s ease-in-out infinite;
}

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

.project-card__content {
  padding: var(--space-3);
}

.project-card__title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-2);
}

.project-card__description {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-3);
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.project-card__tag {
  padding: var(--space-1) var(--space-2);
  font-size: var(--font-size-xs);
  background-color: var(--color-bg-tertiary);
  border-radius: var(--border-radius-full);
}

.project-card__tag--hidden {
  display: none;
}

.project-card__tag--more {
  background-color: rgba(0, 217, 255, 0.15);
  color: var(--color-brand-primary);
  border: 1px solid rgba(0, 217, 255, 0.3);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-weight: var(--font-weight-medium);
}

.project-card__tag--more:hover {
  background-color: rgba(0, 217, 255, 0.25);
  border-color: rgba(0, 217, 255, 0.5);
  transform: scale(1.05);
}

.project-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-4);
  margin-top: var(--space-3);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  background: linear-gradient(135deg, var(--color-brand-primary) 0%, #0099cc 100%);
  color: var(--color-text-inverse);
  border: none;
  border-radius: var(--border-radius-sm);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: all var(--transition-fast);
  box-shadow: none;
}

.project-card__link:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 12px rgba(0, 217, 255, 0.4);
  color: #ffffff;
}

.projects__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-12);
  color: var(--color-text-secondary);
}

/* ===== LIBRARY SECTION ===== */
.library {
  padding: var(--space-12) 0;
  min-height: calc(100vh - var(--header-height) - 200px);
  background:
    linear-gradient(135deg, rgba(10, 10, 10, 0.75) 0%, rgba(31, 59, 115, 0.75) 100%),
    url('../images/section-bg-2.jpeg') center/cover no-repeat fixed;
  overflow-x: hidden;
  position: relative;
}

.library::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(0, 217, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(215, 38, 56, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.library__grid {
  display: grid;
  gap: var(--space-3);
  max-width: 100%;
  width: 100%;
}

.library-item {
  padding: var(--space-3);
  background: linear-gradient(135deg, rgba(31, 59, 115, 0.1) 0%, rgba(10, 10, 10, 0.3) 100%);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: var(--border-width) solid rgba(0, 217, 255, 0.2);
  border-radius: var(--border-radius-md);
  transition: all var(--transition-base);
  position: relative;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-wrap: break-word;
  overflow: hidden;
}

.library-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 217, 255, 0.1), transparent);
  transition: left 0.5s;
}

.library-item:hover::before {
  left: 100%;
}

.library-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 217, 255, 0.3);
  border-color: rgba(0, 217, 255, 0.5);
}

.library-item__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-1);
  gap: var(--space-3);
}

.library-item__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.library-item__title {
  font-size: var(--font-size-lg);
  margin-bottom: 0;
  line-height: 1.3;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.library-item__meta {
  font-size: var(--font-size-xs);
  color: var(--color-text-tertiary);
  margin-top: var(--space-1);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.library-item__type {
  padding: var(--space-1) var(--space-2);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-cyan-accent);
  background: transparent;
  border: 1.5px solid var(--color-cyan-accent);
  border-radius: var(--border-radius-sm);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.library-item__button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  background: linear-gradient(135deg, var(--color-brand-primary) 0%, #0099cc 100%);
  color: var(--color-text-inverse);
  border: none;
  border-radius: var(--border-radius-sm);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all var(--transition-fast);
  box-shadow: none;
}

.library-item__button:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 12px rgba(0, 217, 255, 0.4);
  color: #ffffff;
}

.library-item__description {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
  line-height: 1.4;
  font-size: var(--font-size-sm);
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

.library-item__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-top: var(--space-2);
}

.library-item__tag {
  padding: var(--space-1) var(--space-2);
  font-size: var(--font-size-xs);
  background-color: var(--color-bg-tertiary);
  border-radius: var(--border-radius-full);
}

@media (max-width: 768px) {
  .library-item__header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }
  
  .library-item__actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  
  .library-item__button,
  .library-item__type {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .library-item {
    padding: var(--space-2);
  }
}

.library__empty {
  text-align: center;
  padding: var(--space-12);
  color: var(--color-text-secondary);
}

/* ===== PAGE FOOTER ===== */
.page-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  padding: var(--space-4) 0;
  border-top: var(--border-width) solid var(--color-border-default);
  background-color: var(--color-footer-bg);
}

.page-footer__link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--color-text-secondary);
  opacity: 0.55;
  transition: opacity var(--transition-fast), transform var(--transition-fast), color var(--transition-fast);
}

.page-footer__link:hover {
  opacity: 1;
  color: var(--color-brand-primary);
  transform: translateY(-2px);
}

.page-footer__icon {
  width: 22px;
  height: 22px;
}

.page-footer__copy {
  font-size: var(--font-size-xs);
  color: var(--color-text-tertiary);
  opacity: 0.5;
}

/* ===== STORY (About page) ===== */
.story {
  padding: var(--space-12) 0;
  background:
    linear-gradient(135deg, rgba(10, 10, 10, 0.75) 0%, rgba(31, 59, 115, 0.75) 100%),
    url('../images/section-bg-3.jpeg') center/cover no-repeat fixed;
  position: relative;
}

.story::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(0, 217, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(215, 38, 56, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.story__content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.story__content h1 {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-6);
  background: linear-gradient(135deg, var(--color-brand-primary) 0%, var(--color-brand-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.story__content h2 {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-semibold);
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
  color: var(--color-brand-primary);
}

.story__content > h2:first-child,
.story__content > h3:first-child {
  margin-top: 0;
}

.story__content p {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-4);
  color: var(--color-text-primary);
}

.story__content strong {
  font-weight: var(--font-weight-semibold);
  color: var(--color-brand-accent);
}

.story__content a {
  color: var(--color-brand-primary);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 217, 255, 0.3);
  transition: all var(--transition-base);
}

.story__content a:hover {
  color: var(--color-brand-secondary);
  border-bottom-color: var(--color-brand-secondary);
}

/* ===== CONTACT (About page) ===== */
.contact {
  padding: var(--space-12) 0;
  background:
    linear-gradient(135deg, rgba(10, 10, 10, 0.8) 0%, rgba(31, 59, 115, 0.6) 100%),
    url('../images/section-bg-1.jpeg') center/cover no-repeat fixed;
  position: relative;
}

.contact__container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
  text-align: center;
}

.contact__channels {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.contact__channel {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  background: rgba(0, 217, 255, 0.05);
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: var(--radius-lg);
  color: var(--color-text-primary);
  text-decoration: none;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  transition: background var(--transition-base), border-color var(--transition-base), transform var(--transition-base);
}

.contact__channel:hover {
  background: rgba(0, 217, 255, 0.12);
  border-color: var(--color-brand-primary);
  transform: translateY(-2px);
  color: var(--color-brand-primary);
}

.contact__channel-icon {
  font-size: var(--font-size-xl);
  line-height: 1;
}

/* ===== SKILLS (About page) ===== */
.skills {
  padding: var(--space-12) 0;
  background:
    linear-gradient(135deg, rgba(10, 10, 10, 0.75) 0%, rgba(31, 59, 115, 0.75) 100%),
    url('../images/section-bg-2.jpeg') center/cover no-repeat fixed;
  position: relative;
}

.skills::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(0, 217, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(215, 38, 56, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.skills__grid {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}

.skill-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  background: linear-gradient(135deg, rgba(31, 59, 115, 0.2) 0%, rgba(10, 10, 10, 0.4) 100%);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: var(--border-width) solid rgba(0, 217, 255, 0.2);
  border-radius: var(--border-radius-full);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.skill-pill::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 217, 255, 0.15), transparent);
  transition: left 0.5s;
}

.skill-pill:hover::before {
  left: 100%;
}

.skill-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 217, 255, 0.3);
  border-color: rgba(0, 217, 255, 0.5);
}

.skill-pill__name {
  position: relative;
  z-index: 1;
}

.skill-pill__dots {
  display: flex;
  gap: 3px;
  position: relative;
  z-index: 1;
}

.skill-pill__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-brand-primary);
  box-shadow: 0 0 4px rgba(0, 217, 255, 0.5);
}

/* ===== LIGHT THEME SURFACES ===== */
[data-theme="light"] .header {
  background-color: rgba(255, 255, 255, 0.9);
  border-bottom-color: var(--color-border-light);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .hero {
  background-color: var(--color-bg-primary);
  background:
    linear-gradient(135deg, rgba(243, 246, 252, 0.94) 0%, rgba(232, 236, 246, 0.96) 100%),
    url('../images/hero-bg.jpeg') center/cover no-repeat;
}

[data-theme="light"] .hero::before {
  background:
    radial-gradient(circle at 20% 50%, rgba(31, 59, 115, 0.14) 0%, transparent 55%),
    radial-gradient(circle at 80% 50%, rgba(34, 73, 140, 0.1) 0%, transparent 55%);
}

[data-theme="light"] .hero__headline {
  background: linear-gradient(135deg, #1f3b73 0%, #0f1f3f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 1px 4px rgba(15, 31, 63, 0.2));
}

[data-theme="light"] .hero__subheadline {
  text-shadow: none;
  color: var(--color-text-secondary);
}

[data-theme="light"] .section-title,
[data-theme="light"] .page-header__title {
  background: linear-gradient(135deg, #1f3b73 0%, #2f4f8f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .expertise,
[data-theme="light"] .stats,
[data-theme="light"] .projects,
[data-theme="light"] .library,
[data-theme="light"] .timeline,
[data-theme="light"] .story,
[data-theme="light"] .differentiator,
[data-theme="light"] .skills,
[data-theme="light"] .contact,
[data-theme="light"] .interests,
[data-theme="light"] .availability,
[data-theme="light"] .page-header,
[data-theme="light"] .resource-center-cards,
[data-theme="light"] .filters {
  background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf5 100%);
  background-attachment: scroll;
}

[data-theme="light"] .expertise-card,
[data-theme="light"] .project-card,
[data-theme="light"] .library-item,
[data-theme="light"] .skill-pill,
[data-theme="light"] .resource-center-card,
[data-theme="light"] .filters__select,
[data-theme="light"] .filters__search,
[data-theme="light"] .library-item__link {
  background: #ffffff;
  border-color: var(--color-border-default);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .expertise-card__capabilities li,
[data-theme="light"] .project-card__tag,
[data-theme="light"] .library-item__tag {
  border-color: var(--color-border-light);
}

[data-theme="light"] .button--primary,
[data-theme="light"] .button--secondary {
  color: var(--color-brand-primary);
  border-color: var(--color-brand-primary);
}

/* ===== SKELETON LOADING ===== */
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position:  400px 0; }
}

.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite linear;
  border-radius: var(--border-radius-md);
}

.skeleton-card {
  border: var(--border-width) solid rgba(0, 217, 255, 0.1);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  background: rgba(31, 59, 115, 0.06);
}

.skeleton-card__image {
  height: 140px;
  composes: skeleton;
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite linear;
}

.skeleton-card__content {
  padding: var(--space-3);
}

.skeleton-card__title {
  height: 1.2em;
  margin-bottom: var(--space-2);
  border-radius: var(--border-radius-sm);
  width: 60%;
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite linear;
}

.skeleton-card__body {
  height: 0.9em;
  margin-bottom: var(--space-1);
  border-radius: var(--border-radius-sm);
  width: 90%;
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite linear;
}

.skeleton-card__body:last-child { width: 70%; }

[data-theme="light"] .skeleton-card__image,
[data-theme="light"] .skeleton-card__title,
[data-theme="light"] .skeleton-card__body {
  background: linear-gradient(90deg, rgba(0,0,0,0.05) 25%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.05) 75%);
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite linear;
}

/* ===== UTILITY CLASSES ===== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

[hidden] {
  display: none !important;
}

/* Glowing Words Animation - Subtle & Crisp Version */
.glow-word {
    color: rgba(192, 192, 192, 0.95);
    font-weight: 400;
    display: inline;
    position: relative;
    transition: all 0.3s ease;
}

[data-theme="light"] .glow-word {
    color: inherit;
    font-weight: 400;
}

.glow-1 {
    animation: wordGlow 8s ease-in-out infinite 0s;
}

.glow-2 {
    animation: wordGlow 8s ease-in-out infinite 2s;
}

.glow-3 {
    animation: wordGlow 8s ease-in-out infinite 4s;
}

.glow-4 {
    animation: wordGlow 8s ease-in-out infinite 6s;
}

@keyframes wordGlow {
    0%, 100% {
        color: rgba(192, 192, 192, 0.95);
        text-shadow: none;
    }
    12.5% {
        color: #00D9FF;
        text-shadow: 
            0 0 20px rgba(0, 217, 255, 0.8),
            0 0 40px rgba(0, 217, 255, 0.5),
            0 0 60px rgba(0, 217, 255, 0.3);
    }
    25% {
        color: rgba(192, 192, 192, 0.95);
        text-shadow: none;
    }
}

/* Light theme variation for glow */
[data-theme="light"] .glow-word {
  animation-name: wordGlowLight;
}

@keyframes wordGlowLight {
    0%, 100% {
        color: inherit;
        text-shadow: none;
    }
    12.5% {
        color: var(--color-brand-primary);
        text-shadow: 
            0 0 10px rgba(31, 59, 115, 0.4),
            0 0 20px rgba(31, 59, 115, 0.2);
    }
    25% {
        color: inherit;
        text-shadow: none;
    }
}

[data-theme="light"] .header__logo-text {
  color: #1f3b73;
}
