/* Removed render-blocking @import. Fonts handled via <link> in HTML for better parallelism */

:root {
  --bg-dark: #000000;
  --bg-secondary: #050505;
  --card-bg: rgba(20, 20, 24, 0.4);
  --card-border: rgba(255, 255, 255, 0.08);
  --text-main: #f5f5f7;
  --text-muted: #86868b;
  --accent: #8E43F0;
  --accent-light: #c084fc;

  --font-display: 'Outfit', sans-serif;
  --max-w: 1300px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-display);
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
  width: 100%;
  line-height: 1.5;
}

/* Typography Utilities */
.text-gradient {
  background: linear-gradient(180deg, #FFFFFF 0%, #A0A0A0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-accent {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-main {
  color: var(--text-main) !important;
}

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

/* Structural Backgrounds */
.bg-glows {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
  background: var(--bg-dark);
}

.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.35;
  will-change: transform;
  contain: strict;
  animation: float-glow 20s ease-in-out infinite alternate;
}

@media (max-width: 768px) {
  .bg-glow {
    filter: blur(60px); /* Lighter blur for mobile performance */
  }
}

.bg-glow-1 {
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: #321074;
}

.bg-glow-2 {
  top: 40%;
  right: -10%;
  width: 40vw;
  height: 40vw;
  background: #5a0eb9;
  animation-delay: -5s;
}

.bg-glow-3 {
  bottom: -20%;
  left: 20%;
  width: 60vw;
  height: 60vw;
  background: #160438;
  animation-delay: -10s;
}

@keyframes float-glow {
  100% {
    transform: translate(15%, 15%) scale(1.15);
  }
}

.container {
  width: 90%;
  max-width: var(--max-w);
  margin: 0 auto;
}

/* Floating Dock Navbar */
.nav-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 32px 5%;
  transition: padding 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-wrapper.scrolled {
  padding-top: 20px;
}

.navbar {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 16px 20px 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  max-width: 1400px;
  width: 100%;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.navbar.scrolled {
  background: rgba(15, 15, 18, 0.6);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--card-border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  max-width: 950px;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.navbar__logo img {
  filter: drop-shadow(0 0 15px rgba(142, 67, 240, 0.6));
  transition: transform 0.4s;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-name {
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.logo-sub {
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.2px;
  margin-top: 2px;
  text-transform: uppercase;
}

.navbar.scrolled .navbar__logo img {
  transform: scale(0.9);
}

.navbar__links {
  display: flex;
  gap: 40px;
}

.mobile-menu-header, .mobile-menu-footer {
  display: none;
}

.navbar__link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s;
  white-space: nowrap;
}

.navbar__link:hover,
.navbar__link.active {
  color: var(--text-main);
}

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

.navbar__cta {
  padding: 0.875rem 2rem;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  background: transparent;
  color: #000;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  border: none;
  z-index: 1;
}

/* Premium Hamburger Menu Toggle */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  position: relative;
  z-index: 2000;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-light);
}

.hamburger {
  width: 20px;
  height: 2px;
  background: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 2px;
  background: #fff;
  transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
  right: 0;
}

.hamburger::before {
  top: -6px;
  width: 14px;
}

.hamburger::after {
  bottom: -6px;
  width: 20px;
}

.menu-toggle.active .hamburger {
  background: transparent;
}

.menu-toggle.active .hamburger::before {
  transform: rotate(45deg);
  top: 0;
  left: 50%;
  margin-left: -11px;
  /* Center 22px line */
  width: 22px;
}

.menu-toggle.active .hamburger::after {
  transform: rotate(-45deg);
  bottom: 0;
  left: 50%;
  margin-left: -11px;
  /* Center 22px line */
  width: 22px;
}

/* Background layer for border-beam buttons */
.navbar__cta::before,
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 1px;
  background: linear-gradient(135deg, #ffffff 0%, #d1d1d6 100%);
  border-radius: 999px;
  z-index: -1;
  transition: background 0.3s;
}

/* The Animated Beam */
.navbar__cta::after,
.btn-primary::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;
  height: 300%;
  background: conic-gradient(transparent 80%, var(--accent) 100%);
  transform: translate(-50%, -50%) rotate(0deg);
  z-index: -2;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.navbar__cta:hover::after,
.btn-primary:hover::after {
  opacity: 1;
  animation: rotate-beam 3s linear infinite;
}

@keyframes rotate-beam {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.navbar.scrolled .navbar__cta {
  padding: 12px 28px;
  font-size: 15px;
}

.navbar__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(142, 67, 240, 0.2);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 40px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: transparent;
  color: #000;
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
  z-index: 1;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(142, 67, 240, 0.25);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--card-border);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--card-border);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.w-full {
  width: 100%;
  text-align: center;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px;
}

