@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  /* Colors - Modern Screenshot Theme */
  --bg-color: #f1f5f9;
  --text-main: #0f172a;
  --text-muted: #475569;
  --card-bg: #ffffff;

  --header-bg: #101c2e;
  --header-text: #ffffff;

  --accent-blue: #3b82f6;
  --accent-yellow: #fcd34d;
  --accent-dark: #0f172a;
  --accent-color: var(--accent-blue);

  --primary-blue: var(--accent-blue);
  --primary-lilac: #8b5cf6;

  --gradient-cta: linear-gradient(135deg, var(--accent-blue) 0%, #2563eb 100%);
  --gradient-cta-hover: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  --gradient-halo: radial-gradient(circle at center, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.05) 50%, rgba(255, 255, 255, 0) 70%);

  /* Border & Shadows */
  --border-light: rgba(0, 0, 0, 0.04);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.04), 0 2px 8px rgba(0, 0, 0, 0.02);
  --shadow-hover: 0 16px 40px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  /* Layout */
  --max-width: 1150px;
  --section-spacing: 120px;
  --section-spacing-mobile: 80px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-slow: 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: 'Inter', sans-serif;
  scroll-behavior: smooth;
  color: var(--text-main);
  background-color: var(--bg-color);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: var(--text-main);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}

p {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 1.125rem;
}

p.lead {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-muted);
}

/* Hero Title Styles */
.hero-title {
  font-size: clamp(3rem, 7vw, 5.5rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 24px;
}

.title-part-white {
  color: white;
  text-shadow: 0 4px 20px rgba(15, 23, 42, 0.15);
}

.title-part-gradient {
  background: linear-gradient(135deg, var(--primary-lilac) 0%, var(--primary-blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}

/* Featured Image Utility */
.img-featured-large {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto;
  border-radius: var(--radius-md) !important;
  /* Less rounded: md instead of lg */
  box-shadow: var(--shadow-hover);
  display: block;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-lilac);
}

/* Grid & Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-spacing) 0;
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

/* Components */
.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-light);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* Animated Border Card */
.card-animated-border {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--border-light); /* Default resting border */
}

/* The traveling light */
.card-animated-border::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 250%;
  height: 250%; /* Large enough to cover corners while spinning */
  background: conic-gradient(from 0deg, transparent 20%, rgba(139, 92, 246, 0.1) 50%, rgba(139, 92, 246, 0.5) 75%, var(--primary-lilac) 85%, var(--primary-blue) 95%, transparent 100%);
  transform: translate(-50%, -50%) rotate(0deg);
  animation: spinBorder 4s linear infinite;
  z-index: -2;
  pointer-events: none;
}

/* The solid inner background */
.card-animated-border::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: calc(var(--radius-lg) - 3px);
  z-index: -1;
  background: var(--card-bg); /* Default internal white/color */
  pointer-events: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: rgba(96, 165, 250, 0.1);
  color: #2563eb;
  border-radius: var(--radius-pill);
  font-family: 'Manrope', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.chip-live {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px 6px 12px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-main);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  font-family: 'Manrope', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.1);
  animation: chipPulse 4s ease-in-out infinite;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.chip-live::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #ef4444;
  border-radius: 50%;
  margin-right: 10px;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
  animation: recPulse 2s ease-in-out infinite;
}

@keyframes chipPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.1);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.2);
  }
}

@keyframes recPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.2);
  }
}


/* Custom SVG Icons */
.propr-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25em;
  height: 1.25em;
  vertical-align: -0.25em;
  margin-right: 0.3em;
  color: var(--primary-lilac);
}

.propr-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.chip .propr-icon {
  margin-right: 0;
  margin-left: 0.4em;
  width: 1.1em;
  height: 1.1em;
  vertical-align: -0.1em;
}

.card h3 .propr-icon,
.card h4 .propr-icon {
  width: 1.4em;
  height: 1.4em;
  background: rgba(96, 165, 250, 0.15);
  border-radius: 50%;
  padding: 6px;
  margin-right: 12px;
  box-shadow: 0 4px 10px rgba(96, 165, 250, 0.1);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  text-decoration: none;
  gap: 12px;
  transition: all var(--transition-normal);
  cursor: pointer;
  border: none;
  font-size: 1.05rem;
  line-height: 1;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--border-light); /* Default resting border */
}

