/* ============================================
   FOLIOBLOX — Components
   ============================================ */

/* ═══════════════════════════════════════════
   SCROLL PROGRESS BAR
   ═══════════════════════════════════════════ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 5px; /* Thicker for better visibility */
  background: var(--gradient-button-glow);
  box-shadow: 0 0 10px rgba(255, 77, 0, 0.5); /* Added glow */
  z-index: calc(var(--z-nav) + 1);
  transform-origin: left;
  transform: scaleX(0);
  transition: none;
  will-change: transform;
}

/* ═══════════════════════════════════════════
   CUSTOM CURSOR
   ═══════════════════════════════════════════ */
.cursor-dot {
  display: none !important;
  position: fixed;
  top: 0;
  left: 0;
  width: var(--cursor-dot-size);
  height: var(--cursor-dot-size);
  background-color: var(--color-primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: var(--z-cursor);
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease, opacity 0.3s ease;
  will-change: transform;
}

.cursor-ring {
  display: none !important;
  position: fixed;
  height: 40px;
  border: 1px solid var(--color-on-surface);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9998;
  opacity: 0;
  transition: width 0.3s var(--ease-out-expo), height 0.3s var(--ease-out-expo),
              background 0.3s var(--ease-out-expo), border 0.3s var(--ease-out-expo);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cursor-text {
  font: var(--text-label-sm);
  color: #fff;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.3s var(--ease-out-expo), transform 0.3s var(--ease-out-expo);
  letter-spacing: 0.1em;
  font-weight: 700;
}

.cursor-ring.hovering {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.05);
}

.cursor-ring.morph-view {
  width: 100px;
  height: 100px;
  background: var(--color-solar-orange);
  border-color: transparent;
  mix-blend-mode: normal;
}

.cursor-ring.morph-view .cursor-text {
  opacity: 1;
  transform: scale(1);
}

.cursor-dot.hovering {
  width: 16px;
  height: 16px;
  background: rgba(255, 77, 0, 0.4);
  mix-blend-mode: normal;
}

/* ═══════════════════════════════════════════
   AWWWARDS LOADER SPECTACLE
   ═══════════════════════════════════════════ */
.awwwards-loader {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--color-on-surface);
}

.awwwards-loader__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  transform: translateY(20px);
  opacity: 0; /* Will be animated in by GSAP */
}

.awwwards-loader__counter {
  font: 800 clamp(80px, 15vw, 200px)/1 var(--font-display);
  letter-spacing: -0.04em;
  color: var(--color-solar-orange);
  font-variant-numeric: tabular-nums; /* Prevents jumping */
}

.awwwards-loader__counter::after {
  content: '%';
  font-size: 0.5em;
  color: var(--color-on-surface-variant);
  margin-left: -5px;
}

.awwwards-loader__text {
  font: var(--text-label-sm);
  letter-spacing: var(--text-label-sm-ls);
  text-transform: uppercase;
  color: var(--color-on-surface-variant);
}

.cursor-ring.hovering {
  width: 60px;
  height: 60px;
  border-color: var(--color-solar-orange);
  opacity: 0.6;
}

.cursor-dot.clicking {
  width: 6px;
  height: 6px;
}

.cursor-ring.clicking {
  width: 30px;
  height: 30px;
}

@media (hover: none) and (pointer: coarse) {
  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }
}

/* ═══════════════════════════════════════════
   LOADING SCREEN
   ═══════════════════════════════════════════ */
.loader {
  position: fixed;
  inset: 0;
  z-index: var(--z-loader);
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-xl);
  transition: opacity 0.6s var(--ease-out-expo), visibility 0.6s;
}

.loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader__name {
  font: 800 clamp(28px, 5vw, 56px)/1 var(--font-display);
  letter-spacing: -0.04em;
  color: var(--color-on-surface);
  display: flex;
  overflow: hidden;
}

.loader__letter {
  display: inline-block;
  transform: translateY(100%);
  opacity: 0;
  animation: letterReveal 0.5s var(--ease-out-expo) forwards;
}

.loader__letter--space {
  width: 0.3em;
}

