/* ============================================
   matdev.eu — Design System & Styles
   Premium Dark Theme
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Colors — Dark palette */
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-card: rgba(17, 24, 39, 0.6);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-glass-hover: rgba(255, 255, 255, 0.08);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-hover: rgba(255, 255, 255, 0.15);

  /* Accent colors */
  --accent-primary: #6366f1;
  --accent-primary-light: #818cf8;
  --accent-secondary: #8b5cf6;
  --accent-glow: rgba(99, 102, 241, 0.3);
  --accent-gradient: linear-gradient(135deg, #6366f1, #8b5cf6, #a78bfa);
  --accent-gradient-hover: linear-gradient(135deg, #818cf8, #a78bfa, #c4b5fd);

  /* Text */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-accent: #a78bfa;

  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Outfit', 'Inter', sans-serif;

  /* Font sizes */
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.25rem;
  --fs-2xl: 1.5rem;
  --fs-3xl: 2rem;
  --fs-4xl: 2.5rem;
  --fs-5xl: 3.5rem;
  --fs-hero: clamp(3rem, 8vw, 6rem);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-section: clamp(4rem, 10vh, 8rem);

  /* Borders */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.15);
  --shadow-glow-hover: 0 0 40px rgba(99, 102, 241, 0.25);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-smooth: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 800px;
  --nav-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
  min-height: 100vh;
}

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

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

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

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
  color: inherit;
}

/* ---------- Global Background ---------- */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(99, 102, 241, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(139, 92, 246, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(99, 102, 241, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ---------- Utility Classes ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  position: relative;
  padding: var(--space-section) 0;
  z-index: 1;
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section__title {
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

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

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 100ms;
}

.reveal-delay-2 {
  transition-delay: 200ms;
}

.reveal-delay-3 {
  transition-delay: 300ms;
}

.reveal-delay-4 {
  transition-delay: 400ms;
}


/* ---------- Floating CTA with Rotating Glow ---------- */
.cta-floating-wrap {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 1000;
  padding: 3px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(99, 102, 241, 0.1);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(99, 102, 241, 0.2);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.cta-floating-wrap::before {
  content: '';
  position: absolute;
  width: 250%;
  height: 250%;
  background: conic-gradient(
    from 0deg,
    transparent 0 25%,
    var(--accent-primary) 35%,
    var(--accent-secondary) 50%,
    var(--accent-primary-light) 65%,
    transparent 75% 100%
  );
  animation: rotateGlow 4s linear infinite;
  z-index: -1;
}

.cta-floating {
  position: relative;
  background: var(--bg-primary);
  color: var(--text-primary);
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: background var(--transition-fast), color var(--transition-fast);
  min-width: 180px;
  min-height: 44px;
}

.cta-floating-wrap:hover {
  transform: scale(1.05) translateY(-5px);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(99, 102, 241, 0.4);
}

.cta-floating-wrap:hover .cta-floating {
  background: var(--accent-gradient);
  color: #fff;
}

@keyframes rotateGlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 100;
  display: flex;
  align-items: center;
  background: rgba(10, 14, 26, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.nav.scrolled {
  background: rgba(10, 14, 26, 0.95);
  box-shadow: var(--shadow-md);
}

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

.nav__brand {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav__logo {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.nav__logo span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav__apps-pill {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #818cf8, #a78bfa);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(129, 140, 248, 0.3);
}

.nav__apps-pill:hover {
  background: linear-gradient(135deg, #a78bfa, #c4b5fd);
  color: #fff;
  box-shadow: 0 6px 20px rgba(129, 140, 248, 0.5);
  transform: translateY(-1px);
}

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

.nav__link {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
  transition: width var(--transition-base);
}

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

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.nav__lang {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-left: var(--space-md);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  font-size: var(--fs-sm);
}

.nav__lang-btn {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.nav__lang-btn.active {
  color: var(--text-primary);
  background: var(--accent-primary);
}

.nav__lang-btn:hover:not(.active) {
  color: var(--text-secondary);
}

/* Mobile menu toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav__toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

/* ---------- Hero Section ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg canvas {
  width: 100%;
  height: 100%;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: var(--space-xl);
}

.hero__greeting {
  font-size: var(--fs-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: var(--fs-hero);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-lg);
  background: linear-gradient(135deg, #818cf8 0%, #a78bfa 30%, #c4b5fd 50%, #8b5cf6 70%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  animation: titleGlow 3s ease-in-out infinite alternate;
}

/* Mockup-style blurred backlight behind hero text */
.hero__title::before {
  content: 'mat-dev';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  background: linear-gradient(135deg, #6366f1, #8b5cf6, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: blur(30px);
  opacity: 0.6;
  z-index: -1;
  animation: backlightPulse 3s ease-in-out infinite alternate;
}

.hero__title::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 200%;
  background: radial-gradient(ellipse at center,
      rgba(99, 102, 241, 0.12) 0%,
      rgba(139, 92, 246, 0.06) 40%,
      transparent 70%);
  z-index: -2;
  pointer-events: none;
}

@keyframes titleGlow {
  0% {
    filter: brightness(1) drop-shadow(0 0 0px transparent);
  }

  100% {
    filter: brightness(1.15) drop-shadow(0 0 25px rgba(99, 102, 241, 0.35));
  }
}

@keyframes backlightPulse {
  0% {
    opacity: 0.4;
    filter: blur(25px);
  }

  100% {
    opacity: 0.7;
    filter: blur(35px);
  }
}

.hero__subtitle {
  font-size: var(--fs-xl);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-2xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero__typed {
  color: var(--accent-primary-light);
  border-right: 2px solid var(--accent-primary-light);
  animation: blink 0.8s step-end infinite;
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

.hero__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all var(--transition-smooth);
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

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

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-glass-hover);
}

.btn--outline:hover {
  background: var(--bg-glass-hover);
  border-color: var(--accent-primary);
  color: var(--accent-primary-light);
  transform: translateY(-2px);
}

/* ---------- Forms ---------- */
.form-group {
    margin-bottom: var(--space-md);
}

.form-label {
    display: block;
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    color: var(--text-primary);
    font-size: var(--fs-sm);
    font-family: var(--font-body);
    transition: all var(--transition-base);
    outline: none;
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1), 0 0 20px rgba(99, 102, 241, 0.1);
}

.form-control:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Specific button variation for full-width forms */
.btn--ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid transparent;
}
.btn--ghost:hover {
    background: var(--bg-glass-hover);
    color: var(--text-primary);
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-muted);
  font-size: var(--fs-xs);
  animation: float 2s ease-in-out infinite;
}

.hero__scroll-icon {
  width: 24px;
  height: 36px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  position: relative;
}

.hero__scroll-icon::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--text-muted);
  border-radius: var(--radius-full);
  animation: scrollDot 1.5s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(-8px);
  }
}

@keyframes scrollDot {

  0%,
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  50% {
    opacity: 0.3;
    transform: translateX(-50%) translateY(8px);
  }
}

/* ---------- About Section ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.about__text {
  font-size: var(--fs-lg);
  color: var(--text-secondary);
  line-height: 1.8;
}

.about__text p+p {
  margin-top: var(--space-md);
}

.about__highlight {
  color: var(--text-primary);
  font-weight: 500;
}

.about__stack-title {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

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

.stack-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  transition: all var(--transition-smooth);
}

.stack-card:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-glass-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.stack-card__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--bg-glass);
  font-size: var(--fs-xl);
  flex-shrink: 0;
}

.stack-card__name {
  font-weight: 500;
  font-size: var(--fs-sm);
  color: var(--text-primary);
}

/* ---------- Projects Section ---------- */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-xl);
}

.project-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--card-color, var(--accent-primary));
  opacity: 0.5;
  transition: opacity var(--transition-smooth);
}

