/* ==========================================================================
   Jabir Faisal Portfolio — Modern Dark Theme + Glassmorphism Design System
   Phase 1: Foundation only. Section-specific styles come in later phases.
   ========================================================================== */

:root {
  /* Base backgrounds */
  --bg-primary: #0a0e17;
  --bg-secondary: #0f1420;
  --bg-elevated: #131a2b;

  /* Glass surfaces */
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-bg-hover: rgba(255, 255, 255, 0.07);
  --glass-border: rgba(255, 255, 255, 0.10);
  --glass-blur: 16px;

  /* Accent (brand) — electric blue + violet gradient */
  --accent-primary: #5B8DEF;
  --accent-secondary: #8B5CF6;
  --accent-gradient: linear-gradient(135deg, #5B8DEF 0%, #8B5CF6 100%);

  /* Text */
  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #5C6B82;

  /* Status */
  --success: #34D399;
  --warning: #FBBF24;
  --error: #F87171;

  /* Shadows / Glow */
  --glow-primary: 0 0 40px rgba(91, 141, 239, 0.25);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);

  /* Typography scale */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --text-h1: clamp(36px, 6vw, 64px);
  --text-h2: clamp(28px, 4vw, 40px);
  --text-h3: 24px;
  --text-body: 16px;
  --text-small: 13px;
}

/* --------------------------------------------------------------------------
   Base reset & typography
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  background: var(--bg-primary);
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, .head-text {
  font-size: var(--text-h1);
  font-weight: 700;
}

h2, .heading {
  font-size: var(--text-h2);
  font-weight: 600;
}

h3 {
  font-size: var(--text-h3);
  font-weight: 600;
}

p,
.head-para {
  color: var(--text-secondary);
}

a {
  color: var(--accent-primary);
  transition: color 0.25s ease;
}

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

/* Section label / tag style */
.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Gradient text utility */
.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --------------------------------------------------------------------------
   Glass card utility
   -------------------------------------------------------------------------- */

.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--shadow-card);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  background: var(--glass-bg-hover);
  border-color: rgba(91, 141, 239, 0.4);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card), var(--glow-primary);
}

.glass-card--interactive:hover {
  background: var(--glass-bg-hover);
  border-color: rgba(91, 141, 239, 0.4);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card), var(--glow-primary);
}

/* --------------------------------------------------------------------------
   Background treatment — gradient blobs + optional noise overlay
   -------------------------------------------------------------------------- */

.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
}

.bg-blob--primary {
  width: 600px;
  height: 600px;
  top: -10%;
  left: -5%;
  background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
}

.bg-blob--secondary {
  width: 500px;
  height: 500px;
  top: 40%;
  right: -10%;
  background: radial-gradient(circle, var(--accent-secondary) 0%, transparent 70%);
}

.bg-blob--accent {
  width: 400px;
  height: 400px;
  bottom: -5%;
  left: 30%;
  background: radial-gradient(circle, var(--accent-primary) 0%, var(--accent-secondary) 50%, transparent 70%);
}

.bg-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* --------------------------------------------------------------------------
   Layout shell overrides (Bootstrap coexistence)
   -------------------------------------------------------------------------- */

.site-wrap {
  position: relative;
  z-index: 1;
  background: transparent;
}

.main-content {
  position: relative;
  z-index: 1;
}

.site-section,
.site-section-hero,
.container-fluid.site-section {
  background: transparent;
}

/* Override legacy white cards until Phase 3 restyles them */
.code-project-card.bg-white {
  background: var(--glass-bg) !important;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

/* Bootstrap button baseline overrides for dark theme */
.btn-primary {
  background: var(--accent-gradient);
  border: none;
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, #4a7de0 0%, #7a4ce8 100%);
  box-shadow: var(--glow-primary);
}

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

.btn-dark:hover {
  background: var(--glass-bg-hover);
  border-color: rgba(91, 141, 239, 0.4);
  color: var(--text-primary);
}

/* ==========================================================================
   Phase 2 — Navbar + Hero
   ========================================================================== */

/* Override legacy sidebar layout */
.main-content {
  float: none !important;
  width: 100% !important;
  padding-top: 80px;
}

body.mobile-menu-open {
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   UI Buttons (Blade component)
   -------------------------------------------------------------------------- */

.ui-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.ui-btn--primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(91, 141, 239, 0.35);
}

.ui-btn--primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--glow-primary);
}

