/* ==========================================================================
   СПАС КИТАНОВ - CV / ПОРТФОЛИО HERO & ДОЛЕН DOCK HEADER
   Pure CSS3 with Modern Variables, Fluid Layouts & High-Precision Design
   ========================================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
  --font-main: 'Inter', 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-doodle: 'Caveat', cursive, sans-serif;

  /* Colors */
  --color-bg: #fcfcfd;
  --color-text-main: #11141a;
  --color-text-sub: #1e2229;
  --color-text-muted: #5e6675;
  --color-text-light: #88909f;
  
  --color-black: #111215;
  --color-white: #ffffff;
  
  --color-green-dot: #10b981;
  --color-green-glow: rgba(16, 185, 129, 0.3);

  --color-accent: #4f46e5;
  --color-accent-light: rgba(79, 70, 229, 0.08);
  --color-accent-border: rgba(79, 70, 229, 0.2);
  --color-accent-glow: rgba(79, 70, 229, 0.35);
  
  --color-border-subtle: rgba(0, 0, 0, 0.06);
  --color-border-badge: rgba(0, 0, 0, 0.08);

  /* Shadows matching mockups */
  --shadow-dock: 0 16px 45px -8px rgba(0, 0, 0, 0.12), 0 3px 12px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 28px 70px -15px rgba(0, 0, 0, 0.1), 0 8px 24px rgba(0, 0, 0, 0.04);
  --shadow-badge: 0 14px 34px -6px rgba(0, 0, 0, 0.09), 0 3px 10px rgba(0, 0, 0, 0.03);
  --shadow-btn-dark: 0 10px 25px -4px rgba(17, 18, 21, 0.22);
  --shadow-btn-light: 0 4px 16px -2px rgba(0, 0, 0, 0.05);
  --shadow-social: 0 2px 8px rgba(0, 0, 0, 0.04);

  /* Transitions */
  --transition-smooth: all 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 50px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-main);
  font-feature-settings: "locl" 0;
  background-color: var(--color-bg);
  color: var(--color-text-main);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Subtle Ambient Background Gradient */
.ambient-background {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-glow {
  display: none;
}

/* ==========================================================================
   HERO CONTAINER
   ========================================================================== */
.hero-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 40px 130px 40px; /* Generous bottom padding for bottom dock */
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  width: 100%;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}

/* ==========================================================================
   LEFT COLUMN: TEXT & INTRO
   ========================================================================== */
.hero-text-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 680px;
}

/* Pill Role Badge */
.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-white);
  border: 1px solid var(--color-border-badge);
  border-radius: 9999px;
  padding: 6px 16px 6px 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  margin-bottom: 24px;
  transition: var(--transition-smooth);
}

.role-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--color-accent);
  box-shadow: 0 0 8px var(--color-accent-glow);
}

.badge-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: #2b303b;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

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

/* Top Badge variants for mobile vs desktop */
.desktop-badge {
  display: inline-flex;
}

.mobile-badge {
  display: none;
}

/* General accent helper */
.text-accent {
  color: var(--color-accent);
  font-weight: 600;
}

/* Typography */
.hero-title {
  font-size: clamp(2.1rem, 2.9vw, 2.95rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.035em;
  color: var(--color-text-main);
  margin-bottom: 22px;
}

.hero-title .highlight-name {
  color: var(--color-accent);
  display: inline-block;
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: clamp(1.04rem, 1.2vw, 1.14rem);
  line-height: 1.72;
  color: var(--color-text-muted);
  max-width: 530px;
  margin-bottom: 38px;
  font-weight: 400;
}

/* Action Buttons */
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 38px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

/* Primary Dark Button */
.btn-primary {
  background-color: var(--color-black);
  color: var(--color-white);
  border: 1px solid transparent;
  box-shadow: var(--shadow-btn-dark);
}

.btn-primary:hover {
  background-color: #24262b;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -4px rgba(17, 18, 21, 0.32);
}

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

.btn-primary .btn-arrow {
  width: 17px;
  height: 17px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}

/* Secondary Light Button */
.btn-secondary {
  background-color: var(--color-white);
  color: var(--color-text-main);
  border: 1px solid #e7eaee;
  box-shadow: var(--shadow-btn-light);
}

.btn-secondary:hover {
  background-color: #f7f8fa;
  border-color: #d8dbe2;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -2px rgba(0, 0, 0, 0.08);
}

.btn-secondary:active {
  transform: translateY(0);
}

.btn-secondary .btn-icon {
  width: 17px;
  height: 17px;
}

/* Social Icon Buttons */
.social-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-social-links {
  display: none;
}

.social-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-white);
  border: 1px solid #ebecef;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3b4250;
  text-decoration: none;
  box-shadow: var(--shadow-social);
  transition: var(--transition-smooth);
}

.social-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}

.social-btn:hover {
  background: var(--color-black);
  border-color: var(--color-black);
  color: var(--color-white);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.social-btn:hover svg {
  transform: scale(1.1);
}

/* ==========================================================================
   RIGHT COLUMN: PORTRAIT (ENLARGED) & FLOATING BADGES
   ========================================================================== */
.hero-image-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Larger Portrait Wrapper */
.portrait-wrapper {
  position: relative;
  width: clamp(370px, 30vw, 430px);
  max-width: 100%;
  transform: translateX(-45px);
}

/* Ambient Orbit Behind Portrait */
.orbit-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 660px;
  height: 660px;
  pointer-events: none;
  z-index: 0;
}

.orbit-svg {
  width: 100%;
  height: 100%;
}

/* Main Rounded Portrait Card (Enlarged) */
.portrait-card {
  position: relative;
  z-index: 2;
  width: 100%;
  border-radius: 40px;
  overflow: hidden;
  background-color: #eaebed;
  box-shadow: var(--shadow-card);
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(255, 255, 255, 0.85);
}

.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.portrait-card:hover .portrait-img {
  transform: scale(1.03);
}

/* Floating Badges Common Styles */
.floating-badge {
  position: absolute;
  z-index: 10;
  background: var(--color-white);
  border: 1px solid var(--color-border-badge);
  box-shadow: var(--shadow-badge);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  user-select: none;
  transition: var(--transition-smooth);
}

.floating-badge:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.12);
}

/* Floating Badge 1: Experience (Top Left) - Compact & Clear of Face */
.badge-experience {
  top: 9%;
  left: -64px;
  border-radius: 16px;
  padding: 9px 15px 9px 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  animation: floatSoft 5s ease-in-out infinite;
}

.badge-experience .badge-icon-wrap {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background-color: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}

.badge-experience .badge-icon-wrap svg {
  width: 15px;
  height: 15px;
  stroke: var(--color-accent);
}

.badge-experience .badge-info {
  display: flex;
  flex-direction: column;
}

.badge-experience .badge-val {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.15;
}

.badge-experience .badge-lbl {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-text-light);
  line-height: 1.15;
}

/* Doodle Arrow next to Experience Badge */
.doodle-arrow-left {
  position: absolute;
  bottom: -32px;
  left: 12px;
  width: 32px;
  height: 32px;
  pointer-events: none;
}

.doodle-arrow-left svg {
  width: 100%;
  height: 100%;
}



/* Doodle Note bottom-right - Positioned on the side to the right of portrait at the bottom */
.doodle-note {
  position: absolute;
  top: auto;
  bottom: 35px;
  left: calc(100% + 12px);
  right: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  pointer-events: none;
  z-index: 12;
  transform: rotate(-4deg);
  width: max-content;
}

.doodle-text {
  font-family: var(--font-doodle);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.15;
  color: #181b22;
  text-align: left;
  letter-spacing: -0.01em;
}

.doodle-swirl {
  width: 44px;
  height: 28px;
  margin-top: 2px;
  align-self: flex-start;
}

.doodle-sparkle {
  color: var(--color-accent);
  display: inline-block;
  font-size: 1.15rem;
  vertical-align: middle;
  filter: drop-shadow(0 0 8px rgba(79, 70, 229, 0.45));
}

.doodle-swirl path {
  stroke: var(--color-accent);
}

/* Soft Floating Animation */
@keyframes floatSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Bottom Scroll Sentinel */
.bottom-scroll-sentinel {
  width: 100%;
  height: 1px;
  pointer-events: none;
  visibility: hidden;
}

/* ==========================================================================
   BOTTOM FLOATING HEADER MENU (Image 3 Design + Dynamic Hover Text)
   ========================================================================== */
.bottom-dock-container {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  width: max-content;
  max-width: calc(100vw - 32px);
}

/* ==========================================================================
   ANIMATED COPYRIGHT POPUP & CONNECTOR STEM (Revealed at page bottom)
   Matches exact layout from uploaded mockup
   ========================================================================== */
.dock-copyright-popup {
  position: absolute;
  bottom: calc(100% - 10px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.32s ease;
  z-index: 1;
  width: max-content;
  max-width: calc(100vw - 24px);
}

.dock-copyright-popup.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Pill Bubble */
.dock-copyright-pill {
  position: relative;
  z-index: 2;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 9999px;
  padding: 9px 24px;
  box-shadow: 0 10px 30px -4px rgba(15, 23, 42, 0.08), 0 2px 8px rgba(15, 23, 42, 0.04);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1e293b;
  letter-spacing: -0.01em;
  white-space: nowrap;
  user-select: none;
  transform: translateY(14px) scale(0.92);
  opacity: 0;
  transition: transform 0.42s cubic-bezier(0.34, 1.56, 0.64, 1) 0.08s,
              opacity 0.32s ease 0.06s,
              box-shadow 0.25s ease,
              border-color 0.25s ease;
}

.dock-copyright-popup.is-visible .dock-copyright-pill {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.dock-copyright-pill:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(0, 0, 0, 0.14);
  box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.12), 0 3px 10px rgba(15, 23, 42, 0.05);
}

.dock-copyright-rights {
  color: var(--color-accent);
  font-weight: 700;
}

.dock-copyright-divider {
  color: #94a3b8;
  font-weight: 400;
}

.dock-copyright-credit {
  color: #475569;
  font-weight: 600;
}

/* Connector Stem Line */
.dock-connector-stem {
  width: 40px;
  height: 48px;
  display: block;
  position: relative;
  z-index: 1;
  overflow: visible;
  margin-top: -8px;
  margin-bottom: -4px;
}

.dock-stem-svg {
  width: 40px;
  height: 48px;
  display: block;
  overflow: visible;
}