/* The traveling light */
.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;
  height: 300%;
  background: conic-gradient(from 0deg, transparent 50%, rgba(139, 92, 246, 0.3) 75%, var(--primary-lilac) 85%, var(--primary-blue) 95%, transparent 100%);
  transform: translate(-50%, -50%) rotate(0deg);
  animation: spinBorder 4s linear infinite;
  z-index: -2;
  pointer-events: none;
}

/* The solid inner background */
.btn::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: calc(var(--radius-pill) - 2px);
  z-index: -1;
  transition: all var(--transition-normal);
  background: white; /* Default internal */
  pointer-events: none;
}

@keyframes spinBorder {
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.btn-primary {
  color: white !important;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
  background: var(--accent-dark); /* Resting border for dark button */
}

.btn-primary::after {
  background: var(--accent-dark);
}

.btn-primary:hover::after {
  background: var(--accent-yellow);
}

.btn-primary:hover {
  color: var(--text-main) !important;
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(251, 191, 36, 0.3);
  background: var(--accent-yellow);
}

.btn-secondary {
  color: var(--text-main) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.btn-secondary::after {
  background: white;
}

.btn-secondary:hover::after {
  background: var(--accent-yellow);
}

.btn-secondary:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(251, 191, 36, 0.2);
  background: var(--accent-yellow);
}

.btn-white {
  color: var(--text-main) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.btn-white::after {
  background: white;
}

.btn-white:hover::after {
  background: var(--accent-yellow);
}

.btn-white:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(251, 191, 36, 0.1);
  background: var(--accent-yellow);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

/* Header Styles - Reverted to Glassy Normal */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0;
  height: 80px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  transition: all var(--transition-normal);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo img {
  height: 42px;
  width: auto;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-blue);
}

.header-cta {
  padding: 12px 28px !important;
  font-size: 0.95rem !important;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-main);
}