.loader__bar {
  width: clamp(120px, 20vw, 200px);
  height: 2px;
  background: var(--color-surface-container-highest);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.bento-card__icon {
  width: 48px;
  height: 48px;
  background: var(--color-surface-container-highest);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-xl);
  color: var(--color-solar-orange);
}

.bento-card__icon svg {
  width: 24px;
  height: 24px;
}

/* ═══════════════════════════════════════════
   BREADCRUMBS (WAYFINDING)
   ═══════════════════════════════════════════ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font: var(--text-label-sm);
  letter-spacing: var(--text-label-sm-ls);
  text-transform: uppercase;
  color: var(--color-on-surface-variant);
  margin-bottom: var(--space-xl);
  opacity: 0.8;
}

.breadcrumb a {
  color: var(--color-on-surface-variant);
  transition: color var(--duration-normal);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--color-solar-orange);
}

.breadcrumb__separator {
  color: var(--color-on-surface-faint);
  font-size: 0.8em;
}

.breadcrumb__current {
  color: var(--color-solar-orange);
}

.loader__bar-fill {
  position: absolute;
  inset: 0;
  background: var(--color-solar-orange);
  border-radius: var(--radius-full);
  transform-origin: left;
  animation: loaderFill 1.8s var(--ease-in-out-quart) forwards;
}

/* ═══════════════════════════════════════════
   PAGE TRANSITION CURTAIN
   ═══════════════════════════════════════════ */
.page-transition-curtain {
  position: fixed;
  inset: 0;
  background: var(--color-surface);
  z-index: 9999;
  pointer-events: none;
  transform: scaleY(1);
  transform-origin: bottom;
}

/* ═══════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════ */
.project-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-surface-container-highest);
  border-radius: var(--radius-2xl);
  padding: var(--space-2xl);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 400px;
  overflow: hidden;
  /* Hover effects handled by JS and WebGL now */
}

/* Ensure text sits above the WebGL background */
.project-card > div:not(.webgl-hover-bg) {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

/* WebGL Background Container */
.webgl-hover-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.2; /* Subtle by default */
  transition: opacity 0.5s var(--ease-out-expo);
  pointer-events: none;
}

.project-card:hover .webgl-hover-bg {
  opacity: 0.8; /* Gets brighter on hover while liquid distorts */
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  padding: var(--space-lg) var(--page-margin);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s var(--ease-out-quart), 
              padding 0.4s var(--ease-out-quart),
              backdrop-filter 0.4s;
}

.nav.scrolled {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding-top: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.nav__logo {
  font: 800 clamp(16px, 1.5vw, 20px)/1 var(--font-display);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--color-on-surface);
  white-space: nowrap;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
}

.nav__link {
  font: var(--text-label-sm);
  letter-spacing: var(--text-label-sm-ls);
  text-transform: uppercase;
  color: var(--color-on-surface-variant);
  position: relative;
  padding: var(--space-xs) 0;
  transition: color var(--duration-normal) var(--ease-out-quart);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--color-solar-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-normal) var(--ease-out-expo);
}

.nav__link:hover,
.nav__link--active {
  color: var(--color-on-surface);
}

.nav__link:hover::after,
.nav__link--active::after {
  transform: scaleX(1);
}

.nav__link--active {
  color: var(--color-solar-orange);
  background: rgba(255, 77, 0, 0.1);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 77, 0, 0.2);
}

.nav__link--active::after {
  display: none; /* Hide the underline since we have a pill now */
}

/* External Link Icon */
a[target="_blank"]::after {
  content: '↗';
  display: inline-block;
  margin-left: 4px;
  font-family: var(--font-body);
  font-size: 0.9em;
  opacity: 0.7;
  transition: transform var(--duration-normal);
}
a[target="_blank"]:hover::after {
  transform: translate(2px, -2px);
  opacity: 1;
}

/* Ensure buttons don't double up on the external icon if they have their own icons */
.btn[target="_blank"]::after {
  display: none;
}

.nav__cta {
  flex-shrink: 0;
}

/* Mobile Menu Toggle */
.nav__toggle {
  display: none;
  width: 32px;
  height: 24px;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
  background: none;
  border: none;
}