.hero-container {
  max-width: 1000px;
  position: relative;
  z-index: 2;
}

.hero__float-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 15, 18, 0.5);
  border: 1px solid var(--card-border);
  padding: 10px 20px;
  border-radius: 12px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1;
  pointer-events: none;
}

.hero__float-badge svg {
  width: 18px;
  height: 18px;
  color: var(--accent-light);
}

.hero__float-badge--left {
  top: 25%;
  left: 8%;
  animation: float-left 8s ease-in-out infinite;
  transform: rotate(-5deg);
}

.hero__float-badge--right {
  top: 45%;
  right: 8%;
  animation: float-right 9s ease-in-out infinite;
  transform: rotate(8deg);
}

.hero__float-badge--bottom-left {
  bottom: 15%;
  left: 15%;
  animation: float-bottom 7s ease-in-out infinite;
  transform: rotate(-8deg);
}

@keyframes float-left {

  0%,
  100% {
    transform: translateY(0) rotate(-5deg);
  }

  50% {
    transform: translateY(-20px) rotate(-5deg);
  }
}

@keyframes float-right {

  0%,
  100% {
    transform: translateY(0) rotate(8deg);
  }

  50% {
    transform: translateY(-30px) rotate(8deg);
  }
}

@keyframes float-bottom {

  0%,
  100% {
    transform: translateY(0) rotate(-8deg);
  }

  50% {
    transform: translateY(20px) rotate(-8deg);
  }
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(142, 67, 240, 0.08);
  border: 1px solid rgba(142, 67, 240, 0.2);
  padding: 10px 24px;
  border-radius: 999px;
  color: var(--accent-light);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 40px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-align: center;
  max-width: 90vw;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(142, 67, 240, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(142, 67, 240, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(142, 67, 240, 0);
  }
}

.hero__title {
  font-size: clamp(2.5rem, 7vw, 4.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 32px;
  position: relative;
  z-index: 2;
}

.glow-text {
  text-shadow: 0 0 60px rgba(142, 67, 240, 0.6);
}

.hero__subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--text-muted);
  max-width: 750px;
  line-height: 1.7;
  margin: 0 auto 50px;
  font-weight: 400;
}

.hero__actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* General Sections */
.section {
  padding: 60px 0;
}

.section-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 24px;
  text-align: center;
  line-height: 1.1;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.3rem;
  max-width: 650px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

/* Premium Bento Grid */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(min-content, 320px);
  gap: 24px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 32px;
  padding: 48px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, box-shadow, opacity;
}

/* Mouse hover glow effect generated by JS */
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.06), transparent 40%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
  z-index: 1;
}

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

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.card>* {
  position: relative;
  z-index: 2;
}

.card-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.card-desc {
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1.6;
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  color: var(--accent-light);
  background: linear-gradient(135deg, rgba(142, 67, 240, 0.15), rgba(142, 67, 240, 0.05));
  border: 1px solid rgba(142, 67, 240, 0.2);
}

.bento-1 {
  grid-column: span 8;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(180deg, rgba(20, 20, 24, 0.1) 0%, rgba(20, 20, 24, 0.9) 100%);
}

.bento-bg-video {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.12;
  /* Subtle presence */
  z-index: 0 !important;
  pointer-events: none;
  will-change: transform, contents;
}

.bento-bg-accent {
  position: absolute;
  top: -80px;
  right: 20px;
  font-size: 25rem;
  line-height: 1;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.02);
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

.bento-2,
.bento-3,
.bento-4 {
  grid-column: span 4;
  grid-row: span 1;
}

