
:root {
  --bg-pure: #ffffff;
  --bg-subtle: #fafbfd;
  --bg-card: #ffffff;
  --bg-muted: #f4f6f9;
  --bg-glass: rgba(255, 255, 255, 0.85);

  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;

  --brand-blue: #0084ff;
  --brand-purple: #7000ff;
  --brand-green: #10b981;
  --grad-brand: linear-gradient(135deg, #0084ff 0%, #7000ff 100%);
  --grad-brand-soft: linear-gradient(135deg, rgba(0, 132, 255, 0.05) 0%, rgba(112, 0, 255, 0.05) 100%);

  --border-subtle: #f0f2f5;
  --border-medium: #e5e7eb;
  --border-dark: #111827;

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.03);
  --shadow-card: 0 10px 30px -4px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 20px 40px -8px rgba(0, 0, 0, 0.08);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;

  --transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --container-width: 1140px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-pure);
  color: var(--text-secondary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  position: relative;
  width: 100%;
}

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

svg {
  flex-shrink: 0;
}

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

button, input, textarea, select {
  font: inherit;
  -webkit-appearance: none;
  appearance: none;
}

button {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  color: inherit;
}

input, textarea, select {
  font-size: 16px; 
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (max-width: 480px) {
  .container {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }
}

h1, h2, h3, h4 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
  overflow-wrap: break-word;
  word-break: break-word;
}

.gradient-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.section-label {
  font-size: 0.775rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-purple);
  margin-bottom: 0.75rem;
  display: inline-block;
}

.section-title {
  font-size: clamp(1.85rem, 5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  color: var(--text-secondary);
  max-width: 620px;
  line-height: 1.75;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--text-primary);
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.btn-primary:hover {
  background: #000000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px -4px rgba(0, 0, 0, 0.18);
  color: #ffffff;
}

.btn-brand {
  background: var(--grad-brand);
  color: #ffffff;
}

.btn-brand:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px -4px rgba(112, 0, 255, 0.3);
  color: #ffffff;
}

.btn-outline {
  background: #ffffff;
  color: var(--text-primary);
  border-color: var(--border-medium);
}

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

.btn-sm {
  padding: 0.45rem 1.1rem;
  font-size: 0.8rem;
}

