/* ==========================================================================
   DESIGN SYSTEM & VARIABLES (davidhajnik.sk) - Bootstrap 5 handles the grid/
   responsive breakpoints; this file only carries the visual design layer.
   ========================================================================== */
:root {
  --bg-primary: #040406;
  --bg-secondary: #0a0a0f;
  --bg-tertiary: #101016;
  --bg-card: #0f0f15;
  --bg-input: #15151e;

  --border-color: #1e1e28;
  --border-hover: #323246;

  --text-primary: #ffffff;
  --text-secondary: #a0a0ba;
  --text-muted: #575775;

  --accent-blue: #2563eb;
  --accent-purple: #7c3aed;
  --accent-glow-blue: rgba(37, 99, 235, 0.15);
  --accent-glow-purple: rgba(124, 58, 237, 0.15);
  --accent-gradient: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
  --accent-color: #7c3aed;
  --accent-inverse: #ffffff;

  --error-color: #ef4444;
  --success-color: #10b981;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-title: 'Outfit', sans-serif;

  --transition-fast: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);

  --header-height: 80px;

  --cursor-size: 8px;
  --cursor-follower-size: 40px;
}

/* ==========================================================================
   BASE
   ========================================================================== */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100%;
}
/* NOTE: overflow-x:hidden is intentionally kept ONLY at the html/body root level.
   Per the CSS overflow spec, setting overflow-x (but not overflow-y) on a normal
   block element makes the browser auto-compute overflow-y to 'auto' - silently
   turning that element into its own scrollable box. That's why a .container-level
   version of this rule (removed here) was trapping vertical scroll inside
   sections. html/body are exempt because their overflow propagates to the
   viewport instead of creating a nested scroll container. */

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
}

::selection {
  background-color: var(--accent-purple);
  color: var(--text-primary);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 600;
  line-height: 1.1;
  color: var(--text-primary);
}

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

img { max-width: 100%; height: auto; }

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button { cursor: pointer; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: #1e1e2d; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-purple); }

/* ==========================================================================
   UTILITY / SECTION HEADERS / BUTTONS
   ========================================================================== */
/* Extra breathing room on phones/small tablets so content doesn't run edge-to-edge. */
@media (max-width: 767.98px) {
  .container {
    padding-left: 5%;
    padding-right: 5%;
  }
}

.section-header { margin-bottom: 3rem; max-width: 700px; }

.section-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  display: inline-block;
  margin-bottom: 0.75rem;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-top: 1rem;
  font-weight: 300;
}

.btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: all var(--transition-fast);
  gap: 0.5rem;
}

.btn-primary {
  background: var(--accent-gradient);
  color: var(--text-primary);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.25);
  border: none;
}
.btn-primary:hover, .btn-primary:focus {
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(124, 58, 237, 0.4), 0 0 10px rgba(37, 99, 235, 0.2);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}
.btn-secondary:hover { border-color: var(--accent-purple); background-color: var(--accent-glow-purple); color: var(--text-primary); }

.btn-block { display: flex; width: 100%; }

.bg-grid {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-image: radial-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 0);
  background-size: 32px 32px;
  pointer-events: none; z-index: 1;
}

.radial-glow {
  position: absolute; top: -10%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.05) 0%, rgba(37, 99, 235, 0.02) 40%, transparent 70%);
  pointer-events: none; z-index: 1;
}

.custom-cursor {
  width: var(--cursor-size); height: var(--cursor-size);
  background-color: var(--text-primary); border-radius: 50%;
  position: fixed; transform: translate(-50%, -50%);
  pointer-events: none; z-index: 9999;
  transition: width 0.2s, height 0.2s, background-color 0.2s;
}
.custom-cursor-follower {
  width: var(--cursor-follower-size); height: var(--cursor-follower-size);
  border: 1px solid rgba(124, 58, 237, 0.3); border-radius: 50%;
  position: fixed; transform: translate(-50%, -50%);
  pointer-events: none; z-index: 9998;
  transition: transform 0.08s ease-out, width 0.3s, height 0.3s, border-color 0.3s;
}
.custom-cursor.hovered { width: 24px; height: 24px; background-color: rgba(124, 58, 237, 0.15); }
.custom-cursor-follower.hovered { width: 48px; height: 48px; border-color: var(--accent-purple); background-color: rgba(124, 58, 237, 0.02); }
@media (max-width: 768px) {
  .custom-cursor, .custom-cursor-follower { display: none; }
}