.ui-btn--outline {
  background: var(--glass-bg);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

.ui-btn--outline:hover {
  color: var(--text-primary);
  background: var(--glass-bg-hover);
  border-color: rgba(91, 141, 239, 0.4);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Modern Navbar
   -------------------------------------------------------------------------- */

.modern-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  padding: 1rem 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modern-nav--scrolled {
  padding: 0.65rem 0;
}

.modern-nav--scrolled .modern-nav__inner {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--shadow-card);
  border-radius: 16px;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.modern-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 1320px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modern-nav__logo {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
  flex-shrink: 0;
}

.modern-nav__logo:hover {
  opacity: 0.9;
}

.modern-nav__links {
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.modern-nav__link {
  position: relative;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.25rem 0;
  transition: color 0.25s ease;
}

.modern-nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modern-nav__link:hover {
  color: var(--text-primary);
}

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

.modern-nav__auth-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  transform: none !important;
}

.modern-nav__auth-btn:hover {
  color: var(--text-primary);
  transform: none !important;
}

.modern-nav__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid rgba(91, 141, 239, 0.5);
  background: var(--accent-gradient);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.25s ease;
}

.modern-nav__avatar:hover {
  box-shadow: var(--glow-primary);
}

.modern-nav__user-dropdown {
  position: relative;
}

.modern-nav__dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 200px;
  padding: 0.75rem;
  border-radius: 14px;
  transform: none !important;
}

.modern-nav__dropdown-menu:hover {
  transform: none !important;
}

.modern-nav__dropdown-name {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 0.35rem;
}

.modern-nav__dropdown-link {
  display: block;
  padding: 0.55rem 0.75rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}

.modern-nav__dropdown-link:hover {
  background: var(--glass-bg-hover);
  color: var(--text-primary);
}

.modern-nav__dropdown-link--danger:hover {
  color: var(--error);
}

.modern-nav__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  cursor: pointer;
}

.modern-nav__hamburger span {
  display: block;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s ease;
}

/* --------------------------------------------------------------------------
   Mobile menu overlay
   -------------------------------------------------------------------------- */

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  pointer-events: none;
  visibility: hidden;
}

.mobile-menu-overlay.is-open {
  pointer-events: auto;
  visibility: visible;
}

.mobile-menu-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 23, 0.75);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.mobile-menu-overlay.is-open .mobile-menu-overlay__backdrop {
  opacity: 1;
}