.project-card:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-glass-hover);
  box-shadow: 0 0 20px color-mix(in srgb, var(--card-color, var(--accent-primary)) 20%, transparent);
  transform: translateY(-4px);
}

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

/* Header row: icon + badge */
.project-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}

.project-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  font-size: var(--fs-2xl);
}

/* Status badges */
.project-card__badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.project-card__badge--active {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.project-card__badge--wip {
  background: rgba(234, 179, 8, 0.15);
  color: #facc15;
  border: 1px solid rgba(234, 179, 8, 0.25);
}

.project-card__name {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.project-card__desc {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

/* Tags */
.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--space-md);
}

.project-card__tag {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--card-color, var(--accent-primary)) 15%, transparent);
  color: color-mix(in srgb, var(--card-color, var(--accent-primary)) 80%, #fff);
  border: 1px solid color-mix(in srgb, var(--card-color, var(--accent-primary)) 30%, transparent);
}

.project-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  margin-top: var(--space-lg);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: color-mix(in srgb, var(--card-color, var(--accent-primary)) 80%, #a5b4fc);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.project-card__link:hover {
  color: var(--text-primary);
  gap: var(--space-sm);
}


.projects__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-3xl);
  color: var(--text-muted);
  font-size: var(--fs-lg);
}

/* ---------- Contact Section ---------- */
.contact__content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact__text {
  font-size: var(--fs-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
  line-height: 1.7;
}

.contact__email {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: 600;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-2xl);
  transition: all var(--transition-smooth);
}

.contact__email:hover {
  transform: scale(1.03);
}

.contact__socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.social-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 12px 24px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: all var(--transition-smooth);
}

.social-link:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-glass-hover);
  color: var(--text-primary);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.social-link__icon {
  width: 20px;
  height: 20px;
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  z-index: 1;
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--border-glass);
}

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

.footer__copy {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

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

.footer__link {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

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

/* ---------- Blog Preview (homepage) ---------- */
.blog-preview__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-xl);
}

.blog-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.blog-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.blog-card:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-glass-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
  color: inherit;
}

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

.blog-card__date {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
}

.blog-card__title {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  line-height: 1.3;
}

.blog-card__excerpt {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__read-more {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  margin-top: var(--space-lg);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--accent-primary-light);
}

/* ---------- Floating Socials ---------- */
.floating-socials {
  position: fixed;
  top: 50%;
  right: 1.5rem;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 100;
}

.floating-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all var(--transition-smooth);
}

.floating-social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.floating-social-link:hover {
  color: var(--text-primary);
  background: var(--bg-glass-hover);
  border-color: var(--accent-primary);
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.25);
  transform: translateX(-4px);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  :root {
    --fs-hero: clamp(2.5rem, 10vw, 4rem);
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

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

  .contact__socials {
    flex-direction: column;
  }

  .footer__inner {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
}

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

  .nav__links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(10, 14, 26, 0.98);
    backdrop-filter: blur(20px);
    padding: var(--space-xl);
    gap: var(--space-md);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-smooth);
    border-bottom: 1px solid var(--border-glass);
  }

  .nav__links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__lang {
    margin-left: 0;
  }

  .hero__cta {
    flex-direction: column;
  }

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

  .section__title {
    font-size: var(--fs-2xl);
  }

  .blog-preview__grid {
    grid-template-columns: 1fr;
  }

  /* Adjust floating socials for mobile */
  .floating-socials {
    top: auto;
    bottom: 1.5rem;
    right: 50%;
    transform: translateX(50%);
    flex-direction: row;
  }

  .floating-social-link:hover {
    transform: translateY(-4px);
    /* Animate up instead of left */
  }
}

/* End of file */