.reveal-item {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-item.revealed { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   HEADER & NAVIGATION (Bootstrap navbar drives mobile collapse)
   ========================================================================== */
.main-header {
  position: fixed; top: 0; left: 0; width: 100%; height: var(--header-height);
  z-index: 100; border-bottom: 1px solid transparent;
  transition: border-color var(--transition-smooth), background-color var(--transition-smooth);
}
.main-header.scrolled {
  background-color: rgba(4, 4, 6, 0.8);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-color: var(--border-color);
}
.header-container { display: flex; justify-content: space-between; align-items: center; height: 100%; }

.logo {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-title); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em;
}
.logo-dot { width: 8px; height: 8px; background: var(--accent-gradient); border-radius: 50%; display: inline-block; }

.nav-menu-wrapper { flex-grow: 1; justify-content: flex-end; }
/* Bootstrap gives .navbar > .container-fluid its own justify-content:space-between,
   which is what was pushing the hamburger toward the middle instead of the right
   edge - override it for our specific navbar instance. */
.nav-menu-wrapper .container-fluid { justify-content: flex-end; }

@media (min-width: 992px) {
  .nav-menu { display: flex; gap: 2rem; align-items: center; }
}

.nav-link {
  font-size: 0.875rem; font-weight: 500; letter-spacing: 0.05em;
  color: var(--text-secondary) !important; position: relative; padding: 0.5rem 0 !important;
}
.nav-link:hover { color: var(--text-primary) !important; }
.nav-link::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
  background: var(--accent-gradient); transition: width var(--transition-smooth);
}
.nav-link.active { color: var(--text-primary) !important; }
.nav-link.active::after { width: 100%; }

.planner-highlight { border: 1px dashed var(--border-color); padding: 0.35rem 0.85rem !important; border-radius: 4px; }
.planner-highlight:hover { border-color: var(--accent-purple); background-color: var(--accent-glow-purple); }
.planner-highlight::after { display: none; }

.navbar-toggler { border-color: var(--border-color); padding: 0.35rem 0.6rem; }
.navbar-toggler:focus { box-shadow: 0 0 0 0.15rem var(--accent-glow-purple); }
.navbar-toggler-icon { filter: invert(1); }

.mobile-nav-close { display: none; }

/* Full-height slide-in overlay menu on mobile/tablet, matching the original design
   intent, instead of Bootstrap's default small inline dropdown. We keep Bootstrap's
   JS purely for toggling the .show class; our own transform/transition drives the
   actual animation so the element stays full-screen the whole time instead of
   using Bootstrap's height-based collapse animation. */