.mobile-menu-overlay__panel {
  position: absolute;
  inset: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu-overlay.is-open .mobile-menu-overlay__panel {
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu-overlay__panel:hover {
  transform: translateY(0) !important;
}

.mobile-menu-overlay__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-overlay__links {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}

.mobile-menu-overlay__links li,
.mobile-menu-overlay__auth,
.mobile-menu-overlay__social {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  transition-delay: calc(var(--i, 0) * 80ms + 100ms);
}

.mobile-menu-overlay.is-open .mobile-menu-overlay__links li,
.mobile-menu-overlay.is-open .mobile-menu-overlay__auth,
.mobile-menu-overlay.is-open .mobile-menu-overlay__social {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu-overlay__link {
  display: block;
  padding: 0.85rem 1rem;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
}

.mobile-menu-overlay__social {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

.mobile-menu-overlay__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.25s ease;
}

.mobile-menu-overlay__social a:hover {
  color: var(--accent-primary);
  border-color: rgba(91, 141, 239, 0.4);
  transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   Hero section
   -------------------------------------------------------------------------- */

.hero-section {
  padding: 3rem 0 4rem;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
}

.hero-section__grid {
  row-gap: 2.5rem;
}

.hero-section__label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  margin-bottom: 1.5rem;
  font-size: var(--text-small);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transform: none !important;
}

.hero-section__label:hover {
  transform: none !important;
}

.hero-section__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: hero-pulse 2s infinite;
}

@keyframes hero-pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero-section__title {
  font-size: var(--text-h1);
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.1;
}

.hero-section__subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 500;
  color: var(--accent-primary);
  margin-bottom: 1.25rem;
}

.hero-section__intro {
  max-width: 540px;
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.hero-section__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.hero-section__image-wrap {
  position: relative;
  width: 100%;
  max-width: 380px;
  border-radius: 24px;
  padding: 4px;
  background: var(--accent-gradient);
  box-shadow: var(--glow-primary);
  animation: hero-float 4s ease-in-out infinite alternate;
}

@keyframes hero-float {
  from { transform: translateY(0); }
  to { transform: translateY(-14px); }
}

.hero-section__image {
  display: block;
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center;
  border-radius: 20px;
}

.hero-section__stats {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 3.5rem;
  padding: 1.75rem 2rem;
  transform: none !important;
}

.hero-section__stats:hover {
  transform: none !important;
  border-color: var(--glass-border);
  background: var(--glass-bg);
  box-shadow: var(--shadow-card);
}

.hero-section__stat {
  text-align: center;
  flex: 1;
  min-width: 120px;
}

.hero-section__stat-value {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-section__stat-label {
  display: block;
  font-size: var(--text-small);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.hero-section__stat-divider {
  width: 1px;
  height: 48px;
  background: var(--glass-border);
}

@media (max-width: 991.98px) {
  .hero-section__stat-divider {
    display: none;
  }

  .hero-section__image {
    height: 320px;
  }

  .hero-section__visual {
    order: -1;
  }
}

@media (max-width: 575.98px) {
  .main-content {
    padding-top: 72px;
  }

  .hero-section {
    padding-top: 1.5rem;
    min-height: auto;
  }

  .hero-section__ctas {
    flex-direction: column;
  }

  .hero-section__ctas .ui-btn {
    width: 100%;
  }
}

/* ==========================================================================
   Phase 3 — Projects Section
   ========================================================================== */

.projects-section {
  padding: 4rem 0;
}

.projects-section__header {
  text-align: center;
  margin-bottom: 3rem;
}

.projects-section__title {
  margin: 0.75rem 0 0.5rem;
}

.projects-section__subtitle {
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 2rem;
}

.projects-section__empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  padding: 3rem 1rem;
}

.projects-filter {
  display: inline-flex;
  gap: 0.5rem;
  padding: 0.35rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

.projects-filter__btn {
  padding: 0.55rem 1.35rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.projects-filter__btn:hover {
  color: var(--text-primary);
}

.projects-filter__btn.is-active {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 16px rgba(91, 141, 239, 0.35);
}

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

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

@media (max-width: 575.98px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

.project-card-wrap {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card-wrap.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.project-card-wrap.is-hidden {
  display: none;
}

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

.project-card__type-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
}

.project-card__thumb {
  position: relative;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
  aspect-ratio: 16 / 10;
}

.project-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    to top,
    rgba(10, 14, 23, 0.85) 0%,
    rgba(10, 14, 23, 0.45) 100%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
}

.project-card:hover .project-card__overlay {
  opacity: 1;
}

.project-card:hover .project-card__image {
  transform: scale(1.05);
}

.project-card__view-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  background: var(--accent-gradient);
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transform: translateY(8px);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-card__view-btn {
  transform: translateY(0);
  opacity: 1;
}

.project-card__view-btn:hover {
  color: #fff;
  box-shadow: var(--glow-primary);
}

.project-card__body {
  padding: 1.25rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.85rem;
}

.project-card__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.35;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.project-card__meta {
  margin-top: auto;
  padding-top: 0.25rem;
}

.project-card__views {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.project-card__views .icon-eye {
  font-size: 1rem;
}

/* UI Badges */
.ui-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}

.ui-badge--free {
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: var(--success);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.ui-badge--paid {
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: var(--warning);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.ui-badge--tech {
  background: rgba(91, 141, 239, 0.1);
  border: 1px solid rgba(91, 141, 239, 0.25);
  color: var(--accent-primary);
  text-transform: none;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0;
}

.ui-badge--default {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
}

/* ==========================================================================
   Phase 4 — Skills, Clients, About Me
   ========================================================================== */

.skills-section {
  padding: 4rem 0;
}

.skills-section--compact {
  padding: 2.5rem 0 3rem;
}

.skills-section__header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.skills-section__title {
  margin: 0.75rem 0 0.5rem;
}

.skills-section__title--sm {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  text-align: left;
  margin-bottom: 1.5rem;
}

.skills-section--compact .skills-section__header {
  text-align: left;
  margin-bottom: 0;
}

.skills-section__subtitle {
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto;
}

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

.skills-grid--compact {
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (max-width: 991.98px) {
  .skills-grid:not(.skills-grid--compact) {
    grid-template-columns: 1fr;
  }
}

.skill-card {
  padding: 1.75rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transform: none !important;
}

.skill-card:hover {
  transform: translateY(-6px) !important;
}

.skill-card--compact {
  padding: 1.25rem 1.5rem;
  flex-direction: row;
}

.skill-card__icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}

.skill-card--compact .skill-card__icon {
  font-size: 1.5rem;
}

.skill-card__content {
  flex: 1;
  min-width: 0;
}

.skill-card__title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.skill-card--compact .skill-card__title {
  font-size: 1.05rem;
  margin-bottom: 0.65rem;
}

.skill-card__tagline {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0 0 1.25rem;
  line-height: 1.5;
}

.skill-bar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.skill-bar__track {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

.skill-bar__fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--accent-gradient);
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.skill-card.is-animated .skill-bar__fill {
  width: var(--target);
}

.skill-bar__value {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-primary);
  min-width: 2.75rem;
  text-align: right;
}

/* Clients marquee */
.clients-section {
  padding: 3rem 0 4.5rem;
  overflow: hidden;
}

.clients-section__header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.clients-section__title {
  margin: 0.75rem 0 0.5rem;
}

.clients-section__subtitle {
  color: var(--text-secondary);
}

.clients-marquee {
  position: relative;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.clients-marquee__track {
  display: flex;
  width: max-content;
  gap: 3rem;
  animation: clients-scroll 35s linear infinite;
}

.clients-marquee:hover .clients-marquee__track {
  animation-play-state: paused;
}

@keyframes clients-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.clients-marquee__item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  height: 72px;
  padding: 0 1.5rem;
}

.clients-marquee__logo {
  max-height: 48px;
  max-width: 140px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.65;
  transition: filter 0.35s ease, opacity 0.35s ease;
}

.clients-marquee__item:hover .clients-marquee__logo {
  filter: grayscale(0);
  opacity: 1;
}

.clients-marquee__placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  filter: grayscale(1);
  opacity: 0.7;
  transition: filter 0.35s ease, opacity 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.clients-marquee__item:hover .clients-marquee__placeholder {
  filter: grayscale(0);
  opacity: 1;
  color: var(--text-primary);
  border-color: rgba(91, 141, 239, 0.35);
}

/* About Me page */
.about-page {
  padding: 2rem 0 4rem;
}

.about-page__hero {
  text-align: center;
  margin-bottom: 2.5rem;
  padding-top: 1rem;
}

.about-page__title {
  font-size: var(--text-h1);
  margin: 0.75rem 0 0.5rem;
}

.about-page__role {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--accent-primary);
  margin: 0;
}

.about-intro {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2rem;
  margin-bottom: 1rem;
  transform: none !important;
}

.about-intro:hover {
  transform: none !important;
}

.about-intro__photo-wrap {
  display: flex;
  justify-content: center;
}

.about-intro__photo {
  width: 260px;
  height: 260px;
  object-fit: cover;
  border-radius: 20px;
  border: 2px solid rgba(91, 141, 239, 0.35);
  box-shadow: var(--glow-primary);
}

.about-intro__photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-gradient);
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
}

.about-intro__bio p {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  line-height: 1.75;
}

.about-intro__bio p:last-child {
  margin-bottom: 0;
}

.about-cta {
  text-align: center;
  padding: 2.5rem 2rem;
  margin-top: 2rem;
  transform: none !important;
}

.about-cta:hover {
  transform: translateY(-4px) !important;
}

.about-cta__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.75rem;
}

.about-cta__text {
  color: var(--text-secondary);
  margin: 0 0 1.5rem;
}

@media (max-width: 767.98px) {
  .about-intro {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 1.5rem;
  }

  .about-intro__photo {
    width: 200px;
    height: 200px;
  }
}

/* ==========================================================================
   Phase 5 — Contact Section
   ========================================================================== */

.contact-section {
  padding: 4rem 0 5rem;
}

.contact-section__header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.contact-section__title {
  margin: 0.75rem 0 0.5rem;
}

.contact-section__subtitle {
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
}

.contact-section__layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-section__aside-text {
  color: var(--text-secondary);
  margin: 0 0 1.75rem;
  line-height: 1.75;
}

.contact-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1.15rem;
  transform: none !important;
  transition: all 0.3s ease;
}

.contact-social__link:hover {
  color: var(--accent-primary);
  transform: translateY(-4px) !important;
  box-shadow: var(--glow-primary);
}

.contact-form-card {
  padding: 2rem;
  transform: none !important;
}

.contact-form-card:hover {
  transform: none !important;
}

.contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.float-field {
  position: relative;
}

.float-field__input {
  width: 100%;
  padding: 1.1rem 1rem 0.65rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.float-field__textarea {
  min-height: 140px;
  resize: vertical;
  padding-top: 1.35rem;
}

.float-field__label {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.float-field--textarea .float-field__label {
  top: 1.1rem;
  transform: none;
}

.float-field__input:focus,
.float-field__input:not(:placeholder-shown) {
  border-color: rgba(91, 141, 239, 0.5);
  box-shadow: 0 0 0 3px rgba(91, 141, 239, 0.12);
}

.float-field__input:focus + .float-field__label,
.float-field__input:not(:placeholder-shown) + .float-field__label {
  top: 0.45rem;
  transform: none;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-primary);
}

.float-field--textarea .float-field__input:focus + .float-field__label,
.float-field--textarea .float-field__input:not(:placeholder-shown) + .float-field__label {
  top: 0.5rem;
}

.float-field__footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 0.4rem;
  min-height: 1.25rem;
}

.float-field__error {
  display: block;
  font-size: 0.82rem;
  color: var(--error);
  flex: 1;
}

.float-field__error:empty {
  display: none;
}

.char-counter {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
}

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

.contact-form__submit:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

.contact-form__spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: contact-spin 0.7s linear infinite;
}

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