.nav__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-on-surface);
  border-radius: var(--radius-full);
  transition: all var(--duration-normal) var(--ease-out-expo);
  transform-origin: center;
}

.nav__toggle.open span:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}

.nav__toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav__toggle.open span:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}

/* Mobile Nav */
.nav__mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: calc(var(--z-nav) - 1);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3xl);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}

.nav__mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.nav__mobile-menu .nav__link {
  font: 600 clamp(24px, 5vw, 32px)/1.2 var(--font-display);
  letter-spacing: -0.02em;
  text-transform: none;
}

@media (max-width: 768px) {
  .nav__links {
    display: none;
  }

  .nav__cta {
    display: none !important;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__mobile-menu {
    display: flex;
  }
}

/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font: var(--text-label-sm);
  letter-spacing: var(--text-label-sm-ls);
  text-transform: uppercase;
  transition: all var(--duration-normal) var(--ease-out-expo);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--duration-normal);
}

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

.btn--primary::before {
  background: var(--gradient-button-glow);
}

.btn--primary:hover {
  box-shadow: var(--shadow-button-glow);
  transform: translateY(-1px);
}

.btn--primary:hover::before {
  opacity: 1;
}

.btn--primary:active {
  transform: translateY(0) scale(0.98);
}

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

.btn--secondary:hover {
  border-color: var(--color-solar-orange);
  color: var(--color-solar-orange);
  background: var(--color-solar-orange-subtle);
}

.btn--ghost {
  background: transparent;
  color: var(--color-on-surface);
  padding: 8px 16px;
}

.btn--ghost:hover {
  color: var(--color-solar-orange);
}

.btn__icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  transition: transform var(--duration-normal) var(--ease-out-expo);
}

.btn:hover .btn__icon {
  transform: translateX(3px);
}

.btn__icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ═══════════════════════════════════════════
   BENTO CARDS
   ═══════════════════════════════════════════ */
.bento-card {
  background: var(--elevation-1);
  border-radius: var(--radius-2xl);
  padding: clamp(24px, 3vw, 40px);
  position: relative;
  overflow: hidden;
  transition: all var(--duration-slow) var(--ease-out-expo);
  border: 1px solid transparent;
}

.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--gradient-card-hover);
  opacity: 0;
  transition: opacity var(--duration-slow);
  pointer-events: none;
}

.bento-card:hover {
  border-color: var(--color-solar-orange);
  transform: translateY(-6px) scale(1.02); /* More obvious scale */
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 77, 0, 0.15); /* Obvious glow */
}

.bento-card:hover::before {
  opacity: 1;
}

.bento-card--interactive {
  cursor: pointer;
}

@media (hover: none) {
  .bento-card--interactive { cursor: pointer; }
}

.bento-card--interactive:hover {
  border-color: rgba(255, 77, 0, 0.3);
}

.bento-card__label {
  font: var(--text-label-sm);
  letter-spacing: var(--text-label-sm-ls);
  text-transform: uppercase;
  color: var(--color-solar-orange);
  margin-bottom: var(--space-lg);
}

.bento-card__title {
  font: var(--text-headline-md);
  letter-spacing: var(--text-headline-md-ls);
  color: var(--color-on-surface);
  margin-bottom: var(--space-md);
}

.bento-card__description {
  font: var(--text-body-md);
  color: var(--color-on-surface-variant);
  margin-bottom: var(--space-xl);
}

.bento-card__divider {
  width: 100%;
  height: 1px;
  background: var(--color-on-surface-faint);
  margin: var(--space-xl) 0;
}

/* ═══════════════════════════════════════════
   TECH TAGS / CHIPS
   ═══════════════════════════════════════════ */
.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font: var(--text-label-sm);
  letter-spacing: 0.02em;
  border: 1px solid var(--color-on-surface-faint);
  color: var(--color-on-surface-variant);
  transition: all var(--duration-normal) var(--ease-out-quart);
  position: relative;
  overflow: hidden;
}

/* Shimmer effect on hover */
.tag::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -100%;
  width: 50%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transition: left 0.5s var(--ease-out-expo);
}