@media (max-width: 991.98px) {
  #davidhajnikNav.navbar-collapse {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh !important;
    max-height: none !important;
    margin: 0;
    padding: 2rem;
    background-color: var(--bg-secondary);
    border: none;
    border-radius: 0;
    z-index: 200;
    transform: translateX(100%);
    transition: transform var(--transition-smooth);
    overflow: visible !important;
  }
  #davidhajnikNav.navbar-collapse.show {
    transform: translateX(0);
  }
  .nav-menu {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
    width: 100%;
    /* Bootstrap's .ms-auto utility (needed to push the menu right in the
       desktop horizontal navbar) sets margin-left:auto, which in this
       column-direction full-screen overlay overrides align-items:center
       and hugs the list to the right edge instead - cancel it here. */
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .nav-link { font-size: 1.4rem; }

  .mobile-nav-close {
    display: flex;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    background: transparent;
    color: var(--text-primary);
  }
  .mobile-nav-close:hover { border-color: var(--accent-purple); background-color: var(--accent-glow-purple); }
  .mobile-nav-close i { width: 22px; height: 22px; }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section { position: relative; min-height: 100vh; display: flex; align-items: center; padding-top: var(--header-height); overflow: hidden; }
.hero-container {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; justify-content: center;
  min-height: calc(100vh - var(--header-height));
  padding-top: 3rem; padding-bottom: 3rem;
}
.hero-content { max-width: 620px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem;
  background-color: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 30px;
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.05em; margin-bottom: 2rem; text-transform: uppercase;
}
.pulse-indicator { width: 8px; height: 8px; background-color: var(--success-color); border-radius: 50%; display: inline-block; position: relative; }
.pulse-indicator::after {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-color: var(--success-color); border-radius: 50%; animation: pulse-ring 1.5s infinite;
}
@keyframes pulse-ring { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(2.5); opacity: 0; } }

.hero-title { font-size: clamp(3.2rem, 8vw, 5.8rem); font-weight: 900; letter-spacing: -0.04em; line-height: 0.95; margin-bottom: 2rem; text-transform: uppercase; }
.outline-text { -webkit-text-stroke: 1.5px var(--text-primary); color: transparent; }
.hero-subtitle { font-size: clamp(1rem, 2.2vw, 1.25rem); color: var(--text-secondary); max-width: 540px; font-weight: 300; line-height: 1.5; margin-bottom: 2.5rem; }
.hero-actions { display: flex; gap: 1.5rem; }
@media (max-width: 576px) {
  .hero-actions { flex-direction: column; gap: 1rem; width: 100%; }
  .hero-actions .btn { width: 100%; }
}
@media (max-width: 991.98px) {
  .hero-content { max-width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; margin-top: -2rem; }
  .hero-subtitle { max-width: 500px; }
}
@media (max-width: 767.98px) {
  .hero-title { font-size: clamp(3rem, 13vw, 4.5rem); }
  .hero-content { margin-top: -3rem; }
}

/* 3D FLOATING CARD DECK */
.hero-visual { perspective: 1200px; display: flex; justify-content: center; align-items: center; position: relative; height: 480px; }
.floating-card-deck { width: 100%; max-width: 400px; height: 100%; position: relative; transform-style: preserve-3d; transition: transform 0.1s ease-out; }
.floating-card {
  position: absolute; width: 260px; height: 180px;
  background: rgba(15, 15, 23, 0.7); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 12px; padding: 1.5rem;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.5s;
}
.design-card { top: 15px; left: 10px; z-index: 3; transform: translate3d(0, 0, 40px); border-left: 2px solid var(--accent-blue); box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 15px rgba(37, 99, 235, 0.1); }
.dev-card { top: 140px; left: 80px; z-index: 2; transform: translate3d(0, 0, 20px); border-left: 2px solid var(--accent-purple); box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 15px rgba(124, 58, 237, 0.1); }
.print-card { top: 270px; left: 140px; z-index: 1; transform: translate3d(0, 0, 0); border-left: 2px solid #575775; }

.card-icon { width: 36px; height: 36px; border-radius: 8px; background: var(--bg-secondary); border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; }
.card-icon i { width: 18px; height: 18px; color: var(--text-primary); }
.design-card .card-icon i { color: var(--accent-blue); }
.dev-card .card-icon i { color: var(--accent-purple); }
.card-label { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); font-weight: 700; margin-top: 0.75rem; }
.card-title { font-family: var(--font-title); font-size: 1.15rem; font-weight: 600; margin-top: 0.25rem; margin-bottom: auto; }
.card-badge { font-size: 0.625rem; padding: 0.25rem 0.5rem; background-color: var(--bg-primary); border: 1px solid var(--border-color); border-radius: 4px; align-self: flex-start; color: var(--text-secondary); }