.dock-stem-svg path {
  stroke: rgba(0, 0, 0, 0.08);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 65;
  stroke-dashoffset: 65;
  transition: stroke-dashoffset 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}

.dock-copyright-popup.is-visible .dock-stem-svg path {
  stroke-dashoffset: 0;
}

.bottom-dock-nav {
  position: relative;
  z-index: 2;
  pointer-events: auto;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(26px) saturate(180%);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 9999px;
  padding: 6px 10px;
  gap: 6px;
  box-shadow: 0 20px 50px -10px rgba(15, 23, 42, 0.16), 0 4px 16px rgba(15, 23, 42, 0.05);
  transition: var(--transition-smooth);
}

/* Dock Item Button */
.dock-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  min-width: 44px;
  padding: 0 12px;
  border-radius: 9999px;
  text-decoration: none;
  color: #64748b;
  background: transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-tap-highlight-color: transparent;
}

.dock-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: inherit;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.25s ease;
}

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

/* Text label - Expands smoothly on hover! */
.dock-text {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  max-width: 0;
  opacity: 0;
  margin-left: 0;
  overflow: hidden;
  transition: max-width 0.32s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.25s ease,
              margin-left 0.25s ease;
  pointer-events: none;
  white-space: nowrap;
}

/* Active State - Compact circular/oval icon pill just like the other items */
.dock-item.active {
  background-color: var(--color-black);
  color: var(--color-white);
  padding: 0 12px;
  box-shadow: 0 4px 18px rgba(17, 20, 26, 0.22);
}

.dock-item.active .dock-icon {
  color: var(--color-white);
}

.dock-item.active:not(:hover) .dock-text {
  max-width: 0;
  opacity: 0;
  margin-left: 0;
}

/* ==========================================================================
   HOVER EFFECT REQUIREMENT: "като при ховър да има и текст на бутоните"
   Само при реален мишка ховър (@media (hover: hover)) разпъва текста
   ========================================================================== */
@media (hover: hover) {
  .dock-item:hover,
  .dock-item.is-hovered {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 0 16px 0 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  }

  .dock-item:hover .dock-icon,
  .dock-item.is-hovered .dock-icon {
    transform: scale(1.06);
    color: var(--color-white);
  }

  .dock-item:hover .dock-text,
  .dock-item.is-hovered .dock-text {
    max-width: 140px;
    opacity: 1;
    margin-left: 7px;
    color: var(--color-white);
  }

  .dock-item.active:hover,
  .dock-item.active.is-hovered {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 0 16px 0 12px;
  }

  .dock-item.active:hover .dock-text,
  .dock-item.active.is-hovered .dock-text {
    max-width: 140px;
    opacity: 1;
    margin-left: 7px;
    color: var(--color-white);
  }
}

/* ==========================================================================
   FEEDBACK TOAST (Minimalist Apple-style HUD Capsule)
   ========================================================================== */
.feedback-toast {
  position: fixed;
  bottom: 86px;
  left: 50%;
  transform: translateX(-50%) translateY(16px) scale(0.94);
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  color: #ffffff;
  padding: 8px 20px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 32px -4px rgba(15, 23, 42, 0.35), 0 2px 8px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 1010;
  white-space: nowrap;
  user-select: none;
  transition: transform 0.34s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.24s ease,
              visibility 0.24s ease;
}

.feedback-toast.show {
  transform: translateX(-50%) translateY(0) scale(1);
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   RESPONSIVE DESIGN (Matches Mobile Mockup Image 2)
   ========================================================================== */

/* Tablet & Smaller Laptops */
@media (max-width: 1120px) {
  .hero-content {
    gap: 36px;
  }
  
  .portrait-wrapper {
    width: 350px;
  }
  
  .badge-experience {
    left: -25px;
  }
  
  .doodle-note {
    right: -70px;
    bottom: 35px;
  }
}

/* Mobile Layout - Matching Image 2 */
/* Mobile Layout - Refined & Pixel-Perfect for all screens */
@media (max-width: 768px) {
  .hero-container {
    padding: 24px 20px 48px 20px;
    align-items: flex-start;
    justify-content: flex-start;
    min-height: auto;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 32px;
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  /* 1. Text column on top */
  .hero-text-col {
    order: 1;
    width: 100%;
    max-width: 100%;
    align-items: flex-start;
    text-align: left;
    display: flex;
    flex-direction: column;
  }

  /* Badge stays on top inside text col */
  .desktop-badge {
    display: inline-flex !important;
    margin-bottom: 20px;
    border-radius: 9999px;
    padding: 6px 14px 6px 10px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  }

  .mobile-badge {
    display: none !important;
  }

  .hero-title {
    font-size: clamp(2.35rem, 8.5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.035em;
    color: #11141a;
    margin-bottom: 18px;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .hero-title .highlight-name {
    display: block;
    margin-top: 2px;
    color: #4f46e5;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .hero-description {
    font-size: 0.98rem;
    line-height: 1.62;
    color: #64748b;
    margin-bottom: 24px;
    max-width: 100%;
  }

  .hero-description strong {
    color: #1e293b;
    font-weight: 700;
  }

  /* 2. Side-by-side CTA buttons like in mockup */
  .hero-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 22px;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    justify-content: center;
    border-radius: 9999px;
    font-size: 0.92rem;
    font-weight: 700;
    white-space: nowrap;
  }

  .btn-primary {
    background: #11141a;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(17, 20, 26, 0.15);
  }

  .btn-secondary {
    background: #ffffff;
    color: #11141a;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  }

  /* Hide Desktop Social Links inside text column on Mobile */
  .desktop-social-links {
    display: none !important;
  }

  /* Show and Center Mobile Social Links directly below portrait card */
  .mobile-social-links {
    display: flex !important;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 26px;
    margin-bottom: 0;
  }

  .social-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e293b;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

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

  /* 4. Portrait Card Column */
  .hero-image-col {
    order: 2;
    width: 100%;
    margin-top: 8px;
    margin-bottom: 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .orbit-container {
    display: none;
  }

  .doodle-note {
    display: none;
  }

  /* Center the portrait wrapper and remove side offset */
  .portrait-wrapper {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    transform: none;
    position: relative;
  }

  .portrait-card {
    width: 100%;
    border-radius: 36px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 16px 40px -12px rgba(15, 23, 42, 0.12), 0 2px 10px rgba(15, 23, 42, 0.04);
    aspect-ratio: 3 / 4;
    overflow: hidden;
  }

  .portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
  }

  /* Badge 5+ Години Опит on Top-Right */
  .badge-experience {
    top: 14px;
    right: -10px;
    left: auto;
    border-radius: 18px;
    padding: 8px 14px 8px 10px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 12px 28px -6px rgba(15, 23, 42, 0.12), 0 2px 8px rgba(15, 23, 42, 0.04);
    gap: 9px;
  }

  .badge-experience .badge-icon-wrap {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    background: rgba(79, 70, 229, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .badge-experience .badge-icon-wrap svg {
    width: 14px;
    height: 14px;
    stroke: #4f46e5;
  }

  .badge-experience .badge-val {
    font-size: 0.84rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.15;
  }

  .badge-experience .badge-lbl {
    font-size: 0.65rem;
    font-weight: 500;
    color: #64748b;
    line-height: 1.15;
  }

  /* Arrow Doodle pointing from bottom of badge towards avatar */
  .doodle-arrow-left {
    display: block;
    position: absolute;
    bottom: -28px;
    left: 18px;
    width: 28px;
    height: 28px;
    transform: rotate(85deg);
  }

  .doodle-arrow-left svg path {
    stroke: #0f172a;
  }

  /* Bottom Dock on mobile - iOS native floating bar aesthetic (Enlarged) */
  .bottom-dock-container {
    bottom: 20px;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    max-width: calc(100vw - 16px);
  }

  .bottom-dock-nav {
    padding: 6px 8px;
    gap: 2px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 14px 38px -6px rgba(15, 23, 42, 0.16), 0 3px 10px rgba(15, 23, 42, 0.05);
  }

  .dock-item {
    height: 40px;
    min-width: 40px;
    padding: 0 8px;
    border-radius: 9999px;
  }

  .dock-item:hover,
  .dock-item:active {
    padding: 0 8px;
  }

  .dock-item .dock-text {
    display: none !important;
  }

  .dock-icon {
    width: 20px;
    height: 20px;
  }

  .dock-icon svg {
    width: 19px;
    height: 19px;
  }

  /* Copyright Popup Responsive Mobile */
  .dock-connector-stem {
    height: 40px;
  }

  .dock-stem-svg {
    height: 40px;
  }

  .dock-copyright-pill {
    padding: 7px 16px;
    font-size: 0.76rem;
    gap: 6px;
  }
}

/* Extra small devices (iPhone SE, Galaxy S small screens) */
@media (max-width: 380px) {
  .hero-container {
    padding: 18px 14px 50px 14px;
  }

  .portrait-wrapper {
    width: 185px;
    transform: translateX(-12px);
  }

  .badge-experience {
    left: -8px;
    padding: 5px 9px 5px 7px;
  }

  .doodle-note {
    right: -24px;
    bottom: 12px;
  }

  .hero-title {
    font-size: 1.95rem;
  }

    .dock-copyright-pill {
      padding: 6px 12px;
      font-size: 0.69rem;
      gap: 4px;
    }

    .dock-item {
      padding: 0 6px;
      min-width: 36px;
      height: 38px;
    }

    .dock-icon {
      width: 16px;
      height: 16px;
    }

    .dock-icon svg {
      width: 16px;
      height: 16px;
    }
  }

/* ==========================================================================
   ABOUT ME SECTION ("ЗА МЕН")
   Same colour palette – refined layout, spacing & responsive behaviour
   ========================================================================== */
.about-section {
  width: 100%;
  position: relative;
  z-index: 10;
  padding: 96px 0 150px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  background-color: var(--color-bg);
}

.about-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 48px;
}

.nowrap {
  white-space: nowrap;
}

/* --- Top bar --- */
.about-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.about-tag,
.about-location {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.tag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-accent);
  box-shadow: 0 0 8px var(--color-accent-glow);
}

.tag-text {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-black);
}

.tag-line {
  display: inline-block;
  width: 44px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--color-accent) 0%, rgba(79, 70, 229, 0.15) 100%);
}

.about-location {
  gap: 8px;
  padding: 7px 14px 7px 12px;
  border-radius: 9999px;
  background: var(--color-white);
  border: 1px solid var(--color-border-badge);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.location-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--color-accent);
  box-shadow: 0 0 6px var(--color-accent-glow);
}