/* Footer */
.site-footer {
  background: white;
  padding: 80px 0 40px;
  border-top: 1px solid var(--border-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-brand p {
  margin-top: 16px;
  max-width: 300px;
}

.footer-links h4 {
  font-size: 18px;
  margin-bottom: 16px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Utilities */
.text-center {
  text-align: center;
}

.mb-1 {
  margin-bottom: 8px;
}

.mb-2 {
  margin-bottom: 16px;
}

.mb-3 {
  margin-bottom: 24px;
}

.mb-4 {
  margin-bottom: 32px;
}

.mb-5 {
  margin-bottom: 48px;
}

.mb-6 {
  margin-bottom: 64px;
}

/* Text Gradient Utility */
.text-gradient {
  background: linear-gradient(90deg, #60a5fa, #3b82f6, #60a5fa);
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: gradientText 4s linear infinite;
}

@keyframes gradientText {
  0% {
    background-position: 0% center;
  }

  100% {
    background-position: 200% center;
  }
}

/* Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.bounce-arrow {
  animation: bounce 2s infinite;
  color: var(--primary-blue);
  opacity: 0.6;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-15px);
  }

  60% {
    transform: translateY(-7px);
  }
}

.drawn-line-wrap {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.drawn-line path {
  fill: none;
  stroke: #fcd34d;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Responsiveness */
@media (max-width: 991px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.map-container {
  position: sticky;
  top: 120px;
}

@media (max-width: 768px) {
  .section {
    padding: var(--section-spacing-mobile) 0;
  }

  .grid-12 {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  /* Tukaj Smo Layout Fixes */
  .contact-cards {
    flex-direction: row;
    justify-content: center;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px;
    margin-right: -24px;
    padding-right: 24px;
    gap: 12px !important; /* Force smaller gap for horizontal scroll */
  }

  .contact-cards .card {
    min-width: 120px; /* Reduced further */
    padding: 16px 12px; /* Tighter padding */
    scroll-snap-align: start;
    flex-shrink: 0;
  }
  
  .contact-cards .card svg {
    width: 24px;
    height: 24px;
    margin-bottom: 8px !important;
  }
  
  .contact-cards h4 {
      font-size: 1.1rem;
  }
  
  .contact-cards p {
      font-size: 0.85rem;
  }

  /* Grid order restructuring for Map/Form */
  .contact-left-col {
      display: contents; /* Allows children to participate in the grid-12 flex wrapper */
  }

  .intro-text {
      order: 1;
      width: 100%;
  }

  .form-container-mobile-wrapper {
    order: 2; 
    width: 100%;
  }

  .map-container {
    position: static;
    order: 3; /* Move to the very bottom */
    width: 100%;
  }

  .site-header {
    height: 70px;
  }

  .logo img {
    height: 32px;
  }

  .header-cta {
    padding: 8px 16px !important;
    font-size: 0.8rem !important;
  }

  .header-container {
    gap: 12px;
  }

  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 32px 24px;
    gap: 24px;
    box-shadow: 0 20px 24px rgba(0, 0, 0, 0.05);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-normal);
  }

  .nav-links.nav-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .mobile-menu-btn {
    display: block;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Luma Spin Loader --- */
#global-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

#global-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.luma-loader {
  position: relative;
  width: 100px;
  height: 100px;
  background: conic-gradient(from 180deg at 50% 50%,
      transparent 0deg,
      rgba(96, 165, 250, 0.1) 144deg,
      rgba(59, 130, 246, 0.4) 226deg,
      var(--primary-lilac) 280deg,
      var(--accent-color) 316deg,
      var(--primary-blue) 360deg);
  border-radius: 50%;
  animation: lumaSpin 1.5s linear infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(96, 165, 250, 0.2);
}

.luma-loader::before {
  content: "";
  position: absolute;
  inset: 3px;
  background-color: var(--bg-color);
  border-radius: 50%;
}

@keyframes lumaSpin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.animate-bounce {
  animation: bounce 2s infinite;
}

/* --- 3D Folders --- */
.services-flex {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  padding: 20px 0;
}

.folder-container {
  position: relative;
  width: 280px;
  height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  border-radius: 24px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  color: inherit;
  perspective: 1000px;
}

.folder-container:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  background: white;
  border-color: var(--primary-lilac);
}

.folder-stage {
  position: relative;
  width: 160px;
  height: 120px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.folder-back,
.folder-front {
  position: absolute;
  width: 128px;
  height: 96px;
  border-radius: 8px;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: bottom center;
}

.folder-back {
  background: var(--accent-yellow);
  opacity: 0.9;
  z-index: 10;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.folder-tab {
  position: absolute;
  top: -12px;
  left: 16px;
  width: 48px;
  height: 16px;
  background: #eab308;
  border-radius: 6px 6px 0 0;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: bottom center;
  z-index: 10;
}

.folder-front {
  background: #fdf6e3;
  z-index: 30;
  top: 4px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05), 0 8px 16px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.folder-front::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, transparent 50%);
  pointer-events: none;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.folder-projects {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  width: 80px;
  height: 112px;
}

.project-card {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform: translateY(0) translateX(0) rotate(0deg) scale(0.5);
  opacity: 0;
  top: 0;
  left: 0;
}

.project-card:nth-child(1) {
  z-index: 23;
  transition-delay: 0ms;
}

.project-card:nth-child(2) {
  z-index: 22;
  transition-delay: 80ms;
}

.project-card:nth-child(3) {
  z-index: 21;
  transition-delay: 160ms;
}

.project-card img,
.project-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  display: flex;
  align-items: flex-end;
  padding: 8px;
}

.project-card p {
  color: white !important;
  font-size: 0.65rem !important;
  margin: 0 !important;
  font-weight: 600;
  line-height: 1.2 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 1 !important;
}

.folder-container:hover .folder-back {
  transform: rotateX(-15deg);
}

.folder-container:hover .folder-tab {
  transform: rotateX(-25deg) translateY(-2px);
}

.folder-container:hover .folder-front,
.folder-container:hover .folder-front::after {
  transform: rotateX(25deg) translateY(8px);
}

.folder-container:hover .project-card {
  opacity: 1;
}

.folder-container:hover .project-card:nth-child(1) {
  transform: translateY(-40px) translateX(-35px) rotate(-12deg) scale(1);
}

.folder-container:hover .project-card:nth-child(2) {
  transform: translateY(-45px) translateX(0px) rotate(0deg) scale(1.05);
}

.folder-container:hover .project-card:nth-child(3) {
  transform: translateY(-40px) translateX(35px) rotate(12deg) scale(1);
}

.folder-text {
  text-align: center;
  position: relative;
  z-index: 40;
  transition: transform 0.3s ease;
}

.folder-text h3 {
  font-size: 1.5rem;
  margin-bottom: 4px;
  color: var(--text-main);
}

.folder-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  opacity: 1;
}

.folder-container:hover .folder-text {
  transform: translateY(4px);
}

.folder-hint {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  font-size: 0.75rem;
  color: var(--primary-lilac);
  font-weight: 600;
  opacity: 0;
  transition: all 0.3s ease;
}

.folder-container:hover .folder-hint {
  opacity: 1;
  transform: translateX(-50%) translateY(5px);
}

/* --- Masonry & Grid Layouts --- */

.services-flex {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  padding: 20px 0;
  margin-bottom: 80px;
}

.masonry-grid {
  column-count: 2;
  column-gap: 32px;
  width: 100%;
}

.photo-masonry {
  column-count: 3;
  column-gap: 24px;
}

.video-item {
  break-inside: avoid;
  margin-bottom: 32px;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: all 0.4s ease;
  border: 1px solid rgba(0, 0, 0, 0.03);
  display: inline-block;
  width: 100%;
}

.video-item:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  border-color: var(--primary-lilac);
}

.photo-item {
  margin-bottom: 24px;
  border-radius: 12px;
}

.photo-item {
  transition: none;
}

.photo-item:hover {
  transform: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.03);
}

.photo-item .video-wrapper {
  background: transparent !important;
}

.video-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: inherit;
}