.card-decor-lines { display: flex; flex-direction: column; gap: 3px; position: absolute; bottom: 1.5rem; right: 1.5rem; width: 40px; }
.card-decor-lines span { height: 2px; background: rgba(255, 255, 255, 0.1); border-radius: 1px; }
.card-decor-lines span:nth-child(1) { width: 100%; background: var(--accent-blue); }
.card-decor-lines span:nth-child(2) { width: 75%; }
.card-decor-lines span:nth-child(3) { width: 50%; }

.card-code-snip { font-family: monospace; font-size: 0.6875rem; color: var(--accent-purple); position: absolute; bottom: 1.5rem; right: 1.5rem; opacity: 0.7; }
.card-print-guides { position: absolute; bottom: 1.5rem; right: 1.5rem; font-size: 0.625rem; color: var(--text-muted); border: 1.5px dashed rgba(255, 255, 255, 0.08); padding: 0.15rem 0.35rem; }
.card-print-guides span { position: absolute; width: 6px; height: 6px; border-color: rgba(255, 255, 255, 0.2); border-style: solid; border-width: 0; }
.crosshair-tl { top: -2px; left: -2px; border-top-width: 1px; border-left-width: 1px; }
.crosshair-tr { top: -2px; right: -2px; border-top-width: 1px; border-right-width: 1px; }
.crosshair-bl { bottom: -2px; left: -2px; border-bottom-width: 1px; border-left-width: 1px; }
.crosshair-br { bottom: -2px; right: -2px; border-bottom-width: 1px; border-right-width: 1px; }

.floating-card-deck:hover .floating-card { border-color: rgba(255, 255, 255, 0.1); }
.floating-card:hover { transform: translate3d(0, -10px, 60px) !important; box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8), 0 0 30px var(--accent-glow-purple); z-index: 10; }
.design-card:hover { border-color: var(--accent-blue); box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8), 0 0 30px var(--accent-glow-blue); }
.dev-card:hover { border-color: var(--accent-purple); }

.hero-scroll-indicator { position: absolute; bottom: 2rem; left: 2rem; display: flex; align-items: center; gap: 1rem; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.mouse { width: 20px; height: 32px; border: 1.5px solid var(--text-muted); border-radius: 12px; display: block; position: relative; }
.wheel { width: 3px; height: 6px; background-color: var(--text-muted); border-radius: 2px; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); animation: mouse-scroll 1.5s infinite; }
@keyframes mouse-scroll { 0% { top: 6px; opacity: 1; } 100% { top: 16px; opacity: 0; } }

@media (max-width: 991.98px) {
  .hero-visual { height: 380px; }
  .floating-card-deck { max-width: 340px; height: 100%; }
  .floating-card { width: 200px; height: 140px; padding: 1rem; }
  .design-card { top: 15px; left: 10px; }
  .dev-card { top: 100px; left: 65px; }
  .print-card { top: 185px; left: 120px; }
  .card-code-snip, .card-decor-lines, .card-print-guides { display: none; }
}

/* ==========================================================================
   ABOUT & SERVICES
   ========================================================================== */
.about-section { padding: 8rem 0; border-bottom: 1px solid var(--border-color); }
.about-bio { position: sticky; top: 120px; }
@media (max-width: 991.98px) { .about-bio { position: relative; top: 0; } }

.profile-frame { position: relative; margin-bottom: 2.5rem; aspect-ratio: 4 / 5; max-width: 480px; background-color: var(--bg-secondary); border: 1px solid var(--border-color); overflow: hidden; border-radius: 4px; }
.profile-img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter var(--transition-smooth), transform var(--transition-smooth); }
.profile-frame:hover .profile-img { filter: grayscale(0.2); transform: scale(1.03); }

.bio-heading { font-size: 1.75rem; font-weight: 700; margin-bottom: 1.5rem; line-height: 1.3; }
.bio-text { color: var(--text-secondary); font-weight: 300; }