.contact-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1300;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.9rem 1.35rem;
  background: var(--glass-bg);
  border: 1px solid rgba(52, 211, 153, 0.4);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-radius: 14px;
  color: var(--success);
  font-weight: 600;
  box-shadow: var(--shadow-card), 0 0 30px rgba(52, 211, 153, 0.2);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.contact-toast__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.2);
  font-size: 0.85rem;
}

@media (max-width: 991.98px) {
  .contact-section__layout {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 575.98px) {
  .contact-form-card {
    padding: 1.35rem;
  }

  .contact-toast {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    justify-content: center;
  }
}

/* ==========================================================================
   Phase 6 — Scroll progress, tech filter, testimonials, image shimmer
   ========================================================================== */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 1300;
  background: var(--accent-gradient);
  box-shadow: 0 0 12px rgba(91, 141, 239, 0.6);
  transition: width 0.1s linear;
  pointer-events: none;
}

.projects-tech-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.projects-tech-filter__chip {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
}

.projects-tech-filter__chip:hover {
  color: var(--text-primary);
  border-color: rgba(91, 141, 239, 0.35);
}

.projects-tech-filter__chip.is-active {
  background: rgba(91, 141, 239, 0.15);
  border-color: rgba(91, 141, 239, 0.45);
  color: var(--accent-primary);
}