.tag:hover::after {
  left: 150%;
}

.tag:hover {
  border-color: var(--color-solar-orange);
  color: var(--color-solar-orange);
  background: var(--color-solar-orange-subtle);
}

.tag--active {
  background: var(--color-solar-orange);
  border-color: var(--color-solar-orange);
  color: #ffffff;
}

/* ═══════════════════════════════════════════
   IMPACT METRICS
   ═══════════════════════════════════════════ */
.impact {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.impact__label {
  font: var(--text-label-sm);
  letter-spacing: var(--text-label-sm-ls);
  text-transform: uppercase;
  color: var(--color-solar-orange);
}

.impact__value {
  font: var(--text-headline-md);
  letter-spacing: var(--text-headline-md-ls);
  color: var(--color-on-surface);
}

/* ═══════════════════════════════════════════
   FORM ELEMENTS
   ═══════════════════════════════════════════ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form-label {
  font: var(--text-label-sm);
  letter-spacing: var(--text-label-sm-ls);
  text-transform: uppercase;
  color: var(--color-on-surface-variant);
}

.form-input {
  width: 100%;
  padding: 14px 18px;
  background: var(--color-surface-container-lowest);
  border: 1px solid var(--color-on-surface-faint);
  border-radius: var(--radius-lg);
  color: var(--color-on-surface);
  font: var(--text-body-md);
  transition: border-color var(--duration-normal), box-shadow var(--duration-normal);
}

.form-input::placeholder {
  color: var(--color-on-surface-muted);
}

.form-input:focus {
  border-color: var(--color-solar-orange);
  box-shadow: var(--shadow-input-focus);
}

textarea.form-input {
  resize: vertical;
  min-height: 150px;
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.footer {
  padding: var(--space-3xl) var(--page-margin);
  border-top: 1px solid var(--color-on-surface-faint);
}

.footer__inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-xl);
}

.footer__logo {
  font: 800 clamp(16px, 1.5vw, 20px)/1 var(--font-display);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--color-on-surface);
}

.footer__copy {
  font: var(--text-body-sm);
  color: var(--color-on-surface-muted);
}

.footer__links {
  display: flex;
  gap: var(--space-xl);
}

.footer__link {
  font: var(--text-label-sm);
  letter-spacing: var(--text-label-sm-ls);
  color: var(--color-solar-orange);
  transition: color var(--duration-normal);
  position: relative;
}

.footer__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--color-solar-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-normal) var(--ease-out-expo);
}

.footer__link:hover::after {
  transform: scaleX(1);
}

@media (max-width: 768px) {
  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ═══════════════════════════════════════════
   SERVICE STRIP
   ═══════════════════════════════════════════ */
.service-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-xl);
  padding: var(--space-3xl) 0;
}

.service-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.service-item__number {
  font: var(--text-label-sm);
  letter-spacing: var(--text-label-sm-ls);
  color: var(--color-solar-orange);
}

.service-item__name {
  font: var(--text-body-sm);
  color: var(--color-on-surface-variant);
}

@media (max-width: 1024px) {
  .service-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .service-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ═══════════════════════════════════════════
   COLLABORATIONS BAR
   ═══════════════════════════════════════════ */
.collab-bar {
  display: flex;
  align-items: center;
  gap: var(--space-3xl);
  padding: var(--space-2xl) 0;
  flex-wrap: wrap;
}

.collab-bar__label {
  font: var(--text-body-sm);
  color: var(--color-on-surface-muted);
  max-width: 140px;
  line-height: 1.4;
  flex-shrink: 0;
}

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

.collab-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font: 600 clamp(14px, 1.2vw, 18px)/1 var(--font-display);
  color: var(--color-on-surface-variant);
  white-space: nowrap;
  transition: color var(--duration-normal);
}

.collab-item:hover {
  color: var(--color-on-surface);
}

.collab-item__icon {
  width: 20px;
  height: 20px;
  opacity: 0.6;
}

.collab-item__icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

/* ═══════════════════════════════════════════
   EXPERIENCE TIMELINE
   ═══════════════════════════════════════════ */
.experience {
  padding: clamp(24px, 3vw, 40px);
}