.location-text {
  font-size: 0.85rem;
  font-weight: 500;
  color: #4b5563;
}

/* --- Intro row: Bio | Interactive Code Terminal --- */
.about-intro-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 36px;
  align-items: center;
  margin-bottom: 52px;
}

.about-bio-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 20px;
}

.about-title {
  font-size: clamp(2.2rem, 3.2vw, 3.1rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--color-text-main);
  margin-bottom: 18px;
}

.about-description {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin-bottom: 28px;
  max-width: 520px;
}

.about-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.about-primary-btn {
  padding: 14px 26px;
  font-size: 0.95rem;
}

.btn-circle-arrow {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid #e2e5eb;
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-text-main);
  text-decoration: none;
  transition: var(--transition-smooth);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.btn-circle-arrow svg {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}

.btn-circle-arrow:hover {
  background-color: var(--color-black);
  border-color: var(--color-black);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -3px rgba(0, 0, 0, 0.15);
}

.btn-circle-arrow:hover svg {
  transform: translateX(2px);
}

/* --- Base card --- */
.about-card {
  background: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 24px;
  padding: 26px 24px;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  transition: var(--transition-smooth);
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px -8px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.1);
}

/* --- Interactive Developer Code Terminal Window --- */
.about-terminal-window {
  background: #111318;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 60px -12px rgba(10, 12, 16, 0.45), 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
  font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', Menlo, Consolas, monospace;
}

.about-terminal-window:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 70px -12px rgba(0, 0, 0, 0.55), 0 8px 24px rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.14);
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #181b22;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.t-dot {
  width: 10.5px;
  height: 10.5px;
  border-radius: 50%;
  display: inline-block;
}

.t-dot-red { background-color: #ff5f56; }
.t-dot-yellow { background-color: #ffbd2e; }
.t-dot-green { background-color: #27c93f; }

.terminal-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.78rem;
  font-weight: 500;
  color: #cbd5e1;
}

.terminal-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #22c55e;
  padding: 3px 8px;
  border-radius: 9999px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.terminal-body {
  padding: 24px 24px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #e2e8f0;
}

.code-line {
  white-space: pre-wrap;
  word-break: break-word;
}

.indent-1 { padding-left: 20px; }
.indent-2 { padding-left: 40px; }

/* Syntax highlighting tokens */
.c-keyword { color: #f472b6; font-weight: 600; }
.c-variable { color: #60a5fa; font-weight: 600; }
.c-type { color: #38bdf8; }
.c-prop { color: #93c5fd; }
.c-string { color: #a7f3d0; }
.c-boolean { color: #fbbf24; font-weight: 600; }
.c-func { color: #c084fc; font-weight: 600; }
.c-param { color: #fdba74; }

.terminal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: #14171d;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.72rem;
  color: #64748b;
}

.t-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.t-pulse {
  width: 6.5px;
  height: 6.5px;
  border-radius: 50%;
  background-color: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
}

.t-action-tag {
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.04em;
}

/* --- Stats ribbon --- */
.about-stats-ribbon {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  padding: 24px 28px;
  background: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 24px;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.03);
  margin-bottom: 44px;
}

.stat-col {
  flex: 1;
  padding: 4px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stat-col:first-child {
  padding-left: 8px;
}

.stat-col:last-child {
  padding-right: 8px;
}

.stat-number {
  font-size: 2.15rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--color-accent);
  line-height: 1.1;
  margin-bottom: 6px;
  white-space: nowrap;
}

.stat-desc {
  font-size: 0.84rem;
  line-height: 1.45;
  color: #5e6675;
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  align-self: stretch;
  background-color: rgba(0, 0, 0, 0.07);
  flex-shrink: 0;
  margin: 4px 0;
}

/* --- Feature cards (2×2) --- */
.about-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.feature-card {
  position: relative;
  background: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 24px;
  padding: 26px 26px;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.03);
  display: flex;
  align-items: center;
  gap: 20px;
  transition: var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px -8px rgba(79, 70, 229, 0.12);
  border-color: var(--color-accent-border);
}

.feature-card-content {
  flex: 1;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  min-width: 0;
}

.feature-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--color-accent-light);
  border: 1px solid var(--color-accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-accent);
  transition: var(--transition-smooth);
}

.feature-icon-box svg {
  width: 22px;
  height: 22px;
}

.feature-card:hover .feature-icon-box {
  background: var(--color-accent);
  color: #ffffff;
  border-color: var(--color-accent);
  box-shadow: 0 8px 20px -4px var(--color-accent-glow);
}

.feature-body {
  flex: 1;
  min-width: 0;
}

.feature-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #11141a;
  margin-bottom: 8px;
  letter-spacing: -0.015em;
}

.feature-desc {
  font-size: 0.92rem;
  line-height: 1.62;
  color: #5e6675;
}

.feature-action-wrap {
  flex-shrink: 0;
  display: flex;
}

/* First card: pill button sits bottom-right like the mockup */
.feature-card:first-child .feature-action-wrap {
  align-self: flex-end;
}

.feature-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 9999px;
  background: var(--color-white);
  border: 1px solid #e7eaee;
  font-size: 0.84rem;
  font-weight: 600;
  color: #11141a;
  text-decoration: none;
  white-space: nowrap;
  transition: var(--transition-smooth);
}

.feature-pill-btn svg {
  width: 14px;
  height: 14px;
  transition: transform 0.25s ease;
}

.feature-pill-btn:hover {
  background: #11141a;
  color: #fff;
  border-color: #11141a;
}

.feature-pill-btn:hover svg {
  transform: translateX(3px);
}

.feature-circle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-white);
  border: 1px solid #e7eaee;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #11141a;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.feature-circle-btn svg {
  width: 15px;
  height: 15px;
  transition: transform 0.25s ease;
}

.feature-circle-btn:hover,
.feature-card:hover .feature-circle-btn {
  background: #11141a;
  color: #fff;
  border-color: #11141a;
}

.feature-circle-btn:hover svg,
.feature-card:hover .feature-circle-btn svg {
  transform: translateX(2px);
}

/* ==========================================================================
   ABOUT – RESPONSIVE
   ========================================================================== */
@media (max-width: 1120px) {
  .about-container {
    padding: 0 32px;
  }

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

  .about-bio-col {
    grid-column: 1 / -1;
    padding-right: 0;
    margin-bottom: 8px;
  }

  .about-description {
    max-width: 640px;
  }

  .stat-col {
    padding: 0 16px;
  }

  .stat-number {
    font-size: 1.7rem;
  }
}

@media (max-width: 900px) {
  .about-features-grid {
    grid-template-columns: 1fr;
  }
}

/* Phones */
@media (max-width: 768px) {
  .about-section {
    padding: 56px 0 60px 0;
  }

  .about-container {
    padding: 0 20px;
  }

  .about-top-bar {
    margin-bottom: 26px;
  }

  .tag-line {
    width: 28px;
  }

  .about-location {
    padding: 6px 12px 6px 10px;
  }

  .location-text {
    font-size: 0.78rem;
  }

  .about-intro-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 30px;
  }

  .about-bio-col {
    margin-bottom: 14px;
  }

  .about-title {
    font-size: clamp(1.95rem, 8.6vw, 2.4rem);
    margin-bottom: 14px;
  }

  .about-description {
    font-size: 0.96rem;
    line-height: 1.65;
    margin-bottom: 22px;
  }

  .about-actions {
    gap: 10px;
  }

  .about-primary-btn {
    flex: 1;
    padding: 14px 18px;
    font-size: 0.92rem;
  }

  .btn-circle-arrow {
    width: 48px;
    height: 48px;
  }

  .about-card {
    padding: 22px 20px;
    border-radius: 22px;
    gap: 18px;
  }

  .about-terminal-window {
    border-radius: 16px;
    margin-top: 6px;
  }

  .terminal-body {
    padding: 18px 16px;
    font-size: 0.78rem;
    gap: 5px;
  }

  .indent-1 { padding-left: 14px; }
  .indent-2 { padding-left: 28px; }

  /* Stats become tidy 2-column tiles */
  .about-stats-ribbon {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0;
    margin-bottom: 30px;
  }

  .stat-divider {
    display: none;
  }

  .stat-col,
  .stat-col:first-child {
    padding: 16px 16px;
    background: var(--color-white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 18px;
    box-shadow: 0 4px 16px -4px rgba(0, 0, 0, 0.03);
  }

  .stat-col:last-child {
    grid-column: 1 / -1;
  }

  .stat-number {
    font-size: 1.45rem;
    margin-bottom: 6px;
  }

  .stat-desc {
    font-size: 0.78rem;
  }

  /* Feature cards: icon + action on top row, text below */
  .about-features-grid {
    gap: 12px;
  }

  .feature-card {
    display: block;
    padding: 20px;
    border-radius: 22px;
  }

  .feature-card-content {
    flex-direction: column;
    gap: 14px;
  }

  .feature-icon-box {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

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

  .feature-action-wrap,
  .feature-card:first-child .feature-action-wrap {
    position: absolute;
    top: 23px;
    right: 20px;
  }

  .feature-title {
    font-size: 1.08rem;
    margin-bottom: 6px;
  }

  .feature-desc {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  /* Disable lift on touch so cards don't "jump" while scrolling */
  .about-card:hover,
  .feature-card:hover {
    transform: none;
  }
}

@media (max-width: 380px) {
  .about-title {
    font-size: 1.8rem;
  }

  .stat-col,
  .stat-col:first-child {
    padding: 14px 12px;
  }

  .stat-number {
    font-size: 1.3rem;
  }
}

/* ==========================================================================
   GLOBAL MOBILE POLISH (whole site)
   ========================================================================== */
html {
  overflow-x: hidden;
}

@media (max-width: 768px) {
  /* Bigger, easier tap targets */
  .social-btn {
    width: 44px;
    height: 44px;
  }

  .social-btn svg {
    width: 18px;
    height: 18px;
  }

  .hero-actions .btn {
    padding: 14px 20px;
  }

  /* Dock: keep mobile items uniformly sized without text overflow */
  .dock-item.active {
    padding: 0 10px;
  }

  .dock-item.active .dock-text {
    display: none !important;
  }

  .feedback-toast {
    bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    max-width: calc(100vw - 40px);
    text-align: center;
  }
}

/* Touch devices: no sticky hover expansion on non-active dock items */
@media (hover: none) {
  .dock-item:not(.active):hover {
    background: transparent;
    color: #666e7d;
    padding: 0 10px;
    box-shadow: none;
  }

  .dock-item:not(.active):hover .dock-icon {
    color: inherit;
    transform: none;
  }

  .dock-item:not(.active):hover .dock-text {
    max-width: 0;
    opacity: 0;
    margin-left: 0;
  }
}

/* ==========================================================================
   PROJECTS SECTION ("ПРОЕКТИ" - Matches Uploaded Mockup)
   ========================================================================== */
.projects-section {
  width: 100%;
  position: relative;
  z-index: 10;
  padding: 80px 0 90px 0;
  background-color: var(--color-bg);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.projects-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 48px;
}

/* Header bar */
.projects-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.projects-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.projects-tag .tag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-accent);
  box-shadow: 0 0 8px var(--color-accent-glow);
}

.projects-tag .tag-text {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-black);
}