.video-info {
  padding: 20px;
  text-align: center;
}

.video-info h4 {
  margin-bottom: 0px !important;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
}

.folder-container:hover .folder-front .folder-icon {
  opacity: 1 !important;
  transform: translate(-50%, -50%) scale(1.1) !important;
  color: var(--primary-lilac) !important;
}

/* Minimized State for Sticky Folders */
#sticky-folders {
  transition: padding 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), margin 0.5s ease, gap 0.5s ease;
  z-index: 1000 !important;
  background: transparent;
  gap: 40px;
  /* Base gap */
}

#sticky-folders.is-minimized {
  margin-bottom: -100px;
  gap: 10px;
  /* Folders get closer together */
}

#sticky-folders.is-minimized .folder-container {
  transform: scale(0.35);
  /* Little bit smaller to fit side-by-side nicely */
  transform-origin: top center;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  margin-bottom: -220px;
  margin-left: -50px;
  margin-right: -50px;
}

#sticky-folders.is-minimized .folder-container:hover {
  transform: scale(0.4);
  z-index: 110;
}

#sticky-folders.is-minimized .folder-hint {
  opacity: 0 !important;
  display: none;
}

#sticky-folders.is-minimized .folder-text h3 {
  font-size: 2rem;
}

@media (max-width: 768px) {
  #sticky-folders.is-minimized .folder-container {
    transform: scale(0.3);
    margin-bottom: -240px;
    margin-left: -60px;
    margin-right: -60px;
  }
}

@media (max-width: 1100px) {
  .photo-masonry {
    column-count: 2;
  }
}

.sticky-sidebar {
  position: static;
  width: 100%;
  margin-bottom: 40px;
}

.sticky-sidebar .services-flex {
  flex-direction: row;
  justify-content: center;
}

@media (max-width: 768px) {
  .masonry-grid {
    column-count: 1;
  }

  .photo-masonry {
    column-count: 2;
  }
}

@media (max-width: 480px) {
  .photo-masonry {
    column-count: 1;
  }
}