.services-list { display: flex; flex-direction: column; gap: 2.5rem; }
.service-card { padding: 2.5rem; background-color: var(--bg-card); border: 1px solid var(--border-color); border-radius: 4px; display: flex; gap: 2rem; transition: all var(--transition-smooth); }
.service-card:hover { border-color: var(--accent-purple); transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px var(--accent-glow-purple); }
.service-icon-box { color: var(--text-primary); flex-shrink: 0; width: 48px; height: 48px; border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; border-radius: 4px; background-color: var(--bg-secondary); transition: border-color var(--transition-fast), color var(--transition-fast); }
.service-card:hover .service-icon-box { border-color: var(--accent-purple); color: var(--accent-purple); }
.service-name { font-size: 1.35rem; margin-bottom: 1rem; text-transform: uppercase; font-weight: 600; letter-spacing: -0.01em; }
.service-desc { color: var(--text-secondary); font-size: 0.9375rem; font-weight: 300; margin-bottom: 1.5rem; }
.service-bullets { display: flex; flex-direction: column; gap: 0.5rem; list-style: none; padding-left: 0; }
.service-bullets li { display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; color: var(--text-secondary); }
.service-bullets li i { width: 16px; height: 16px; color: var(--accent-purple); }

/* ==========================================================================
   PORTFOLIO / REFERENCES (responsive Bootstrap grid + client-side filter)
   ========================================================================== */
.portfolio-section { padding: 8rem 0; border-bottom: 1px solid var(--border-color); }
.section-header-carousel { margin-bottom: 1rem; }
.portfolio-filters { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.filter-btn { padding: 0.5rem 1.25rem; font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; border: 1px solid var(--border-color); border-radius: 30px; color: var(--text-secondary); transition: all var(--transition-fast); background: transparent; }
.filter-btn:hover, .filter-btn.active { color: var(--text-primary); border-color: var(--accent-purple); background-color: var(--accent-glow-purple); }

.portfolio-grid { margin-top: 1rem; }
.portfolio-item { transition: opacity 0.4s, transform 0.4s; }
.portfolio-item.filtered-out { display: none; }

.portfolio-media { display: block; aspect-ratio: 16 / 11; border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; position: relative; background-color: var(--bg-secondary); }
.portfolio-img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.5); transition: filter var(--transition-smooth), transform var(--transition-smooth); }
.portfolio-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to top, rgba(4, 4, 6, 0.98) 10%, rgba(4, 4, 6, 0.4) 60%, transparent 100%);
  opacity: 0; display: flex; align-items: flex-end; padding: 2rem; transition: opacity var(--transition-smooth);
}
.portfolio-item:hover .portfolio-img { filter: grayscale(0); transform: scale(1.03); }
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.overlay-details { transform: translateY(20px); transition: transform var(--transition-smooth); width: 100%; }
.portfolio-item:hover .overlay-details { transform: translateY(0); }

.project-category { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-purple); display: block; margin-bottom: 0.5rem; }
.project-title { font-size: 1.35rem; font-weight: 700; text-transform: uppercase; margin-bottom: 0.5rem; }
.project-summary { font-size: 0.8125rem; color: var(--text-secondary); font-weight: 300; margin-bottom: 1rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.project-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem; }
.project-tags span { font-size: 0.625rem; padding: 0.2rem 0.5rem; background-color: var(--bg-primary); border: 1px solid var(--border-color); border-radius: 4px; color: var(--text-secondary); }

.btn-project-view { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 0.5rem; color: var(--text-primary); border-bottom: 1px solid var(--border-color); padding-bottom: 0.25rem; transition: border-color var(--transition-fast); }
.btn-project-view:hover { border-color: var(--accent-purple); }

/* ==========================================================================
   INTERACTIVE PROJECT PLANNER
   ========================================================================== */