.contact-btn-pair {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.btn-contact-custom {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1.75rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  max-width: 100%;
  word-break: break-word;
}

@media (max-width: 480px) {
  .btn-contact-custom {
    padding: 0.85rem 1.25rem;
    font-size: 0.875rem;
    gap: 0.7rem;
    width: 100%;
  }
}

.btn-ig-custom {
  background: #ffffff;
  color: var(--text-primary);
  border: 1.5px solid #e5e7eb;
}

.btn-ig-custom .icon-wrapper {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: transform var(--transition);
}

.btn-ig-custom:hover {
  border-color: #dc2743;
  color: #dc2743;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px -4px rgba(220, 39, 67, 0.2);
}

.btn-ig-custom:hover .icon-wrapper {
  transform: scale(1.1);
}

.btn-mail-custom {
  background: var(--text-primary);
  color: #ffffff;
  border: 1.5px solid var(--text-primary);
}

.btn-mail-custom .icon-wrapper {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: transform var(--transition);
}

.btn-mail-custom:hover {
  background: #000000;
  border-color: #000000;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px -4px rgba(0, 0, 0, 0.25);
  color: #ffffff;
}

.btn-mail-custom:hover .icon-wrapper {
  transform: scale(1.1);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(229, 231, 235, 0.6);
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  border-bottom-color: var(--border-medium);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 8px 24px -4px rgba(0, 0, 0, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 0.75rem;
}

@media (max-width: 480px) {
  .header-inner {
    height: 64px;
    gap: 0.5rem;
  }
}

.brand-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
  transition: opacity var(--transition);
}

@media (max-width: 480px) {
  .brand-logo-img {
    height: 27px;
  }
}

.brand-logo:hover .brand-logo-img {
  opacity: 0.8;
}

.nav-pill-wrapper {
  display: none;
  align-items: center;
  gap: 0.15rem;
  background: var(--bg-subtle);
  padding: 0.3rem 0.4rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

@media (min-width: 980px) {
  .nav-pill-wrapper {
    display: flex;
  }
}

.nav-pill-link {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  transition: all var(--transition);
  white-space: nowrap;
  letter-spacing: 0.005em;
}

@media (min-width: 980px) and (max-width: 1100px) {
  .nav-pill-link {
    padding: 0.35rem 0.65rem;
    font-size: 0.78rem;
  }
}

.nav-pill-link:hover {
  color: var(--text-primary);
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.nav-pill-link.active,
.nav-pill-link--active {
  color: var(--text-primary);
  background: #ffffff;
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.header-actions-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  max-width: 100%;
}

.nav-ig-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  transition: all var(--transition);
  flex-shrink: 0;
}

@media (min-width: 1120px) {
  .nav-ig-btn {
    display: inline-flex;
  }
}

.nav-ig-btn:hover {
  color: #dc2743;
  border-color: #dc2743;
  background: #fff5f6;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 39, 67, 0.1);
}

.nav-mail-cta {
  display: none;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-full);
  background: var(--text-primary);
  color: #ffffff;
  transition: all var(--transition);
  letter-spacing: 0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (min-width: 600px) {
  .nav-mail-cta {
    display: inline-flex;
  }
}

@media (min-width: 600px) and (max-width: 680px) {
  .nav-mail-cta {
    padding: 0.45rem 0.85rem;
    font-size: 0.775rem;
  }
}

.nav-mail-cta:hover {
  background: #000000;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.mobile-toggle {
  -webkit-appearance: none;
  appearance: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-md);
  transition: background-color var(--transition);
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
  box-sizing: border-box;
}

.mobile-toggle:hover {
  background-color: var(--bg-subtle);
}

@media (min-width: 980px) {
  .mobile-toggle {
    display: none;
  }
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-drawer {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  max-height: calc(100vh - 72px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #ffffff;
  border-bottom: 1px solid var(--border-medium);
  padding: 1.5rem 1.5rem 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 99;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

@media (max-width: 480px) {
  .mobile-drawer {
    top: 64px;
    max-height: calc(100vh - 64px);
    max-height: calc(100dvh - 64px);
    padding: 1.25rem 1.15rem 2rem;
    gap: 1rem;
  }
}

.mobile-drawer.open,
.mobile-drawer.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-drawer a {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.hero-clean {
  padding: 3.5rem 0 3rem 0;
  border-bottom: 1px solid var(--border-subtle);
  background: 
    radial-gradient(ellipse at 85% 15%, rgba(0, 132, 255, 0.04) 0%, transparent 55%),
    radial-gradient(ellipse at 15% 85%, rgba(112, 0, 255, 0.03) 0%, transparent 55%);
}

@media (min-width: 768px) {
  .hero-clean {
    padding: 6rem 0 5rem 0;
  }
}

.hero-quote-badge {
  display: inline-block;
  font-size: clamp(0.775rem, 2vw, 0.85rem);
  font-style: italic;
  color: var(--text-muted);
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  line-height: 1.45;
}

.hero-title-main {
  font-size: clamp(2rem, 6.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.04em;
  margin-bottom: 1.15rem;
  max-width: 820px;
}

.hero-slogan {
  font-size: clamp(1.05rem, 2.8vw, 1.25rem);
  font-weight: 700;
  color: var(--brand-purple);
  margin-bottom: 1.15rem;
  display: block;
  letter-spacing: -0.01em;
}

.hero-text {
  font-size: clamp(0.975rem, 2vw, 1.075rem);
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 640px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

@media (max-width: 480px) {
  .hero-actions .btn {
    width: 100%;
  }
}

.about-me-section {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
}

@media (min-width: 768px) {
  .about-me-section {
    padding: 6rem 0;
  }
}

.about-me-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 860px) {
  .about-me-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 3.5rem;
  }
}

.about-me-text h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: 1.25rem;
}

.about-me-text p {
  font-size: 1.025rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.about-me-card {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 1.5rem 1.25rem;
  box-shadow: var(--shadow-card);
}

@media (min-width: 600px) {
  .about-me-card {
    padding: 2.5rem;
  }
}

.about-avatar-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.avatar-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.35rem;
}

.avatar-info h3 {
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
}

.avatar-info span {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pillar-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.925rem;
}

.pillar-item svg {
  color: var(--brand-purple);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.portfolio-clean {
  padding: 3.5rem 0;
}

@media (min-width: 768px) {
  .portfolio-clean {
    padding: 6rem 0;
  }
}

.portfolio-header-box {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .portfolio-header-box {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 2.5rem;
  }
}

.portfolio-filters {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  scrollbar-width: thin;
}

@media (min-width: 860px) {
  .portfolio-filters {
    flex-wrap: wrap;
    overflow-x: visible;
    padding-bottom: 1rem;
    margin-bottom: 2.5rem;
  }
}

.filter-chip {
  background: none;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.005em;
  white-space: nowrap;
  flex-shrink: 0;
}

.filter-chip:hover {
  color: var(--text-primary);
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.filter-chip.active {
  background: var(--text-primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.12);
}

.portfolio-grid-2x2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem 1.5rem;
}

@media (min-width: 768px) {
  .portfolio-grid-2x2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3rem 2rem;
  }
}

.work-card-link {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  color: inherit;
  min-width: 0;
}

.work-thumb-wrapper {
  position: relative;
  background: var(--bg-muted);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border-subtle);
  margin-bottom: 1.15rem;
  transition: all 0.35s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  isolation: isolate;
  transform: translateZ(0);
}

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

.work-card-link:hover .work-thumb-wrapper {
  border-color: var(--border-medium);
  box-shadow: 0 12px 36px -8px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.work-card-link:hover .work-thumb-wrapper img {
  transform: scale(1.04);
}

.work-hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(17, 24, 39, 0.15);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.work-card-link:hover .work-hover-overlay {
  opacity: 1;
}

.work-view-pill {
  background: #ffffff;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.work-meta {
  font-size: 0.775rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.work-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  transition: color var(--transition);
}

.work-card-link:hover .work-title {
  color: var(--brand-purple);
}

.work-summary {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0.85rem;
}

.work-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.work-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
}

.services-section-clean {
  padding: 3.5rem 0;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

@media (min-width: 768px) {
  .services-section-clean {
    padding: 6rem 0;
  }
}

.services-grid-4 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

@media (min-width: 640px) {
  .services-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
  }
}

@media (min-width: 1024px) {
  .services-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.service-card-clean {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}

@media (min-width: 640px) {
  .service-card-clean {
    padding: 2rem 1.75rem;
  }
}

.service-card-clean:hover {
  border-color: var(--border-medium);
  box-shadow: 0 8px 28px -6px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.accent-line-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 2.5px;
  background: var(--grad-brand);
  transition: width 0.35s ease;
}

.service-card-clean:hover .accent-line-hover {
  width: 100%;
}

.service-card-num {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--brand-purple);
  margin-bottom: 1.25rem;
}

.service-card-clean h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  line-height: 1.35;
}

.service-card-clean p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.timeline-section-clean {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

@media (min-width: 768px) {
  .timeline-section-clean {
    padding: 6rem 0;
  }
}

.timeline-grid-4 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

@media (min-width: 640px) {
  .timeline-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem;
    margin-top: 3.5rem;
  }
}

@media (min-width: 1024px) {
  .timeline-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.timeline-step-card {
  padding: 1.5rem 1.25rem;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}

@media (min-width: 640px) {
  .timeline-step-card {
    padding: 2rem 1.75rem;
  }
}

.timeline-step-card:hover {
  border-color: var(--border-medium);
  box-shadow: 0 8px 28px -6px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.timeline-dot-wrapper {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--border-medium);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-purple);
  margin-bottom: 1.25rem;
  background: var(--bg-subtle);
}

.timeline-step-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.65rem;
}

.timeline-step-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.contact-section-clean {
  padding: 3.5rem 0;
}

@media (min-width: 768px) {
  .contact-section-clean {
    padding: 6rem 0;
  }
}

.contact-layout-2col {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
}

@media (min-width: 860px) {
  .contact-layout-2col {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 3.5rem;
    align-items: start;
  }
}

.contact-quote-callout {
  border-left: 3px solid var(--brand-purple);
  padding: 0.85rem 1.25rem;
  background: var(--bg-subtle);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin: 1.5rem 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.clean-form-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-medium);
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius-lg);
}