.experience__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.experience__company {
  font: var(--text-label-sm);
  letter-spacing: var(--text-label-sm-ls);
  text-transform: uppercase;
  color: var(--color-solar-orange);
  margin-bottom: var(--space-xs);
}

.experience__role {
  font: var(--text-headline-md);
  letter-spacing: var(--text-headline-md-ls);
  color: var(--color-on-surface);
}

.experience__date {
  font: var(--text-label-sm);
  letter-spacing: 0.02em;
  color: var(--color-on-surface-variant);
  background: var(--color-surface-container-high);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.experience__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.experience__list li {
  font: var(--text-body-md);
  color: var(--color-on-surface-variant);
  padding-left: var(--space-lg);
  position: relative;
  line-height: 1.6;
}

.experience__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-solar-orange);
}

/* ═══════════════════════════════════════════
   DIRECT CONTACT CARD
   ═══════════════════════════════════════════ */
.contact-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

.contact-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font: var(--text-label-sm);
  letter-spacing: var(--text-label-sm-ls);
  text-transform: uppercase;
  color: var(--color-solar-orange);
}

.contact-card__header svg {
  width: 18px;
  height: 18px;
  fill: var(--color-solar-orange);
}

.contact-card__email {
  font: var(--text-headline-md);
  letter-spacing: var(--text-headline-md-ls);
  color: var(--color-on-surface);
  word-break: break-all;
  transition: color var(--duration-normal);
}

.contact-card__email:hover {
  color: var(--color-solar-orange);
}

.contact-card__social {
  display: flex;
  gap: var(--space-2xl);
  margin-top: var(--space-xl);
}

.social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-on-surface-variant);
  transition: color var(--duration-normal), transform var(--duration-normal);
}

.social-link:hover {
  color: var(--color-solar-orange);
  transform: translateY(-2px);
}

.social-link__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: var(--color-surface-container-high);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration-normal), border-color var(--duration-normal);
  border: 1px solid transparent;
}

.social-link:hover .social-link__icon {
  background: var(--color-solar-orange-subtle);
  border-color: rgba(255, 77, 0, 0.2);
}

.social-link__icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.social-link__label {
  font: var(--text-label-sm);
  letter-spacing: var(--text-label-sm-ls);
}


/* ═══════════════════════════════════════════
   VIEW TOGGLE (GRID / LIST)
   ═══════════════════════════════════════════ */
.view-toggle {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-xs);
  margin-bottom: var(--space-xl);
}

.view-toggle__btn {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  color: var(--color-on-surface-variant);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.view-toggle__btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-on-surface);
}

.view-toggle__btn--active {
  background: var(--color-solar-orange);
  color: var(--color-surface);
  border-color: var(--color-solar-orange);
}

.view-toggle__btn--active:hover {
  background: var(--color-solar-orange);
  color: var(--color-surface);
}

/* ═══════════════════════════════════════════
   LIST VIEW OVERRIDES
   ═══════════════════════════════════════════ */
.view-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.view-list .projects-row-1,
.view-list .projects-row-2,
.view-list .bento-grid--projects {
  display: contents; /* Strip out the grid wrappers */
}

.view-list .project-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg);
  gap: var(--space-lg);
  min-height: auto;
  border-radius: var(--radius-md);
}

.view-list .project-card > div:first-child {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex: 1;
}

.view-list .project-card__icon {
  margin-bottom: 0 !important;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
}

.view-list .project-card__icon svg {
  width: 24px;
  height: 24px;
}

.view-list .project-card__title {
  margin-bottom: 4px;
  font-size: 1.25rem;
}

.view-list .project-card__description {
  display: none; /* Hide description to keep list ultra clean */
}

.view-list .project-card__meta {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-xl);
  margin-top: 0;
}

.view-list .project-card__tags {
  margin-bottom: 0;
}

.view-list .project-card__impact {
  text-align: right;
  min-width: 150px;
}

@media (max-width: 900px) {
  .view-list .project-card {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .view-list .project-card__meta {
    width: 100%;
    justify-content: space-between;
  }
  
  .view-list .project-card__impact {
    text-align: left;
  }
}