.projects-tag .tag-line {
  display: inline-block;
  width: 44px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--color-accent) 0%, rgba(79, 70, 229, 0.15) 100%);
}

.projects-counter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 12px;
  border-radius: 9999px;
  background: var(--color-white);
  border: 1px solid var(--color-border-badge);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.counter-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--color-black);
}

.counter-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: #4b5563;
}

/* --------------------------------------------------------------------------
   1. FEATURED HERO PROJECT CARD (Клуб "По същество" - Seamless Panoramic)
   -------------------------------------------------------------------------- */
.featured-project-card {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 16px 45px -10px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.featured-card-top {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  min-height: 380px;
  width: 100%;
}

.featured-project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.1);
}

/* Panoramic background rotating slider spanning the right half */
.featured-bg-slider {
  position: absolute;
  top: 0;
  right: 0;
  width: 68%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.featured-slide-img {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  transition: opacity 2s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
}

.featured-slide-img.prev-active {
  opacity: 1;
  z-index: 1;
  transition: none;
}

.featured-slide-img.active {
  opacity: 1;
  z-index: 2;
}

/* Permanent Club Logo in top right corner (no white background, larger pure emblem) */
.featured-club-logo-wrap {
  position: absolute;
  top: 22px;
  right: 24px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.25));
}

.featured-club-logo-wrap:hover {
  transform: translateY(-2px) scale(1.06);
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.35));
}

.featured-club-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Soft white gradient feathering from left content into panoramic photo */
.featured-panoramic-mask {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    to right,
    #ffffff 0%,
    #ffffff 36%,
    rgba(255, 255, 255, 0.94) 42%,
    rgba(255, 255, 255, 0.6) 48%,
    rgba(255, 255, 255, 0) 58%
  );
}

.featured-card-content {
  position: relative;
  z-index: 3;
  width: 44%;
  min-width: 380px;
  padding: 40px 38px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.featured-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 9999px;
  background: var(--color-accent-light);
  color: var(--color-accent);
  border: 1px solid var(--color-accent-border);
  font-size: 0.8rem;
  font-weight: 700;
  width: max-content;
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}

.featured-title {
  font-size: clamp(2rem, 2.7vw, 2.65rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: #11141a;
  margin-bottom: 14px;
}

.featured-title .highlight-club {
  background: linear-gradient(135deg, #4338ca 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.featured-desc {
  font-size: 0.98rem;
  line-height: 1.64;
  color: #5e6675;
  margin-bottom: 24px;
  max-width: 440px;
}

.featured-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 6px;
  background: #f8fafc;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  margin-bottom: 24px;
  max-width: 440px;
}

.featured-metric {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 11px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.featured-metric:hover {
  transform: translateY(-2px);
  border-color: rgba(79, 70, 229, 0.18);
  box-shadow: 0 6px 14px -3px rgba(79, 70, 229, 0.1);
}

.f-metric-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(99, 102, 241, 0.12) 100%);
  border: 1px solid rgba(79, 70, 229, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  flex-shrink: 0;
  transition: all 0.22s ease;
}

.featured-metric:hover .f-metric-icon {
  background: var(--color-accent);
  color: #ffffff;
  border-color: var(--color-accent);
  box-shadow: 0 3px 10px rgba(79, 70, 229, 0.25);
}

.f-metric-icon svg {
  width: 15px;
  height: 15px;
  transition: transform 0.2s ease;
}

.featured-metric:hover .f-metric-icon svg {
  transform: scale(1.08);
}

.f-metric-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.f-metric-val {
  font-size: 0.88rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.15;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.f-metric-lbl {
  font-size: 0.68rem;
  color: #64748b;
  font-weight: 500;
  line-height: 1.15;
  margin-top: 1px;
  white-space: nowrap;
}

.featured-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.featured-btn {
  padding: 13px 26px;
  font-size: 0.94rem;
}

.featured-video-btn {
  padding: 12px 22px;
  font-size: 0.94rem;
  border-radius: 9999px;
  background: #ffffff;
  color: #11141a;
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.22s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.featured-video-btn:hover {
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn-play-icon {
  width: 18px;
  height: 18px;
  color: #11141a;
}

/* --------------------------------------------------------------------------
   INTEGRATED CLUB PROJECTS SHELF (Дизайн точно по предоставения скрийншот)
   -------------------------------------------------------------------------- */
.featured-card-divider {
  width: 100%;
  height: 1px;
  margin: 0;
  background: rgba(0, 0, 0, 0.05);
}

.featured-card-bottom {
  padding: 30px 36px 36px 36px;
  background: #ffffff;
  width: 100%;
}

.club-shelf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 24px;
}

.club-shelf-title-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
}

.club-shelf-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 800;
  color: #11141a;
  background: #f1f5f9;
  padding: 8px 18px;
  border-radius: 9999px;
  letter-spacing: -0.015em;
  box-shadow: none;
}

.shelf-pill-icon {
  width: 18px;
  height: 18px;
  color: #4f46e5;
  flex-shrink: 0;
}

.club-shelf-desc {
  font-size: 0.92rem;
  color: #64748b;
  font-weight: 500;
  margin: 0;
  flex: 1 1 auto;
}

.club-shelf-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.club-shelf-all-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #4f46e5;
  text-decoration: none;
  white-space: nowrap;
  padding: 7px 14px;
  border-radius: 9999px;
  background: #eef2ff;
  transition: all 0.2s ease;
}

.club-shelf-all-link:hover {
  background: #e0e7ff;
  color: #4338ca;
  transform: translateX(2px);
}

.club-shelf-all-link svg {
  width: 15px;
  height: 15px;
  transition: transform 0.2s ease;
}

.club-shelf-all-link:hover svg {
  transform: translateX(3px);
}

.club-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #475569;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.club-nav-btn svg {
  width: 15px;
  height: 15px;
}

.club-nav-btn:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #cbd5e1;
  transform: scale(1.05);
}

.club-shelf-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 4px 2px 14px 2px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.club-shelf-carousel::-webkit-scrollbar {
  display: none;
}

.club-shelf-card {
  flex: 0 0 calc((100% - 40px) / 3);
  min-width: 290px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid #eef2f6;
  border-radius: 24px;
  padding: 10px 10px 18px 10px;
  scroll-snap-align: start;
  box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.05);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.club-shelf-card:hover {
  transform: translateY(-4px);
  border-color: #e2e8f0;
  box-shadow: 0 16px 32px -8px rgba(15, 23, 42, 0.1);
}

.shelf-card-thumb {
  width: 100%;
  height: 165px;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 16px;
  background: #0f172a;
  position: relative;
}

.shelf-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.93) contrast(1.02);
  transition: transform 0.45s ease, filter 0.45s ease;
}

.club-shelf-card:hover .shelf-card-thumb img {
  transform: scale(1.04);
  filter: brightness(0.96) contrast(1.02);
}

.shelf-card-thumb .shelf-card-cat {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  font-size: 0.72rem;
  font-weight: 700;
  color: #4f46e5;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  padding: 4px 12px;
  border-radius: 9999px;
  letter-spacing: -0.01em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.shelf-card-tag {
  display: none;
}

.shelf-card-content {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 0 10px;
  flex: 1;
}

.shelf-card-text {
  flex: 1;
  min-width: 0;
}

.shelf-card-cat {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #4f46e5;
  background: #eef2ff;
  padding: 3px 9px;
  border-radius: 6px;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.shelf-card-cat.cat-youth,
.club-shelf-card:nth-child(2) .shelf-card-cat {
  color: #9333ea;
  background: #faf5ff;
}

.shelf-card-cat.cat-dance,
.club-shelf-card:nth-child(3) .shelf-card-cat {
  color: #0d9488;
  background: #f0fdfa;
}

.shelf-card-title {
  font-size: 1.08rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 6px;
}

.shelf-card-summary {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.shelf-card-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  flex-shrink: 0;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  margin-bottom: 2px;
}

.shelf-card-btn svg {
  width: 15px;
  height: 15px;
  transition: transform 0.2s ease;
}

.club-shelf-card:hover .shelf-card-btn {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  transform: scale(1.05);
}

.club-shelf-card:hover .shelf-card-btn svg {
  transform: translateX(1px);
}

/* --------------------------------------------------------------------------
   MENUCRAFTED.COM SHOWCASE CARD (Дизайн точно по предоставения скрийншот)
   -------------------------------------------------------------------------- */
.menucrafted-card {
  width: 100%;
  margin-top: 36px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 28px;
  box-shadow: 0 16px 45px -10px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 42px 46px;
  gap: 40px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.menucrafted-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.09);
}

/* Left Column */
.menucrafted-info-col {
  flex: 1;
  max-width: 520px;
  display: flex;
  flex-direction: column;
}

.menucrafted-top-tag {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.mc-tag-text {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #64748b;
  text-transform: uppercase;
}

.mc-tag-line {
  width: 32px;
  height: 1px;
  background: #cbd5e1;
}

.mc-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 9999px;
  background: #fef3c7;
  border: 1px solid #fde68a;
  font-size: 0.72rem;
  font-weight: 700;
  color: #92400e;
  letter-spacing: -0.01em;
}

.mc-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #d97706;
  box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.7);
  animation: mcPulse 2s infinite;
}

@keyframes mcPulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(217, 119, 6, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(217, 119, 6, 0);
  }
}

.menucrafted-title {
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: #0f172a;
  line-height: 1.15;
  margin-bottom: 16px;
}