@media (min-width: 600px) {
  .clean-form-card {
    padding: 2.25rem;
  }
}

.form-field-group {
  margin-bottom: 1.25rem;
}

.field-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.field-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 16px; 
  transition: border-color var(--transition);
}

.field-input:focus {
  outline: none;
  border-color: var(--border-dark);
}

.field-textarea {
  resize: vertical;
  min-height: 110px;
}

.clean-form-success {
  display: none;
  padding: 1rem;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.clean-form-success.active {
  display: block;
}

.case-study-hero {
  padding: 2.5rem 0 2rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

@media (min-width: 768px) {
  .case-study-hero {
    padding: 4rem 0 3rem 0;
  }
}

.breadcrumbs-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.breadcrumbs-bar a:hover {
  color: var(--brand-purple);
}

.case-study-heading {
  font-size: clamp(1.85rem, 5.5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  line-height: 1.2;
  overflow-wrap: break-word;
}

.case-study-intro {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 760px;
  margin-bottom: 1.75rem;
}

.case-study-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

@media (max-width: 480px) {
  .case-study-actions .btn {
    width: 100%;
  }
}

.btn-live-site {
  background: var(--grad-brand);
  color: #ffffff;
  box-shadow: 0 8px 24px -4px rgba(112, 0, 255, 0.3);
}

.btn-live-site:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -4px rgba(112, 0, 255, 0.45);
  color: #ffffff;
}

.project-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  margin-bottom: 2.5rem;
}

@media (max-width: 480px) {
  .project-meta-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    padding: 1.25rem;
  }
}