.planner-section { padding: 8rem 0; border-bottom: 1px solid var(--border-color); position: relative; overflow: hidden; }
.planner-glow { top: 50%; left: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(124, 58, 237, 0.06) 0%, rgba(37, 99, 235, 0.03) 50%, transparent 85%); }
.planner-card { background-color: var(--bg-card); border: 1px solid var(--border-color); border-radius: 4px; padding: 3rem; position: relative; z-index: 2; }
.planner-card-title { font-size: 1.5rem; text-transform: uppercase; margin-bottom: 2rem; border-bottom: 1px solid var(--border-color); padding-bottom: 0.75rem; }

.planner-checkboxes { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 3rem; }
.planner-checkbox-label input { display: none; }
.checkbox-custom { display: flex; align-items: center; padding: 1.5rem; background-color: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 4px; cursor: pointer; position: relative; transition: all var(--transition-smooth); gap: 1.5rem; }
.checkbox-custom i { width: 24px; height: 24px; flex-shrink: 0; color: var(--text-secondary); transition: color var(--transition-fast); }
.checkbox-text { display: flex; flex-direction: column; gap: 0.25rem; }
.checkbox-title { font-size: 1.0625rem; font-weight: 600; color: var(--text-primary); }
.checkbox-subtitle { font-size: 0.8125rem; color: var(--text-secondary); font-weight: 300; }
.checkbox-indicator { width: 18px; height: 18px; border: 1px solid var(--border-color); border-radius: 50%; margin-left: auto; position: relative; transition: border-color var(--transition-fast), background-color var(--transition-fast); }
.checkbox-indicator::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0); width: 8px; height: 8px; background-color: var(--accent-inverse); border-radius: 50%; transition: transform var(--transition-fast); }
.planner-checkbox-label input:checked + .checkbox-custom { border-color: var(--accent-purple); background-color: var(--accent-glow-purple); }
.planner-checkbox-label input:checked + .checkbox-custom i { color: var(--accent-purple); }
.planner-checkbox-label input:checked + .checkbox-custom .checkbox-indicator { border-color: var(--accent-purple); background-color: var(--accent-purple); }
.planner-checkbox-label input:checked + .checkbox-custom .checkbox-indicator::after { transform: translate(-50%, -50%) scale(1); }

.planner-slider-container { margin-top: 2rem; }
.slider-header { display: flex; justify-content: space-between; margin-bottom: 1rem; }
.slider-title { font-size: 1.0625rem; font-weight: 600; }
.slider-value { font-weight: 700; text-transform: uppercase; font-size: 0.875rem; letter-spacing: 0.05em; background-color: var(--bg-secondary); border: 1px solid var(--border-color); padding: 0.25rem 0.75rem; border-radius: 4px; color: var(--text-primary); }
.planner-slider.form-range { background: transparent; }
.planner-slider::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: var(--border-color); }
.planner-slider::-webkit-slider-thumb { background: var(--accent-purple); }
.planner-slider::-moz-range-track { height: 4px; border-radius: 2px; background: var(--border-color); }
.planner-slider::-moz-range-thumb { background: var(--accent-purple); border: none; }
.slider-ticks { display: flex; justify-content: space-between; font-size: 0.6875rem; color: var(--text-secondary); margin-top: 0.75rem; }

.planner-right { display: flex; flex-direction: column; background-color: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 4px; padding: 2.5rem; height: 100%; }
.summary-list { display: flex; flex-direction: column; gap: 1.25rem; flex-grow: 1; }
.summary-item { display: flex; justify-content: space-between; font-size: 0.875rem; }
.summary-label { color: var(--text-secondary); font-weight: 300; }
.summary-val { font-weight: 600; }
.summary-divider { height: 1px; background-color: var(--border-color); margin: 2rem 0; }
.estimate-pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 2rem; }
.estimate-stat { display: flex; flex-direction: column; gap: 0.5rem; }
.stat-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.stat-value { font-size: 1.25rem; font-family: var(--font-title); font-weight: 700; }
#calc-budget { font-size: 1.45rem; color: var(--text-primary); }
.planner-fineprint { font-size: 0.75rem; color: var(--text-muted); text-align: center; margin-top: 1rem; }