.menucrafted-desc {
  font-size: 0.96rem;
  line-height: 1.62;
  color: #5e6675;
  margin-bottom: 26px;
}

/* Specifications Grid */
.menucrafted-specs-grid {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid #f1f3f7;
  border-bottom: 1px solid #f1f3f7;
  margin-bottom: 28px;
}

.mc-spec-item {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.mc-spec-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--color-accent-light);
  border: 1px solid var(--color-accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  flex-shrink: 0;
}

.mc-spec-icon svg {
  width: 18px;
  height: 18px;
}

.mc-spec-text {
  display: flex;
  flex-direction: column;
}

.mc-spec-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
}

.mc-spec-val {
  font-size: 0.76rem;
  color: #64748b;
  font-weight: 500;
  line-height: 1.3;
}

/* Action Button */
.menucrafted-actions {
  display: flex;
  align-items: center;
}

.mc-explore-btn {
  background: #11141a;
  color: #ffffff;
  padding: 13px 26px;
  border-radius: 12px;
  font-size: 0.94rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(17, 20, 26, 0.2);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.mc-explore-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s ease;
}

.mc-explore-btn:hover {
  background: #24262b;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(17, 20, 26, 0.28);
}

.mc-explore-btn:hover svg {
  transform: translateX(3px);
}

/* Right Column: Browser Window Mockup */
.menucrafted-preview-col {
  flex: 1.15;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mc-browser-window {
  width: 100%;
  max-width: 580px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 48px -12px rgba(15, 23, 42, 0.12), 0 4px 14px rgba(0, 0, 0, 0.03);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.menucrafted-card:hover .mc-browser-window {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 26px 56px -14px rgba(15, 23, 42, 0.16);
}

.mc-browser-bar {
  background: #f8fafc;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.mc-browser-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mc-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.mc-dot-red {
  background: #ff5f56;
}

.mc-dot-yellow {
  background: #ffbd2e;
}

.mc-dot-green {
  background: #27c93f;
}

.mc-browser-url-pill {
  flex: 1;
  max-width: 320px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 4px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.mc-lock-icon {
  width: 12px;
  height: 12px;
  color: #64748b;
  flex-shrink: 0;
}

.mc-url-text {
  font-size: 0.74rem;
  font-weight: 600;
  color: #334155;
  letter-spacing: -0.01em;
}

.mc-reload-icon {
  width: 12px;
  height: 12px;
  color: #94a3b8;
  flex-shrink: 0;
}

.mc-browser-body {
  display: block;
  position: relative;
  width: 100%;
  background: #0f172a;
  overflow: hidden;
  line-height: 0;
  text-decoration: none;
}

.mc-browser-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.menucrafted-card:hover .mc-browser-img {
  transform: scale(1.02);
}

/* --------------------------------------------------------------------------
   2. THREE-COLUMN PROJECTS GRID
   -------------------------------------------------------------------------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 100%;
  margin: 0 auto 60px auto;
  width: 100%;
}

.project-grid-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 24px;
  padding: 24px 22px 22px 22px;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  transition: all 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-grid-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -6px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.12);
}

.project-grid-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.project-category-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 9999px;
  background: #f4f5f8;
  font-size: 0.74rem;
  font-weight: 600;
  color: #4b5563;
}

.project-year {
  font-size: 0.78rem;
  font-weight: 500;
  color: #94a3b8;
}

.project-grid-img-wrap {
  width: 100%;
  height: 165px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 16px;
  background: #11141a;
  position: relative;
}

.project-grid-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.project-grid-card:hover .project-grid-img {
  transform: scale(1.03);
}

.project-grid-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.project-title {
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #11141a;
}

.project-link-icon {
  width: 18px;
  height: 18px;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.project-link-icon svg {
  width: 15px;
  height: 15px;
}

.project-link-icon:hover {
  color: #11141a;
  transform: translateY(-1px);
}

.project-desc {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #5e6675;
  margin-bottom: 14px;
  flex: 1;
}

.project-grid-footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
}

.project-circle-action {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f8f9fa;
  border: 1px solid #eef0f3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #11141a;
  text-decoration: none;
  transition: all 0.25s ease;
}

.project-circle-action svg {
  width: 15px;
  height: 15px;
  transition: transform 0.25s ease;
}

/* Active solid dark button for Card 1 matching screenshot */
.project-circle-action-dark {
  background: #111215;
  color: #ffffff;
  border-color: #111215;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.project-circle-action-dark:hover {
  background: #24262b;
  border-color: #24262b;
}

.project-grid-card:hover .project-circle-action:not(.project-circle-action-dark) {
  background: #ffffff;
  border-color: #d8dbe2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.project-circle-action:hover {
  transform: translateX(2px);
}

/* --------------------------------------------------------------------------
   PROJECTS RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1120px) {
  .featured-card-top {
    flex-direction: column;
  }

  .featured-panoramic-bg,
  .featured-bg-slider {
    position: relative;
    width: 100%;
    height: 250px;
  }

  .featured-panoramic-mask {
    background: linear-gradient(to bottom, transparent 0%, #ffffff 100%);
  }

  .featured-card-content {
    width: 100%;
    min-width: 0;
    padding: 32px 30px;
  }

  .club-shelf-card {
    flex: 0 0 calc((100% - 16px) / 2);
  }

  .menucrafted-card {
    flex-direction: column;
    padding: 34px 28px;
    gap: 32px;
  }

  .menucrafted-info-col {
    max-width: 100%;
    width: 100%;
  }

  .menucrafted-preview-col {
    width: 100%;
  }

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

@media (max-width: 768px) {
  .projects-section {
    padding: 56px 0 60px 0;
  }

  .projects-container {
    padding: 0 20px;
  }

  /* --------------------------------------------------------------------------
     MOBILE CLUB SECTION: Unified Single Card with Divider (Just like Desktop)
     -------------------------------------------------------------------------- */
  .featured-project-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 16px 44px -12px rgba(15, 23, 42, 0.08), 0 2px 10px rgba(15, 23, 42, 0.02);
    border-radius: 28px;
    gap: 0;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .featured-card-divider {
    display: block;
    width: 100%;
    height: 1px;
    background: rgba(0, 0, 0, 0.06);
    margin: 0;
  }

  /* 1. Main Club Hero Card - Top Half of Unified Card */
  .featured-card-top {
    position: relative;
    width: 100%;
    background: #ffffff;
    border: none;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    padding: 0;
    display: flex;
    flex-direction: column;
  }

  /* Photo slider at top with full width and rounded visual */
  .featured-bg-slider {
    position: relative;
    width: 100%;
    height: 200px;
    max-height: none;
    z-index: 1;
    overflow: hidden;
    margin: 0;
    border-radius: 28px 28px 0 0;
    clip-path: none;
    box-shadow: none;
  }

  /* Gentle gradient at bottom of photo connecting with white card body */
  .featured-panoramic-mask {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    z-index: 2;
    pointer-events: none;
    clip-path: none;
    background: linear-gradient(
      to bottom,
      rgba(15, 23, 42, 0.1) 0%,
      rgba(15, 23, 42, 0) 50%,
      rgba(255, 255, 255, 0.4) 85%,
      #ffffff 100%
    );
  }

  .featured-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
  }

  /* Club logo stays nicely on top right of the photo */
  .featured-club-logo-wrap {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 52px;
    height: 52px;
    z-index: 5;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 50%;
    padding: 6px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.8);
  }

  /* Card text content has 100% width, crystal clear readability */
  .featured-card-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    padding: 20px 20px 22px 20px;
    width: 100%;
    min-width: 0;
  }

  .featured-title {
    font-size: clamp(1.5rem, 6.4vw, 2.05rem);
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.035em;
    line-height: 1.15;
    margin-bottom: 12px;
    max-width: 100%;
    white-space: nowrap;
  }

  .featured-title .highlight-club {
    background: linear-gradient(135deg, #4338ca 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .featured-desc {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #64748b;
    margin-bottom: 20px;
    max-width: 100%;
    font-weight: 450;
    text-shadow: none;
  }

  /* Hide metrics bar on mobile */
  .featured-metrics-row {
    display: none !important;
  }

  /* Action buttons side-by-side */
  .featured-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 10px;
  }

  .featured-actions .featured-btn {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    justify-content: center;
    border-radius: 9999px;
    background: #0f172a;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
  }

  .featured-video-btn {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    justify-content: center;
    border-radius: 9999px;
    background: #ffffff;
    color: #0f172a;
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  }

  .btn-play-icon {
    width: 18px;
    height: 18px;
    color: #0f172a;
  }

  /* 2. Club Projects Shelf - Bottom Half of Unified Card */
  .featured-card-bottom {
    background: #ffffff;
    border: none;
    border-radius: 0;
    padding: 24px 20px 22px 20px;
    box-shadow: none;
    width: 100%;
  }

  .club-shelf-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 18px;
    width: 100%;
  }

  .club-shelf-title-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .club-shelf-pill {
    font-size: 1.18rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.025em;
    background: transparent;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
    gap: 10px;
    display: inline-flex;
    align-items: center;
  }

  .shelf-pill-icon {
    width: 36px;
    height: 36px;
    padding: 7px;
    border-radius: 10px;
    background: #eef2ff;
    color: #4f46e5;
    flex-shrink: 0;
  }

  .club-shelf-all-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #4f46e5;
    text-decoration: none;
    white-space: nowrap;
  }

  .club-shelf-all-link svg {
    width: 15px;
    height: 15px;
  }

  .club-shelf-desc {
    display: block;
    font-size: 0.88rem;
    line-height: 1.48;
    color: #64748b;
    margin: 0;
  }

  .club-shelf-nav {
    display: none;
  }

  /* Vertical Stack of Beautiful Cards Matching Mockup Exactly */
  .club-shelf-carousel {
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: visible;
    padding: 0;
  }

  .club-shelf-card {
    flex: 1 1 auto;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 0 16px 0;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 24px;
    box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.06);
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .club-shelf-card:active {
    transform: scale(0.99);
  }

  /* Full-width photo banner at top with aspect-ratio 2:1 matching exact website screenshot resolution */
  .shelf-card-thumb {
    width: 100%;
    aspect-ratio: 1.95 / 1;
    height: auto;
    max-height: 200px;
    border-radius: 24px 24px 0 0;
    margin-bottom: 14px;
    flex-shrink: 0;
    overflow: hidden;
    background: #0f172a;
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  }

  .shelf-card-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.08);
    pointer-events: none;
    z-index: 1;
  }

  .shelf-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    filter: brightness(0.88) contrast(1.04);
  }

  /* Card content below photo: text on left, arrow button on right */
  .shelf-card-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 14px;
    min-width: 0;
    padding: 0 16px;
  }

  .shelf-card-text {
    flex: 1;
    min-width: 0;
  }

  .shelf-card-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.025em;
    margin-bottom: 4px;
    line-height: 1.25;
  }

  .shelf-card-summary {
    font-size: 0.84rem;
    line-height: 1.45;
    color: #64748b;
    margin: 0;
  }

  /* Round arrow button on right */
  .shelf-card-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
    flex-shrink: 0;
    margin: 0;
    transition: all 0.2s ease;
  }

  .club-shelf-card:nth-child(2) .shelf-card-btn {
    background: #faf5ff;
    color: #9333ea;
    border-color: #f3e8ff;
  }

  .club-shelf-card:nth-child(3) .shelf-card-btn {
    background: #f0fdfa;
    color: #0d9488;
    border-color: #ccfbf1;
  }

  .shelf-card-btn svg {
    width: 18px;
    height: 18px;
  }

  .menucrafted-card {
    padding: 24px 20px;
    border-radius: 24px;
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .menucrafted-info-col {
    display: contents;
  }

  .menucrafted-top-tag {
    order: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    align-self: flex-start;
    margin-bottom: 12px;
  }

  .menucrafted-title {
    order: 2;
    width: 100%;
    text-align: left;
    align-self: flex-start;
    font-size: 1.85rem;
    margin-bottom: 18px;
    letter-spacing: -0.035em;
  }

  .menucrafted-preview-col {
    order: 3;
    width: 100%;
    margin-bottom: 22px;
  }

  .menucrafted-desc {
    order: 4;
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 20px;
  }

  .menucrafted-specs-grid {
    order: 5;
    width: 100%;
    max-width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px 0;
    margin-bottom: 20px;
  }

  .mc-spec-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
  }

  .menucrafted-actions {
    order: 6;
    width: 100%;
  }

  .menucrafted-actions .mc-explore-btn {
    width: 100%;
    justify-content: center;
  }

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

  .project-grid-card {
    padding: 18px;
    border-radius: 20px;
  }

  .project-grid-img-wrap {
    height: 155px;
  }
}