.bento-5 {
  grid-column: span 8;
  grid-row: span 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  background: linear-gradient(135deg, var(--accent), #5a0eb9);
  border: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.stats-group {
  display: flex;
  gap: 60px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  margin-top: 8px;
}

/* Team Section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.team-card {
  background: rgba(15, 15, 20, 0.4);
  border: 1px solid var(--card-border);
  border-radius: 48px;
  padding: 60px 40px;
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, box-shadow;
  position: relative;
  overflow: hidden;
}

.team-card:hover {
  transform: translateY(-8px);
  border-color: rgba(142, 67, 240, 0.3);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.member-image-wrapper {
  position: relative;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin-bottom: 32px;
  padding: 8px;
  background: linear-gradient(135deg, var(--accent) 0%, transparent 100%);
  z-index: 1;
}

.member-image,
.member-image-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #000;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.member-image-placeholder svg {
  width: 50%;
  height: 50%;
  color: var(--text-muted);
}

.team-card:hover .member-image {
  transform: scale(1.1);
}

.member-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(142, 67, 240, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.member-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.member-bio {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 992px) {
  .team-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .team-card {
    padding: 40px 24px;
  }
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.price-card.wide {
  grid-column: span 3;
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: center;
  text-align: left;
}

.price-card.wide .price-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 40px;
  margin-bottom: 0;
}

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

  .price-card.wide {
    grid-column: span 2;
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

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

  .price-card.wide {
    grid-column: span 1;
    text-align: center;
  }

  .price-card.wide .price-features {
    grid-template-columns: 1fr;
  }

  .price-amount--text {
    font-size: 1.8rem;
  }
}

.price-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 32px;
  padding: 56px 40px;
  text-align: left;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, box-shadow;
  position: relative;
}

.price-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.price-card.premium {
  background: linear-gradient(180deg, rgba(142, 67, 240, 0.1) 0%, rgba(20, 20, 24, 0.6) 100%);
  border-color: rgba(142, 67, 240, 0.4);
}

.price-card.premium::after {
  content: 'Najpopularniejszy';
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-main);
  color: var(--bg-dark);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.price-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.price-amount {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1;
}

.price-currency {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-left: -5px;
}

.price-amount--text {
  font-size: 2.5rem;
}

.price-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--card-border);
  line-height: 1.6;
}

.price-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 48px;
}

.price-features li {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-main);
  font-size: 1.1rem;
  font-weight: 500;
}

.price-features svg {
  color: var(--text-muted);
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.premium .price-features svg {
  color: var(--accent-light);
}

/* Infinite Scroll Marquee Portfolio */
#portfolio {
  overflow: hidden;
  padding-bottom: 120px;
}

.marquee-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 20px 0;
}

.marquee-wrapper::before,
.marquee-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 15vw;
  z-index: 2;
  pointer-events: none;
}

.marquee-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-dark), transparent);
}

.marquee-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-dark), transparent);
}

.marquee {
  display: flex;
  gap: 32px;
  animation: scroll 40s linear infinite;
  width: max-content;
}

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

.work-card {
  width: 600px;
  height: 420px;
  border-radius: 32px;
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 40px;
  cursor: pointer;
}

.work-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.9) 100%);
  z-index: 1;
}

.work-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  transition: opacity 0.5s, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-card:hover img {
  opacity: 0.8;
  transform: scale(1.03);
}

.work-card-content {
  position: relative;
  z-index: 2;
  transform: translateY(10px);
  transition: transform 0.3s;
}

.work-card:hover .work-card-content {
  transform: translateY(0);
}

.work-card-cat {
  color: var(--accent-light);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.work-card-title {
  font-size: 2.2rem;
  font-weight: 700;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-50% - 16px));
  }
}

/* Social Media Section */
.social-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  max-width: 1000px;
  margin: 0 auto;
}

.social-card {
  flex: 1;
  min-width: 250px;
  background: rgba(18, 18, 22, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s, border-color 0.4s;
  cursor: pointer;
  text-align: left;
}

.social-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
}