.project-card__shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.03) 0%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.03) 100%
  );
  background-size: 200% 100%;
  animation: card-shimmer 1.4s ease-in-out infinite;
  z-index: 1;
}

.project-card__thumb:has(.project-card__image.is-loaded) .project-card__shimmer {
  display: none;
}

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

.project-card__image {
  position: relative;
  z-index: 2;
}

/* Testimonials */
.testimonials-section {
  padding: 3rem 0 4rem;
}

.testimonials-section__header {
  text-align: center;
  margin-bottom: 2rem;
}

.testimonials-section__title {
  margin: 0.75rem 0 0;
}

.testimonials-carousel {
  overflow: hidden;
}

.testimonials-carousel__track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-card {
  flex: 0 0 100%;
  padding: 2rem;
  margin: 0;
  transform: none !important;
}

.testimonial-card:hover {
  transform: none !important;
}

.testimonial-card__text {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin: 0 0 1.5rem;
  font-style: italic;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-card__photo,
.testimonial-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
}

.testimonial-card__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-gradient);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
}

.testimonial-card__name {
  display: block;
  font-family: var(--font-heading);
  font-style: normal;
  font-weight: 600;
  color: var(--text-primary);
}

.testimonial-card__role {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.testimonials-carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.testimonials-carousel__btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-primary);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.25s ease;
}

.testimonials-carousel__btn:hover {
  border-color: rgba(91, 141, 239, 0.4);
  color: var(--accent-primary);
}

.testimonials-carousel__dots {
  display: flex;
  gap: 0.5rem;
}

.testimonials-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--glass-border);
  cursor: pointer;
  transition: all 0.25s ease;
}

.testimonials-carousel__dot.is-active {
  background: var(--accent-primary);
  transform: scale(1.25);
}

/* ==========================================================================
   Site Footer — minimal
   ========================================================================== */

.site-footer {
  margin-top: 2rem;
  padding: 2.5rem 0 1.75rem;
  border-top: 1px solid var(--glass-border);
  background: linear-gradient(to bottom, transparent, rgba(15, 20, 32, 0.6));
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-bottom: 1.5rem;
}

.site-footer__logo {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
  flex-shrink: 0;
}

.site-footer__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  flex: 1;
}

.site-footer__nav a {
  position: relative;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.25s ease;
}

.site-footer__nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-footer__nav a:hover {
  color: var(--text-primary);
}

.site-footer__nav a:hover::after {
  transform: scaleX(1);
}

.site-footer__social {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

.site-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-footer__social a:hover {
  color: var(--accent-primary);
  border-color: rgba(91, 141, 239, 0.3);
}

.site-footer__bar {
  padding-top: 1.25rem;
  border-top: 1px solid var(--glass-border);
  text-align: center;
}

.site-footer__bar p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

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

  .site-footer__nav {
    gap: 1rem 1.25rem;
  }
}