/* ==========================================================================
   BLOG
   ========================================================================== */
.blog-section { padding: 8rem 0; border-bottom: 1px solid var(--border-color); }
.blog-card { padding: 2.5rem; background-color: var(--bg-card); border: 1px solid var(--border-color); border-radius: 4px; display: flex; flex-direction: column; height: 100%; transition: all var(--transition-smooth); }
.blog-card:hover { border-color: var(--accent-purple); transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 15px var(--accent-glow-purple); }
.blog-card-meta { display: flex; justify-content: space-between; margin-bottom: 1.5rem; font-size: 0.75rem; font-weight: 500; }
.blog-card-tag { text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-secondary); border-bottom: 1px solid var(--border-color); padding-bottom: 0.15rem; }
.blog-card-date { color: var(--text-muted); }
.blog-card-title { font-size: 1.35rem; line-height: 1.3; margin-bottom: 1.25rem; text-transform: uppercase; }
.blog-card-summary { color: var(--text-secondary); font-size: 0.9375rem; font-weight: 300; margin-bottom: 2rem; flex-grow: 1; }
.btn-read-more { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-primary); align-self: flex-start; transition: gap var(--transition-fast), color var(--transition-fast); }
.btn-read-more i { width: 14px; height: 14px; transition: transform var(--transition-fast); }
.blog-card:hover .btn-read-more { color: var(--accent-purple); }
.blog-card:hover .btn-read-more i { transform: translateX(4px); }

.drawer-post-title { font-size: clamp(1.75rem, 4vw, 2.75rem); text-transform: uppercase; margin-bottom: 2.5rem; line-height: 1.1; }
.prose { font-size: 1.0625rem; color: var(--text-secondary); font-weight: 300; line-height: 1.7; }
.prose p { margin-bottom: 1.75rem; }
.prose h3 { font-size: 1.5rem; margin: 2.5rem 0 1rem 0; text-transform: uppercase; color: var(--text-primary); }
.prose ul { list-style: square; padding-left: 1.5rem; margin-bottom: 1.75rem; }
.prose li { margin-bottom: 0.5rem; }
.prose blockquote { border-left: 2px solid var(--accent-purple); padding-left: 1.5rem; margin: 2rem 0; font-style: italic; color: var(--text-primary); }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-section { padding: 8rem 0; }
.contact-info-title { font-size: 2rem; margin-bottom: 1.5rem; text-transform: uppercase; }
.contact-info-text { color: var(--text-secondary); font-weight: 300; margin-bottom: 3.5rem; max-width: 450px; }
.contact-channels { display: flex; flex-direction: column; gap: 2rem; margin-bottom: 4rem; }
.channel-item { display: flex; flex-direction: column; gap: 0.25rem; }
.channel-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); display: flex; align-items: center; gap: 0.5rem; }
.channel-label i { width: 14px; height: 14px; color: var(--accent-purple); }
.channel-value { font-size: 1.25rem; font-weight: 500; }
.channel-value[href]:hover { text-decoration: underline; color: var(--accent-purple); }

.business-info-block { margin-top: 0.5rem; border-top: 1px solid var(--border-color); padding-top: 1.25rem; }
.business-info-details { display: flex; flex-direction: column; gap: 0.25rem; font-size: 1.05rem; font-weight: 500; color: var(--text-secondary); padding-left: 1.5rem; }
.business-info-row { letter-spacing: 0.02em; }

.contact-socials { display: flex; gap: 1.5rem; }
.contact-socials a { width: 44px; height: 44px; border: 1px solid var(--border-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-secondary); transition: all var(--transition-fast); }
.contact-socials a:hover { color: var(--text-primary); border-color: transparent; background: var(--accent-gradient); box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3); }
.contact-socials svg { width: 20px; height: 20px; }
.contact-socials .social-pretlak { font-family: var(--font-title); font-weight: 800; font-size: 1.05rem; }