.social-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.insta-gradient {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.fb-brand {
  background: #1877F2;
  color: white;
}

.tiktok-brand {
  background: #000;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.social-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding-left: 4px;
}

.social-name {
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 2px;
}

.social-handle {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.social-arrow {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  transition: transform 0.3s, color 0.3s;
}

.social-card:hover .social-arrow {
  transform: translateX(6px);
  color: var(--accent-light);
}

/* Footer */
.footer {
  padding: 120px 0 60px;
  text-align: center;
  border-top: 1px solid var(--card-border);
  margin-top: 100px;
}

.footer-huge-text {
  font-size: clamp(4rem, 12vw, 12rem);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.03);
  margin-bottom: 60px;
  line-height: 0.8;
  user-select: none;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text-main);
}

.footer-bottom {
  border-top: 1px solid var(--card-border);
  padding-top: 40px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.95rem;
  font-weight: 500;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
  .container {
    width: 92%;
  }

  .section {
    padding: 80px 0;
  }

  .bento {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: auto;
  }

  .bento-1 {
    grid-column: span 6;
    padding: 40px;
  }

  .bento-2,
  .bento-3,
  .bento-4 {
    grid-column: span 3;
    padding: 32px;
  }

  .bento-5 {
    grid-column: span 6;
    flex-direction: column;
    gap: 32px;
    padding: 40px;
  }

  .stats-group {
    gap: 40px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
    gap: 32px;
  }

  .price-card.wide {
    grid-column: span 1;
  }
}

@media (max-width: 900px) {
  .menu-toggle {
    display: flex;
    margin-top: 5px;
  }

  .navbar__links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    background: radial-gradient(circle at top right, rgba(15, 15, 20, 0.98), rgba(0, 0, 0, 1));
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 60px 10%;
    gap: 1.5rem;
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }

  /* Force full screen when menu is active by neutralizing parent scrolled state */
  body.menu-open .navbar {
    max-width: none !important;
    backdrop-filter: none !important;
    border-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  
  body.menu-open .nav-wrapper {
    padding: 0 !important;
  }

  .navbar__links.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
  }

  .mobile-menu-header {
    display: block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 4px;
    color: var(--accent-light);
    margin-bottom: 20px;
    opacity: 0.5;
  }

  .navbar__link {
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    transition: transform 0.3s, opacity 0.3s;
    transform: translateX(40px);
    opacity: 0;
  }

  .navbar__links.active .navbar__link {
    transform: translateX(0);
    opacity: 1;
  }

  /* Stagger links entrance */
  .navbar__link:nth-child(2) {
    transition-delay: 0.1s;
  }

  .navbar__link:nth-child(3) {
    transition-delay: 0.2s;
  }

  .navbar__link:nth-child(4) {
    transition-delay: 0.3s;
  }

  .navbar__link:nth-child(5) {
    transition-delay: 0.4s;
  }

  .navbar__link:nth-child(6) {
    transition-delay: 0.5s;
  }

  .navbar__link:nth-child(7) {
    transition-delay: 0.6s;
  }

  .mobile-menu-footer {
    margin-top: auto;
    width: 100%;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 20px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.6s 0.7s;
  }

  .navbar__links.active .mobile-menu-footer {
    transform: translateY(0);
    opacity: 1;
  }

  .mobile-menu-footer p {
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--text-muted);
  }

  .mobile-socials {
    display: flex;
    gap: 24px;
  }

  .mobile-socials a svg {
    width: 20px;
    height: 20px;
  }

  .mobile-socials a:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-5px);
  }

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

/* Prevent scroll utility */
body.menu-open {
  overflow: hidden !important;
  /* Remove height: 100vh as it can cause issues with mobile browser bars */
  touch-action: none;
  -webkit-overflow-scrolling: none;
  overscroll-behavior: none;
}

@media (max-width: 768px) {
  .hero__title {
    font-size: 3rem;
  }

  .hero__float-badge {
    display: none;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
  }

  .price-card.wide {
    grid-column: span 1;
    grid-template-columns: 1fr;
    text-align: center;
  }

  .price-card.wide .price-features {
    grid-template-columns: 1fr;
  }

  .bento-2,
  .bento-3,
  .bento-4 {
    grid-column: span 6;
  }

  .work-card {
    width: 90vw;
    height: 300px;
  }

  .footer-links {
    gap: 20px;
  }

  .footer-huge-text {
    font-size: 15vw;
  }

  #portfolio {
    padding-bottom: 10px;
  }
}