@media (min-width: 768px) {
  .project-meta-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 2rem;
    margin-bottom: 3.5rem;
  }
}

.meta-col span.lbl {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

.meta-col span.val {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  overflow-wrap: break-word;
}

.project-big-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-hover);
  margin-bottom: 3rem;
  background: #ffffff;
}

@media (min-width: 768px) {
  .project-big-image {
    margin-bottom: 4.5rem;
  }
}

.project-big-image img {
  width: 100%;
  height: auto;
  display: block;
}

.case-study-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 820px) {
  .case-study-details {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 3.5rem;
    margin-bottom: 5rem;
  }
}

.case-study-block h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.case-study-block p {
  font-size: 1.025rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.highlights-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.25rem;
}

@media (min-width: 600px) {
  .highlights-box {
    padding: 2rem;
  }
}

.highlights-box h4 {
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
}

.highlights-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.highlights-list li {
  font-size: 0.925rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.highlights-list li svg {
  color: var(--brand-purple);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.project-pagination-bar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: stretch;
  padding: 1.75rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 3rem;
}

@media (min-width: 600px) {
  .project-pagination-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 2.5rem 0;
    margin-bottom: 4.5rem;
  }
}

@media (max-width: 599px) {
  .project-pagination-bar .pagination-item {
    text-align: left !important;
  }
}

.pagination-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.pagination-lbl {
  font-size: 0.775rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.pagination-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.pagination-item:hover .pagination-title {
  color: var(--brand-purple);
}

.site-footer-clean {
  padding: 2.5rem 0 2rem 0;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--bg-subtle);
}

@media (min-width: 768px) {
  .site-footer-clean {
    padding: 3rem 0 2rem 0;
  }
}

.footer-top-socials {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

@media (min-width: 640px) {
  .footer-top-socials {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1.75rem;
    margin-bottom: 1.75rem;
  }
}

.footer-social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.footer-social-link:hover {
  color: var(--text-primary);
}

.footer-clean-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

@media (min-width: 640px) {
  .footer-clean-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
  }
}

/* ==========================================================================
   Language Switcher (Dynamic PL / EN)
   ========================================================================== */
.lang-switcher-btn {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  line-height: 1;
  gap: 0.35rem;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.04em;
  font-family: inherit;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
  box-sizing: border-box;
}