.contact-form { display: flex; flex-direction: column; gap: 2.25rem; }
.form-group { position: relative; width: 100%; }
.form-group input, .form-group textarea { width: 100%; padding: 0.875rem 0; border: none; border-bottom: 1.5px solid var(--border-color); border-radius: 0; background: transparent; color: var(--text-primary); transition: border-color var(--transition-smooth); }
.form-group input:focus, .form-group textarea:focus { box-shadow: none; }
.form-group textarea { resize: none; }
.form-group label { position: absolute; top: 0.875rem; color: var(--text-secondary); font-weight: 300; pointer-events: none; transition: transform var(--transition-smooth), color var(--transition-smooth); }
/* :has() targets the label regardless of any wrapper element (e.g. Contact Form 7's
   <span class="wpcf7-form-control-wrap">) sitting between the input and the label. */
.form-group:has(input:focus) label,
.form-group:has(input:not(:placeholder-shown)) label,
.form-group:has(textarea:focus) label,
.form-group:has(textarea:not(:placeholder-shown)) label {
  transform: translateY(-24px) scale(0.85); transform-origin: top left; color: var(--accent-purple);
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent-purple); }

#btn-submit .btn-loading { display: none; }
#btn-submit.loading .btn-text { display: none; }
#btn-submit.loading .btn-loading { display: inline-flex; }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, 0.2); border-top-color: var(--accent-inverse); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-feedback { font-size: 0.875rem; margin-top: -0.5rem; }
.form-feedback.success { color: var(--success-color); }
.form-feedback.error { color: var(--error-color); }

/* Contact Form 7 */
.wpcf7-form-control-wrap { position: relative; }
.wpcf7-spinner { margin-left: 0.5rem; vertical-align: middle; }
.wpcf7-not-valid-tip { color: var(--error-color); font-size: 0.75rem; margin-top: 0.35rem; display: block; }
.wpcf7-response-output { font-size: 0.875rem; margin-top: 1rem; border-radius: 4px; padding: 0.75rem 1rem; border: 1px solid var(--border-color); }
.wpcf7-mail-sent-ok { color: var(--success-color); border-color: var(--success-color); }
.wpcf7-validation-errors, .wpcf7-mail-sent-ng, .wpcf7-spam-blocked, .wpcf7-aborted { color: var(--error-color); border-color: var(--error-color); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer { border-top: 1px solid var(--border-color); padding: 2.5rem 0; font-size: 0.8125rem; color: var(--text-muted); }
.footer-container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-links { display: flex; gap: 1.5rem; align-items: center; }
.footer-links a:hover { color: var(--text-primary); text-decoration: underline; }

/* ==========================================================================
   SINGLE REFERENCE / MODAL-STYLE INFO BLOCK (reused on single-reference.php)
   ========================================================================== */
.modal-img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; filter: grayscale(0.2); border-radius: 4px; }
.modal-info { display: flex; flex-direction: column; }
.modal-project-title { font-size: 2rem; text-transform: uppercase; margin-bottom: 1.5rem; }
.modal-project-desc { font-size: 0.9375rem; color: var(--text-secondary); font-weight: 300; margin-bottom: 2rem; line-height: 1.6; }
.modal-tech-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2.5rem; }
.modal-tech-list span { font-size: 0.75rem; padding: 0.35rem 0.75rem; background-color: var(--bg-primary); border: 1px solid var(--border-color); border-radius: 4px; color: var(--accent-purple); }
.modal-highlights h3 { font-size: 1rem; text-transform: uppercase; margin-bottom: 1rem; letter-spacing: 0.05em; }
.modal-highlights ul { display: flex; flex-direction: column; gap: 0.5rem; list-style: none; padding-left: 0; }
.modal-highlights li { font-size: 0.875rem; color: var(--text-secondary); font-weight: 300; display: flex; align-items: center; gap: 0.75rem; }
.modal-highlights li::before { content: '—'; color: var(--accent-purple); }