@media (max-width: 480px) {
  .container {
    width: 88%;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .hero__title {
    font-size: 2.5rem;
  }

  .navbar__cta {
    display: none;
  }

  /* Hide CTA button on very small screens to fit menu and logo */

  .card {
    padding: 32px 24px;
  }

  .bento-1 {
    min-height: 400px;
  }
}

/* Animations Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 30px;
  right: 30px;
  max-width: 600px;
  background: rgba(10, 10, 14, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 20px 24px;
  z-index: 9999;
  transform: translateY(150%);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.cookie-banner.active {
  transform: translateY(0);
}

.cookie-content {
  display: flex;
  gap: 24px;
  align-items: center;
}

.cookie-icon {
  width: 52px;
  height: 52px;
  background: radial-gradient(circle at top left, rgba(142, 67, 240, 0.25), transparent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  flex-shrink: 0;
  border: 1px solid rgba(142, 67, 240, 0.15);
  box-shadow: 0 8px 24px rgba(142, 67, 240, 0.15);
}

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

.cookie-text {
  flex-grow: 1;
}

.cookie-text p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 4px;
}

.cookie-link {
  font-size: 0.85rem;
  color: var(--accent-light);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
  display: inline-block;
}

.cookie-link:hover {
  color: #fff;
  text-decoration: underline;
}

.cookie-btn {
  padding: 14px 28px !important;
  font-size: 0.95rem !important;
  flex-shrink: 0;
  white-space: nowrap;
  cursor: pointer !important;
}

@media (max-width: 768px) {
  .cookie-banner {
    max-width: none;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border-radius: 20px;
    padding: 20px;
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .cookie-text p {
    margin-bottom: 8px;
  }

  .nav-wrapper {
    padding: 12px 12px;
  }

  .navbar {
    padding: 8px 12px 8px 16px;
    gap: 15px;
  }

  .navbar__logo img {
    height: 28px !important;
  }

  .logo-name {
    font-size: 14px;
  }

  .logo-sub {
    font-size: 8px;
  }

  .hero {
    padding-top: 100px;
    min-height: 80vh;
  }

  .hero__badge {
    font-size: 10px;
    padding: 8px 16px;
    margin-bottom: 24px;
  }

  .section {
    padding: 60px 0;
  }

  .cookie-btn {
    width: 100%;
  }

  .social-cards {
    gap: 16px;
  }

  .social-card {
    min-width: 100%;
    padding: 20px;
  }

  .marquee-wrapper {
    padding: 10px 0;
  }

  .work-card {
    height: 260px;
    padding: 24px;
    border-radius: 20px;
  }

  .work-card-title {
    font-size: 1.5rem;
  }

  .work-card-cat {
    font-size: 10px;
  }

  .member-image-wrapper {
    width: 140px;
    height: 140px;
    margin-bottom: 24px;
  }

  .member-title {
    font-size: 1.8rem;
  }

  /* Fix pricing overflow and sizing */
  .pricing-grid {
    max-width: 100%;
    padding: 0 10px;
    gap: 30px;
  }

  .price-card {
    padding: 32px 20px;
    border-radius: 24px;
    width: 100%;
    box-sizing: border-box;
  }

  .price-amount {
    font-size: clamp(2.2rem, 10vw, 3rem);
    word-break: break-word;
  }

  .price-amount--text {
    font-size: clamp(1.4rem, 8vw, 2.2rem);
  }

  .price-amount span {
    font-size: 1rem;
  }
}

/* 
  ULTRA-WIDE SCALING & COMPACT SPACING
  Adjusts vertical gaps for wider monitors while magnifying content.
*/
@media screen and (min-width: 1400px) {
  .section {
    padding: 120px 0;
    /* Reducing base padding on PC */
  }

  .section-subtitle {
    margin-bottom: 50px;
  }
}

@media screen and (min-width: 1921px) {
  html {
    zoom: 1.25;
    /* Only scale for extreme resolutions */
  }

  .hero {
    min-height: 75vh;
    /* Shorter hero to fit more content on screen */
    padding-top: 50px;
  }

  .hero__title {
    margin-bottom: 20px;
  }

  .hero__subtitle {
    margin-bottom: 30px;
  }

  .section {
    padding: 120px 0;
    /* Even more compact */
  }

  .footer {
    padding: 60px 0 40px;
    margin-top: 50px;
  }
}