/* ==========================================================================
   TECH STACK SECTION ("ТЕХНОЛОГИЧЕН СТЕК" - Exact match to uploaded mockup)
   ========================================================================== */
.tech-section {
  width: 100%;
  position: relative;
  z-index: 10;
  padding: 90px 0 90px 0;
  background-color: var(--color-bg);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.tech-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 48px;
}

/* Top Header Bar */
.tech-top-bar {
  display: flex;
  align-items: center;
  margin-bottom: 36px;
}

.tech-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.tech-tag .tag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-accent);
  box-shadow: 0 0 8px var(--color-accent-glow);
}

.tech-tag .tag-text {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-black);
}

.tech-tag .tag-line {
  display: inline-block;
  width: 44px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--color-accent) 0%, rgba(79, 70, 229, 0.15) 100%);
}

.tech-rows-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

/* Individual Tech Row Card */
.tech-row {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 26px;
  padding: 20px 24px;
  gap: 24px;
  box-shadow: 0 8px 30px -8px rgba(15, 23, 42, 0.04);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.tech-row:hover {
  box-shadow: 0 16px 42px -10px rgba(15, 23, 42, 0.08);
  border-color: rgba(0, 0, 0, 0.09);
}

/* Left Sidebar in Row */
.tech-row-sidebar {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 210px;
  min-width: 210px;
  flex-shrink: 0;
}

.tech-sidebar-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--color-accent-light);
  border: 1px solid var(--color-accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.25s ease;
}

.tech-row:hover .tech-sidebar-icon {
  background: var(--color-accent);
  color: #ffffff;
  border-color: var(--color-accent);
  box-shadow: 0 4px 14px var(--color-accent-glow);
}

.tech-sidebar-icon svg {
  width: 18px;
  height: 18px;
}

.tech-sidebar-info {
  display: flex;
  flex-direction: column;
}

.tech-sidebar-title {
  font-size: 1.12rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin-bottom: 3px;
}

.tech-sidebar-desc {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.4;
  font-weight: 500;
}

/* Cards Grid on Right - Single row on desktop with headroom for hover */
.tech-cards-grid {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 10px;
  flex: 1;
  padding: 8px 4px 6px 4px;
  margin: -8px -4px -6px -4px;
  overflow: visible;
}

/* Tech Badge Card - Optimized for exactly 1 row on desktop */
.tech-badge-card.is-clone {
  display: none;
}

.tech-badge-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 72px;
  min-height: 86px;
  padding: 10px 4px 8px 4px;
  background: #ffffff;
  border: 1px solid #edf0f5;
  border-radius: 18px;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.03);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

/* Refined, smooth Hover Effect for each technology - no clipping */
.tech-badge-card:hover,
.tech-badge-card:focus-visible {
  transform: translateY(-5px) scale(1.05);
  background: #ffffff;
  border-color: rgba(79, 70, 229, 0.4);
  box-shadow: 0 14px 30px -8px rgba(79, 70, 229, 0.16), 0 2px 6px rgba(0, 0, 0, 0.04);
  z-index: 10;
}

.tech-badge-card:active {
  transform: translateY(-2px) scale(1.02);
}

.tech-badge-icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.tech-badge-card:hover .tech-badge-icon {
  transform: scale(1.14);
}

.tech-badge-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.tech-badge-icon svg {
  width: 28px;
  height: 28px;
}

.tech-badge-name {
  font-size: 0.71rem;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: -0.015em;
  text-align: center;
  line-height: 1.2;
  white-space: normal;
  word-break: break-word;
  max-width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.tech-badge-card:hover .tech-badge-name {
  color: var(--color-accent);
}

/* Responsive Tech Section */
@media (min-width: 993px) and (max-width: 1120px) {
  .tech-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
  }

  .tech-row-sidebar {
    width: 100%;
    min-width: 0;
  }

  .tech-cards-grid {
    width: 100%;
    flex-wrap: wrap;
    gap: 10px;
  }

  .tech-badge-card {
    flex: 1 1 calc(25% - 10px);
    min-width: 78px;
  }
}

@media (max-width: 992px) {
  .tech-section {
    padding: 56px 0 60px 0;
  }

  .tech-container {
    padding: 0 16px;
  }

  .tech-rows-wrapper {
    gap: 16px;
  }

  /* Stacking text on top and technologies carousel on bottom */
  .tech-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 20px 18px 18px 18px;
    border-radius: 24px;
    gap: 14px;
    width: 100%;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.04);
  }

  .tech-row-sidebar {
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 0;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .tech-sidebar-icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    flex-shrink: 0;
  }

  .tech-sidebar-title {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 2px;
  }

  .tech-sidebar-desc {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.35;
  }

  /* Full-width carousel on bottom: 4 cards visible at a time */
  .tech-cards-grid {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    padding: 4px 2px 8px 2px;
    margin: 0;
    cursor: grab;
    user-select: none;
  }

  .tech-cards-grid::-webkit-scrollbar {
    display: none;
  }

  .tech-badge-card.is-clone {
    display: flex !important;
  }

  /* Exactly 4 cards visible per row with 8px gap */
  .tech-badge-card {
    flex: 0 0 calc((100% - 24px) / 4) !important;
    width: calc((100% - 24px) / 4) !important;
    min-width: calc((100% - 24px) / 4) !important;
    max-width: calc((100% - 24px) / 4) !important;
    flex-shrink: 0 !important;
    min-height: 98px;
    padding: 12px 4px 10px 4px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #eef2f6;
    box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.04);
  }

  .tech-badge-card:hover,
  .tech-badge-card:focus-visible {
    transform: translateY(-2px) scale(1.02);
  }

  .tech-badge-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 6px;
  }

  .tech-badge-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .tech-badge-icon svg {
    width: 26px;
    height: 26px;
  }

  .tech-badge-name {
    font-size: 0.68rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
    text-align: center;
  }
}

@media (max-width: 350px) {
  .tech-cards-grid {
    gap: 6px;
  }

  .tech-badge-card {
    flex: 0 0 calc((100% - 12px) / 3) !important;
    width: calc((100% - 12px) / 3) !important;
    min-width: calc((100% - 12px) / 3) !important;
    max-width: calc((100% - 12px) / 3) !important;
    min-height: 94px;
    padding: 10px 3px 8px 3px;
    border-radius: 15px;
  }

  .tech-badge-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 5px;
  }

  .tech-badge-name {
    font-size: 0.65rem;
  }
}

/* ==========================================================================
   ACHIEVEMENTS SECTION ("ПОСТИЖЕНИЯ" - Exact match to uploaded mockup)
   ========================================================================== */
.achievements-section {
  width: 100%;
  position: relative;
  z-index: 10;
  padding: 90px 0 90px 0;
  background-color: var(--color-bg);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.achievements-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 48px;
}

/* Top Header Bar */
.achievements-top-bar {
  display: flex;
  align-items: center;
  margin-bottom: 36px;
}

.achievements-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.achievements-tag .tag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-accent);
  box-shadow: 0 0 8px var(--color-accent-glow);
}

.achievements-tag .tag-text {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-black);
}

.achievements-tag .tag-line {
  display: inline-block;
  width: 44px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--color-accent) 0%, rgba(79, 70, 229, 0.15) 100%);
}

/* Main Grid: 2 Cards - Balanced 1fr 1fr layout */
.achievements-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 32px;
  align-items: stretch;
}

/* Individual Achievement Card */
.achievement-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 28px;
  padding: 30px 32px;
  box-shadow: 0 8px 30px -8px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.achievement-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px -12px rgba(15, 23, 42, 0.09);
  border-color: rgba(0, 0, 0, 0.09);
}

/* Card 1 Internal Layout */
.achieve-card-main-content {
  display: block;
  margin-bottom: 20px;
}

.achieve-card-main-content::after {
  content: "";
  display: table;
  clear: both;
}

.achieve-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: nowrap;
}

.achieve-year-pill {
  font-size: 0.74rem;
  font-weight: 800;
  color: #ffffff;
  background: #1e293b;
  padding: 3px 12px;
  border-radius: 9999px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}