.lang-switcher-btn:hover {
  border-color: var(--border-medium);
  color: var(--text-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.lang-switcher-btn .lang-opt {
  transition: color var(--transition);
}

.lang-switcher-btn .lang-opt.active {
  color: var(--brand-purple);
  font-weight: 800;
}

.lang-switcher-btn .lang-divider {
  color: var(--border-medium);
  font-weight: 400;
}

/* ==========================================================================
   Portfolio Controls & View Toggle (Grid 2x2 vs Compact List)
   ========================================================================== */
.portfolio-controls-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

@media (min-width: 768px) {
  .portfolio-controls-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.portfolio-filters {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  gap: 0.45rem;
  scrollbar-width: none;
  padding-bottom: 0.25rem;
}

.portfolio-filters::-webkit-scrollbar {
  display: none;
}

@media (min-width: 860px) {
  .portfolio-filters {
    flex-wrap: wrap;
    overflow-x: visible;
  }
}

.portfolio-view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 3px;
  align-self: flex-start;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .portfolio-view-toggle {
    align-self: center;
  }
}

.view-toggle-btn {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  line-height: 1;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-full);
  background: transparent;
  border: none;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
  box-sizing: border-box;
}

.view-toggle-btn svg {
  flex-shrink: 0;
}

.view-toggle-btn:hover {
  color: var(--text-primary);
}

.view-toggle-btn.active {
  background: #ffffff;
  color: var(--text-primary);
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* Compact List View Mode */
.portfolio-grid-2x2.view-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.portfolio-grid-2x2.view-list .work-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  transition: all var(--transition);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  min-width: 0;
}

.portfolio-grid-2x2.view-list .work-card:hover {
  border-color: var(--border-medium);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.portfolio-grid-2x2.view-list .work-card-link {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

@media (min-width: 640px) {
  .portfolio-grid-2x2.view-list .work-card-link {
    flex-direction: row;
    align-items: center;
    gap: 1.75rem;
  }
}

.portfolio-grid-2x2.view-list .work-thumb-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 0;
  flex-shrink: 0;
  min-width: 0;
}

@media (min-width: 640px) {
  .portfolio-grid-2x2.view-list .work-thumb-wrapper {
    width: 240px;
    height: 150px;
    aspect-ratio: auto;
  }
}

.portfolio-grid-2x2.view-list .work-card-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.portfolio-grid-2x2.view-list .work-summary {
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   FAQ Section (Accordion)
   ========================================================================== */
.faq-section-clean {
  padding: 4rem 0;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

@media (min-width: 768px) {
  .faq-section-clean {
    padding: 6rem 0;
  }
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
}

@media (min-width: 860px) {
  .faq-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
    gap: 4rem;
    align-items: flex-start;
  }
}

.faq-intro-sticky {
  position: static;
}

@media (min-width: 860px) {
  .faq-intro-sticky {
    position: sticky;
    top: 100px;
  }
}

.faq-intro-cta {
  margin-top: 1.75rem;
  padding: 1.25rem;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.faq-intro-cta p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.25s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.faq-item:hover {
  border-color: var(--border-medium);
}

.faq-item.active {
  border-color: rgba(112, 0, 255, 0.3);
  box-shadow: 0 4px 16px rgba(112, 0, 255, 0.06);
}

.faq-question-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: color var(--transition);
}

.faq-question-btn:hover {
  color: var(--brand-purple);
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
  color: var(--text-secondary);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  background: var(--brand-purple);
  border-color: var(--brand-purple);
  color: #ffffff;
}

.faq-answer-collapse {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s ease;
  padding: 0 1.4rem;
}

.faq-item.active .faq-answer-collapse {
  max-height: 300px;
  padding-bottom: 1.35rem;
}

.faq-answer-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
}

/* Safari WebKit Flexbox & Grid Blowout Guards */
.portfolio-grid-2x2 > *,
.services-grid-4 > *,
.timeline-grid-4 > *,
.faq-layout > *,
.case-study-details > *,
.about-me-grid > *,
.contact-layout-2col > *,
.project-meta-grid > *,
.work-card,
.work-card-content,
.service-card-clean,
.timeline-step-card,
.about-me-card,
.faq-item {
  min-width: 0;
}