.achieve-award-first-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 800;
  color: #4f46e5;
  background: #eef2ff;
  border: 1px solid rgba(99, 102, 241, 0.22);
  padding: 4px 12px;
  border-radius: 9999px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.achieve-award-first-pill span {
  white-space: nowrap;
}

.trophy-icon {
  width: 14px;
  height: 14px;
  color: #4f46e5;
  flex-shrink: 0;
}

.achieve-category-text {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #64748b;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.achieve-tag-line {
  width: 32px;
  height: 1px;
  background-color: #cbd5e1;
}

.achieve-card-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.025em;
  line-height: 1.22;
  margin-bottom: 10px;
}

.achieve-date-row,
.achieve-school-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 14px;
}

.achieve-date-row svg,
.achieve-school-row svg {
  width: 15px;
  height: 15px;
  color: #94a3b8;
  flex-shrink: 0;
}

.achieve-card-desc {
  font-size: 0.9rem;
  line-height: 1.58;
  color: #475569;
  margin-bottom: 10px;
}

.achieve-partner-link {
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
  transition: color 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline;
}

.achieve-partner-link:hover {
  color: #60a5fa;
}

.achieve-card-note {
  font-size: 0.8rem;
  line-height: 1.5;
  color: #94a3b8;
}

/* Card 1 Right Image Slider (5-baykushev.jpg, 5-shalyavska.JPG & Отличие) */
.achieve-card-right-img {
  float: right;
  width: 250px;
  height: 245px;
  margin-left: 20px;
  margin-bottom: 12px;
  flex-shrink: 0;
  border-radius: 20px;
  overflow: hidden;
  background: #f8fafc;
  box-shadow: 0 6px 20px -4px rgba(15, 23, 42, 0.08);
  position: relative;
}

.achieve-slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  opacity: 0;
  z-index: 0;
  transition: opacity 1.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s ease;
  will-change: opacity;
}

/* Specific position for certificate diploma so Отличие and all text are fully framed */
.achieve-slide-img.achieve-slide-cert {
  object-fit: contain;
  object-position: center;
  background: #ffffff;
}

.achieve-slide-img.prev-active {
  opacity: 1;
  z-index: 1;
  transition: none;
}

.achieve-slide-img.active {
  opacity: 1;
  z-index: 2;
}

.achievement-card:hover .achieve-slide-img {
  transform: scale(1.03);
}

/* Video Banner at Bottom of Card 1 */
.achieve-video-banner {
  display: flex;
  align-items: center;
  background: #0f172a;
  border-radius: 20px;
  padding: 12px 18px 12px 14px;
  gap: 16px;
  text-decoration: none;
  color: #ffffff;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.achieve-video-banner:hover {
  background: #1e293b;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -4px rgba(15, 23, 42, 0.3);
}

.achieve-video-thumb-wrap {
  width: 120px;
  height: 68px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  background: #1e293b;
}

.achieve-video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.achieve-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
}

.achieve-play-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}

.achieve-play-btn svg {
  width: 13px;
  height: 13px;
  margin-left: 2px;
}

.achieve-video-banner:hover .achieve-play-btn {
  transform: scale(1.12);
}

.achieve-video-info {
  flex: 1;
  min-width: 0;
}

.achieve-video-tag-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.achieve-video-tag {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #94a3b8;
  text-transform: uppercase;
}

.achieve-video-line {
  width: 24px;
  height: 1px;
  background: #334155;
}

.achieve-video-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  margin-bottom: 2px;
}

.achieve-video-platform {
  font-size: 0.74rem;
  color: #94a3b8;
  font-weight: 500;
}

.achieve-video-arrow-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.achieve-video-arrow-btn svg {
  width: 14px;
  height: 14px;
}

.achieve-video-banner:hover .achieve-video-arrow-btn {
  background: #ffffff;
  color: #0f172a;
  transform: scale(1.08);
}

/* Card 2 Right Certificate Image - Pure Full-Diploma Display (Uncropped, Framed Document) */
.achieve-card-right-diploma {
  float: right;
  width: 240px;
  height: 310px;
  margin-left: 20px;
  margin-bottom: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: transparent;
  border: none;
  padding: 0;
}

.achieve-diploma-img {
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  display: block;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 14px 35px -6px rgba(15, 23, 42, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.06);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.achievement-card:hover .achieve-diploma-img {
  transform: translateY(-2px) scale(1.02);
}

/* Card 2 Soft Banner matching mockup */
.achieve-award-soft-banner {
  background: #f4f6fa;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 12px 18px 12px 14px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
  transition: all 0.25s ease;
}

.achieve-award-soft-banner:hover {
  background: #edf1f8;
  border-color: #cbd5e1;
  box-shadow: 0 6px 20px -4px rgba(15, 23, 42, 0.06);
}

.achieve-award-soft-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e0e7ff;
  color: #4f46e5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.achieve-award-soft-banner:hover .achieve-award-soft-icon {
  transform: scale(1.08);
}

.achieve-award-soft-icon svg {
  width: 22px;
  height: 22px;
}

.achieve-award-soft-info {
  flex: 1;
  min-width: 0;
}

.achieve-award-soft-tag-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}

.achieve-award-soft-tag {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #6366f1;
  text-transform: uppercase;
}

.achieve-award-soft-line {
  width: 24px;
  height: 1px;
  background: rgba(99, 102, 241, 0.35);
}

.achieve-award-soft-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 2px;
}

.achieve-award-soft-sub {
  font-size: 0.74rem;
  color: #64748b;
  font-weight: 500;
}

.achieve-award-navy-badge {
  padding: 8px 18px;
  border-radius: 9999px;
  background: #3b49df;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(59, 73, 223, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.achieve-award-soft-banner:hover .achieve-award-navy-badge {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(59, 73, 223, 0.38);
}

/* Hide pillars to match exact mockup */
.achievements-pillars-row {
  display: none !important;
}

.achieve-pillar {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  padding: 18px 22px;
  box-shadow: 0 4px 16px -4px rgba(15, 23, 42, 0.03);
  transition: all 0.25s ease;
}

.achieve-pillar:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.06);
}

.achieve-pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-accent-light);
  border: 1px solid var(--color-accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.achieve-pillar:hover .achieve-pillar-icon {
  background: var(--color-accent);
  color: #ffffff;
  border-color: var(--color-accent);
  box-shadow: 0 6px 16px -2px var(--color-accent-glow);
}

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

.achieve-pillar-info {
  display: flex;
  flex-direction: column;
}

.achieve-pillar-title {
  font-size: 0.94rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.015em;
  margin-bottom: 2px;
}

.achieve-pillar-desc {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 500;
  line-height: 1.35;
}

/* Responsive Achievements Section */
@media (max-width: 1024px) {
  .achievements-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .achievements-section {
    padding: 56px 0 60px 0;
  }

  .achievements-container {
    padding: 0 16px;
  }

  .achievements-top-bar {
    margin-bottom: 24px;
  }

  .achievement-card {
    padding: 22px 18px;
    border-radius: 24px;
  }

  .achieve-card-main-content {
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
  }

  .achieve-badge-row { 
    order: 1; 
    margin-bottom: 12px; 
  }

  .achieve-card-title { 
    order: 2; 
    font-size: clamp(1.45rem, 5.5vw, 1.65rem); 
    font-weight: 800;
    line-height: 1.24;
    letter-spacing: -0.025em;
    color: #0f172a;
    margin-bottom: 10px; 
    width: 100%;
    display: block;
  }

  .achieve-card-title br {
    display: none;
  }

  .achieve-date-row { 
    order: 3; 
    margin-bottom: 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
  }

  .achieve-card-right-img {
    order: 4;
    float: none;
    width: 100%;
    height: 240px;
    min-height: 220px;
    border-radius: 18px;
    margin: 0 0 16px 0;
  }

  .achieve-card-right-diploma {
    order: 4;
    float: none;
    width: 100%;
    height: 320px;
    min-height: 280px;
    padding: 0;
    margin: 0 0 16px 0;
  }

  .achieve-card-desc { 
    order: 5; 
    font-size: 0.92rem;
    line-height: 1.6;
    color: #334155;
    margin-bottom: 10px; 
  }

  .achieve-card-note { 
    order: 6; 
    font-size: 0.82rem;
    line-height: 1.5;
    color: #64748b;
    margin-bottom: 6px; 
  }

  .achieve-video-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    gap: 12px;
    border-radius: 18px;
  }

  .achieve-award-soft-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 18px;
  }

  .achieve-video-thumb-wrap {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
  }

  .achieve-video-arrow-btn {
    display: none;
  }

  .achievements-pillars-row {
    gap: 12px;
  }

  .achieve-pillar {
    padding: 16px 18px;
    border-radius: 18px;
  }
}

/* ==========================================================================
   CERTIFICATIONS SECTION ("СЕРТИФИКАТИ И ОБУЧЕНИЯ" - 1:1 Match to Mockup)
   ========================================================================== */
.certs-section {
  width: 100%;
  position: relative;
  z-index: 10;
  padding: 96px 0 100px 0;
  background-color: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.certs-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 48px;
}

/* Top Header Bar matching regular site sections */
.certs-top-bar {
  display: flex;
  align-items: center;
  margin-bottom: 32px;
}

.certs-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.certs-tag .tag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-accent);
  box-shadow: 0 0 8px var(--color-accent-glow);
}

.certs-tag .tag-text {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-black);
}

.certs-tag .tag-line {
  display: inline-block;
  width: 44px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--color-accent) 0%, rgba(79, 70, 229, 0.15) 100%);
}

/* Carousel Container with Side Navigation Buttons */
.certs-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.certs-carousel {
  display: flex;
  gap: 20px;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 8px 4px;
  -webkit-overflow-scrolling: touch;
}

.certs-carousel::-webkit-scrollbar {
  display: none;
}

/* Side Round Arrow Buttons */
.certs-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #334155;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}

.certs-nav-btn:hover {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  transform: scale(1.06);
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.16);
}

.certs-nav-btn svg {
  width: 18px;
  height: 18px;
}

/* Individual Certificate Card - Exactly 2.5 cards visible per view */
.cert-card {
  flex: 0 0 calc((100% - 30px) / 2.5);
  min-width: 320px;
  max-width: 440px;
  scroll-snap-align: start;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 26px;
  padding: 16px 18px 18px 18px;
  box-shadow: 0 8px 28px -6px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  transition: all 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.cert-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 16px 36px -8px rgba(15, 23, 42, 0.09);
}

/* Certificate Image Preview - Aspect Ratio matching certificates cleanly */
.cert-card-preview {
  width: 100%;
  aspect-ratio: 1.55 / 1;
  min-height: 160px;
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
  border: none;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

.cert-card-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.cert-card:hover .cert-card-preview img {
  transform: scale(1.02);
}

/* Card Body & Details */
.cert-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 2px 2px 2px 2px;
}

.cert-card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
}

.cert-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.28;
  margin: 0;
  flex: 1;
}

.cert-card-ext-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  flex-shrink: 0;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-top: -2px;
}

.cert-card-ext-btn:hover {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  transform: scale(1.08);
}

.cert-card-ext-btn svg {
  width: 14px;
  height: 14px;
}

.cert-card-issuer {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0 0 10px 0;
  font-weight: 500;
}

/* Card Footer: Date & Badge */
.cert-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.cert-card-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 500;
}

.cert-card-date svg {
  width: 14px;
  height: 14px;
  color: #94a3b8;
}

.cert-card-badge {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 9999px;
  white-space: nowrap;
}

.badge-web {
  background: #eef2ff;
  color: #4f46e5;
  border: 1px solid #e0e7ff;
}

.badge-software {
  background: #f0fdfa;
  color: #0d9488;
  border: 1px solid #ccfbf1;
}

.badge-general {
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
}

/* Pagination Dots */
.certs-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 0;
}

.cert-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: #cbd5e1;
  transition: all 0.3s ease;
  cursor: pointer;
}

.cert-dot.active {
  width: 28px;
  background: #4f46e5;
}

/* Bottom Action Button */
.certs-bottom-action {
  display: flex;
  justify-content: center;
}

.certs-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 26px;
  border-radius: 9999px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.09);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.certs-all-btn:hover {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.certs-all-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.certs-all-btn:hover svg {
  transform: translateX(3px);
}

/* Responsive Certifications Section */
@media (max-width: 1024px) {
  .certs-container {
    padding: 0 32px;
  }

  .cert-card {
    flex: 0 0 calc((100% - 20px) / 2);
    min-width: 290px;
    max-width: none;
  }
}

@media (max-width: 768px) {
  .certs-section {
    padding: 56px 0 60px 0;
  }

  .certs-container {
    padding: 0 20px;
  }

  .certs-top-bar {
    margin-bottom: 24px;
  }

  .certs-carousel-wrapper {
    position: relative;
    display: block;
    gap: 0;
    margin-bottom: 20px;
  }

  /* Показваме стрелкичките и на телефон като стилни плаващи бутони */
  .certs-nav-btn {
    display: flex !important;
    position: absolute;
    top: 50%;
    margin-top: -20px;
    transform: none !important;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.18);
    color: #0f172a;
    z-index: 10;
    cursor: pointer;
    touch-action: manipulation;
    transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
  }

  .certs-nav-btn:hover,
  .certs-nav-btn:focus {
    transform: none !important;
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
  }

  .certs-nav-btn:active {
    transform: scale(0.92) !important;
    background: #0f172a;
    color: #ffffff;
  }

  .certs-nav-prev {
    left: 2px;
  }

  .certs-nav-next {
    right: 2px;
  }

  .certs-nav-btn svg {
    width: 18px;
    height: 18px;
  }

  .certs-carousel {
    gap: 16px;
    padding: 8px 7% 14px 7%;
    scroll-padding: 0 7%;
  }

  .cert-card {
    flex: 0 0 100%;
    min-width: 0;
    max-width: 100%;
    scroll-snap-align: center;
  }
}

/* ==========================================================================
   CONTACT SECTION ("КОНТАКТ" - Matching exact design from screenshot)
   ========================================================================== */
.contact-section {
  width: 100%;
  position: relative;
  z-index: 10;
  padding: 100px 0 200px 0;
  background-color: var(--color-bg);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 64px;
  align-items: start;
}

/* Left Column */
.contact-info-col {
  display: flex;
  flex-direction: column;
}

.contact-tag-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.contact-tag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-accent);
  box-shadow: 0 0 8px var(--color-accent-glow);
  flex-shrink: 0;
}

.contact-tag-text {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-black);
  text-transform: uppercase;
}

.contact-tag-line {
  width: 48px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--color-accent) 0%, rgba(79, 70, 229, 0.15) 100%);
}

.contact-title {
  font-size: 3.4rem;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-bottom: 22px;
}

.contact-desc {
  font-size: 1.02rem;
  line-height: 1.62;
  color: #64748b;
  margin-bottom: 34px;
  max-width: 460px;
}

/* Email Card */
.contact-email-card {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  background: transparent;
  width: fit-content;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-email-card:hover {
  transform: translateX(3px);
}

.contact-email-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--color-accent-light);
  border: 1px solid var(--color-accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.08);
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.contact-email-card:hover .contact-email-icon {
  background: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: 0 8px 20px -4px var(--color-accent-glow);
  color: #ffffff;
}

.contact-email-icon svg {
  width: 22px;
  height: 22px;
}

.contact-email-details {
  display: flex;
  flex-direction: column;
}

.contact-email-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 3px;
}

.contact-email-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

.contact-email-card:hover .contact-email-value {
  color: var(--color-accent);
}

.contact-divider {
  width: 100%;
  max-width: 380px;
  height: 1px;
  background-color: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  margin: 32px 0 28px 0;
}

/* Social Buttons */
.contact-socials-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-social-btn {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  text-decoration: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-social-btn svg {
  width: 19px;
  height: 19px;
}

.contact-social-btn:hover {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px -4px rgba(15, 23, 42, 0.16);
}

/* Right Column: Card & Form */
.contact-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 28px;
  padding: 42px 44px;
  box-shadow: 0 10px 40px -12px rgba(15, 23, 42, 0.04);
}

.contact-form-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}

.contact-form-subtitle {
  font-size: 0.94rem;
  line-height: 1.55;
  color: #64748b;
  margin-bottom: 28px;
}

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

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

.contact-field {
  width: 100%;
}

.contact-input,
.contact-textarea {
  width: 100%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 0.92rem;
  font-family: inherit;
  color: #0f172a;
  transition: all 0.2s ease;
  outline: none;
  box-sizing: border-box;
}

.contact-input::placeholder,
.contact-textarea::placeholder {
  color: #94a3b8;
  font-weight: 500;
}

.contact-input:focus,
.contact-textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.contact-textarea {
  resize: vertical;
  min-height: 124px;
}

.contact-submit-btn {
  width: 100%;
  background: #0f172a;
  color: #ffffff;
  border: none;
  border-radius: 14px;
  padding: 16px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 4px;
}

.contact-submit-btn svg {
  width: 17px;
  height: 17px;
  transition: transform 0.2s ease;
}

.contact-submit-btn:hover {
  background: #1e1b4b;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -6px var(--color-accent-glow);
}

.contact-submit-btn:hover svg {
  transform: translate(2px, -2px);
}

.contact-submit-btn:active {
  transform: translateY(0);
}

/* Responsive Styles for Contact */
@media (max-width: 960px) {
  .contact-section {
    padding: 70px 0 160px 0;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 0 24px;
  }

  .contact-title {
    font-size: 2.7rem;
  }

  .contact-card {
    padding: 32px 24px;
  }
}

@media (max-width: 768px) {
  .contact-section {
    padding: 56px 0 140px 0;
  }

  .contact-container {
    padding: 0 20px;
    gap: 36px;
  }

  .contact-title {
    font-size: clamp(2rem, 8vw, 2.45rem);
    margin-bottom: 16px;
  }

  .contact-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
  }

  .contact-email-card {
    width: 100%;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 18px;
    padding: 14px 16px;
    box-shadow: 0 4px 16px -4px rgba(15, 23, 42, 0.04);
  }

  .contact-email-value {
    font-size: 0.95rem;
    word-break: break-all;
  }

  .contact-card {
    padding: 26px 20px;
    border-radius: 22px;
  }

  .contact-form-title {
    font-size: 1.45rem;
  }

  .contact-form-subtitle {
    font-size: 0.88rem;
    margin-bottom: 20px;
  }

  .contact-form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .contact-input,
  .contact-textarea {
    font-size: 16px !important;
    padding: 13px 16px;
    border-radius: 12px;
  }

  .contact-submit-btn {
    min-height: 48px;
    padding: 14px 20px;
    font-size: 0.95rem;
  }
}

/* ==========================================================================
   ENTRANCE & SCROLL REVEAL ANIMATIONS (Текст и снимки при зареждане)
   ========================================================================== */
@keyframes heroFadeUp {
  0% {
    opacity: 0;
    transform: translateY(28px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroScaleIn {
  0% {
    opacity: 0;
    transform: scale(0.92) translateY(24px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes heroBadgePop {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(16px);
  }
  70% {
    transform: scale(1.05) translateY(-2px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Hero Section Entrance Stagger */
.hero-text-col .role-badge {
  opacity: 0;
  animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

.hero-title {
  opacity: 0;
  animation: heroFadeUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.28s forwards;
}

.hero-description {
  opacity: 0;
  animation: heroFadeUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.42s forwards;
}

.hero-actions {
  opacity: 0;
  animation: heroFadeUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.56s forwards;
}

.desktop-social-links,
.mobile-social-links {
  opacity: 0;
  animation: heroFadeUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
}

.portrait-card {
  opacity: 0;
  animation: heroScaleIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.25s forwards;
}

.floating-badge.badge-experience {
  opacity: 0;
  animation: heroBadgePop 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.65s forwards,
             floatSoft 5s ease-in-out 1.5s infinite;
}

.doodle-note {
  opacity: 0;
  animation: heroBadgePop 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

.orbit-container {
  opacity: 0;
  animation: heroFadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

/* Scroll / Section Elements Reveal Animation */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Image zoom/fade effect */
.reveal-scale {
  opacity: 0;
  transform: scale(0.94) translateY(20px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-scale.is-revealed {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Stagger delay helpers for cards, grids, items */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Respect User's Reduced Motion Settings */
@media (prefers-reduced-motion: reduce) {
  .hero-text-col .role-badge,
  .hero-title,
  .hero-description,
  .hero-actions,
  .desktop-social-links,
  .mobile-social-links,
  .portrait-card,
  .floating-badge.badge-experience,
  .doodle-note,
  .orbit-container,
  .reveal-on-scroll,
  .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}


