:root {
  --bg-dark: #11161c;
  --surface-dark: #1a2027;
  --surface-elevated: #252b33;
  --grey: #3e4349;
  --muted-grey: #6b7280;
  --yellow: #ffaa01;
  --gold: #d78e01;
  --white: #ffffff;
  --bg-light: #f8f9fb;
  --border-light: #e5e8ec;

  --font-main: 'Inter', sans-serif;
  --max-width: 1320px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  background: #11161c;
  font-family: var(--font-main);
  color: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.site-header,
.hero,
.services,
.process,
.portfolio,
.site-footer,
section {
  width: 100%;
}

.container {
  width: min(100% - 48px, 1320px);
  margin-inline: auto;
}

/* HEADER */
.site-header {
  background-color: var(--bg-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.logo {
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.logo span {
  color: var(--yellow);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.main-nav > a, .nav-dropdown-toggle {
  color: #a0a5ab;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.2s;
}
.main-nav > a:hover, .nav-dropdown-toggle:hover {
  color: var(--white);
}


.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}
.btn-header {
  background-color: var(--yellow);
  color: var(--bg-dark);
  font-size: 13px;
  padding: 12px 24px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.btn-header:hover {
  background-color: var(--gold);
}

/* HERO SECTION */
.hero {
  background-color: var(--yellow);
  color: var(--bg-dark);
  text-align: center;
  padding: 120px 0 80px;
}
.hero-title {
  font-size: 88px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  margin: 0 0 16px;
}
.hero-title .text-white {
  color: var(--white);
}
.hero-typing {
  font-size: 30px;
  font-weight: 500;
  color: var(--surface-elevated);
  margin-bottom: 40px;
  min-height: 36px;
}
.cursor {
  font-weight: 400;
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}
.btn-dark {
  background-color: var(--bg-dark);
  color: var(--white);
  border: 1px solid var(--bg-dark);
}
.btn-dark:hover {
  background-color: var(--surface-dark);
}
.btn-outline {
  background-color: transparent;
  color: var(--bg-dark);
  border: 1px solid var(--bg-dark);
}
.btn-outline:hover {
  background-color: rgba(17, 22, 28, 0.05);
}

/* SERVICES SECTION */
.services {
  background-color: var(--bg-light);
  color: var(--bg-dark);
  padding: 32px 0 64px;
}
.services .container {
  max-width: 1400px;
  width: min(100% - 48px, 1400px);
}
.services .section-header-left {
  margin-bottom: 32px;
  max-width: 100%;
}
.section-desc {
  font-size: 18px;
  color: var(--muted-grey);
  line-height: 1.6;
  margin: 0;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.service-col {
  background-color: var(--white);
  padding: 32px 24px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: left;
}
.service-col:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.06);
}
.service-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--bg-light);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 16px 0;
  color: var(--yellow);
  transition: background-color 0.3s ease, color 0.3s ease;
}
.service-col:hover .service-icon-wrapper {
  background-color: var(--bg-dark);
  color: var(--white);
}
.service-icon-wrapper svg {
  width: 28px;
  height: 28px;
}
.service-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 12px;
}
.service-desc {
  font-size: 15px;
  color: var(--muted-grey);
  margin: 0 0 16px;
  line-height: 1.6;
  flex: 1;
}
.service-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--bg-dark);
  text-decoration: none;
  transition: color 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  align-self: flex-start;
}
.service-link:hover {
  color: var(--yellow);
}

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

/* PROCESS SECTION */
.process {
  background-color: var(--bg-dark);
  padding: 56px 0 80px;
}
.section-header-left {
  margin-bottom: 48px;
}
.label-small {
  display: flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--yellow);
  letter-spacing: 2px;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.label-small .line {
  width: 40px;
  height: 1px;
  background-color: var(--yellow);
  margin-right: 16px;
}
.section-title {
  font-size: 40px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -1px;
}
.section-title.text-white {
  color: var(--white);
}
.section-title.dark-text {
  color: var(--bg-dark);
}

.process-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1240px;
  margin: 0 auto;
}
.process-item {
  display: flex;
  align-items: center;
  gap: 32px;
  opacity: 0;
  will-change: transform, opacity;
}
.process-item.align-right {
  justify-content: flex-end;
  padding-left: 5%;
  transform: translateX(140px);
}
.process-item.align-left {
  justify-content: flex-start;
  padding-right: 5%;
  transform: translateX(-140px);
}
.process-item.is-visible {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}
.process-item.is-visible:nth-child(1) { transition-delay: 0s; }
.process-item.is-visible:nth-child(2) { transition-delay: 0.25s; }
.process-item.is-visible:nth-child(3) { transition-delay: 0.5s; }
.process-item.is-visible:nth-child(4) { transition-delay: 0.75s; }
.p-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--surface-dark);
  border: 1px solid var(--grey);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--yellow);
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(255, 170, 1, 0.05);
}
.p-icon svg {
  width: 28px;
  height: 28px;
}
.p-card {
  background-color: var(--surface-elevated);
  padding: 24px 48px;
  border-radius: 12px;
  flex: 1;
  max-width: 960px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
  border: 1px solid rgba(255,255,255,0.02);
}
.p-card:hover {
  transform: translateY(-5px);
}
.p-step {
  font-size: 11px;
  font-weight: 800;
  color: var(--yellow);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}
.p-title {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--white);
}
.p-desc {
  font-size: 15px;
  color: #a0a5ab;
  margin: 0;
  line-height: 1.6;
}


/* PORTFOLIO SECTION */
.portfolio {
  background-color: var(--bg-light);
  padding: 48px 0 80px;
  color: var(--bg-dark);
}
.portfolio-container {
  max-width: 1560px;
  width: calc(100% - 64px);
  margin: 0 auto;
}
.portfolio .section-title {
  margin-bottom: 24px;
}
.portfolio-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}
.portfolio-header-left {
  max-width: 1000px;
}
.portfolio-desc {
  font-size: 18px;
  color: var(--muted-grey);
  margin: 0;
  line-height: 1.6;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.portfolio-card {
  background-color: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  aspect-ratio: 16/9;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  cursor: pointer;
}
.portfolio-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 16px 32px rgba(0,0,0,0.08);
}
.p-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center top;
  background-color: var(--surface-dark);
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.portfolio-card:hover .p-image {
  transform: scale(1.05);
}
.p-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(17,22,28,0.9) 0%, rgba(17,22,28,0.3) 40%, rgba(17,22,28,0) 100%);
  transition: opacity 0.4s ease;
  z-index: 1;
}
.portfolio-card:hover .p-overlay {
  opacity: 0.8;
}
.p-content {
  position: relative;
  z-index: 2;
  padding: 32px;
  color: var(--white);
}
.p-content h4 {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.5px;
}
.p-content p {
  font-size: 16px;
  color: #d1d5db;
  margin: 0;
  font-weight: 400;
}

/* FOOTER */
.site-footer {
  background-color: var(--bg-dark);
  padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  color: #a0a5ab;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--white);
}
.footer-copy {
  color: var(--grey);
  font-size: 13px;
}

/* PAGE HERO */
.page-hero {
  background-color: var(--yellow);
  color: var(--bg-dark);
  padding: 60px 0;
  text-align: center;
}
.page-hero .hero-title {
  font-size: 64px;
  letter-spacing: -1.5px;
  color: var(--bg-dark);
  margin: 0;
}

/* SERVICES SUBNAV */
.services-subnav {
  background-color: var(--surface-dark);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  position: sticky;
  top: 80px; /* Below header */
  z-index: 90;
}
.subnav-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 16px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.subnav-container::-webkit-scrollbar {
  display: none;
}
.services-subnav a {
  color: #a0a5ab;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.2s;
}
.services-subnav a:hover, .services-subnav a.active {
  color: var(--yellow);
}

/* SERVICE CHAPTERS */
.service-chapter {
  padding: 56px 0;
  background-color: var(--white);
  color: var(--bg-dark);
}
.service-chapter.dark-chapter {
  background-color: var(--bg-dark);
  color: #c8cdd2;
}
.service-chapter.dark-chapter .chapter-content p {
  color: #c8cdd2;
}
.service-chapter.dark-chapter .chapter-features li {
  color: #ffffff;
}
.chapter-grid {
  display: grid;
  grid-template-columns: 55% 35%;
  justify-content: space-between;
  gap: 40px;
  align-items: center;
}
.service-chapter:nth-child(even) .chapter-grid {
  direction: rtl;
}
.service-chapter:nth-child(even) .chapter-content,
.service-chapter:nth-child(even) .chapter-image {
  direction: ltr;
}
.chapter-content .label-small {
  margin-bottom: 24px;
}
.chapter-content h2 {
  margin-bottom: 16px;
}
.chapter-content p {
  font-size: 16px;
  color: var(--muted-grey);
  line-height: 1.6;
  margin-bottom: 16px;
}
.chapter-features {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
}
.chapter-features li {
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--bg-dark);
}
.chapter-features li svg {
  width: 20px;
  height: 20px;
  color: var(--yellow);
  flex-shrink: 0;
}
.chapter-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0,0,0,0.06);
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  background-color: var(--surface-dark);
}
.process-text-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 64px;
  max-width: 1000px;
}
.pt-item {
  display: flex;
  flex-direction: column;
}
.pt-step {
  font-size: 12px;
  font-weight: 800;
  color: var(--yellow);
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}
.pt-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.pt-desc {
  font-size: 15px;
  color: #a0a5ab;
  line-height: 1.6;
}

/* CTA SECTION */
.cta {
  background-color: var(--yellow);
  padding: 60px 0;
  text-align: center;
}
.cta .section-title {
  color: var(--bg-dark);
  margin-bottom: 16px;
}
.cta-desc {
  font-size: 18px;
  color: var(--bg-dark);
  opacity: 0.8;
  margin: 0 auto 32px;
  max-width: 500px;
}
.cta .btn-header {
  background-color: var(--bg-dark);
  color: var(--white);
  padding: 16px 32px;
  font-size: 14px;
}
.cta .btn-header:hover {
  background-color: var(--surface-dark);
}

/* FLOATING CTA */
.floating-cta {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--yellow);
  color: var(--bg-dark);
  font-size: 14px;
  font-weight: 700;
  padding: 16px 24px;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  text-decoration: none;
  z-index: 9999;
  transition: all 0.3s ease;
  white-space: nowrap;
  animation: breathing-pulse 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.floating-cta:hover {
  background-color: var(--gold);
  transform: translateY(-50%) scale(1.05);
  animation-play-state: paused;
}

@keyframes breathing-pulse {
  0% {
    transform: translateY(-50%) scale(1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15), 0 0 0 0 rgba(255, 170, 1, 0.35);
  }
  70% {
    transform: translateY(-50%) scale(1.03);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1), 0 0 0 12px rgba(255, 170, 1, 0);
  }
  100% {
    transform: translateY(-50%) scale(1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15), 0 0 0 0 rgba(255, 170, 1, 0);
  }
}

/* Custom Image Layout */
#web-ecommerce .chapter-grid,
#startup-product .chapter-grid,
#branding-growth .chapter-grid,
#systems-innovation .chapter-grid {
  grid-template-columns: 52% 42%;
}
#web-ecommerce .chapter-image,
#startup-product .chapter-image,
#branding-growth .chapter-image,
#systems-innovation .chapter-image {
  aspect-ratio: 16/10;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .hero-title { font-size: 56px; }
  .services-container { flex-wrap: wrap; }
  .service-col { flex: 0 0 50%; margin-bottom: 48px; }
  .service-divider { display: none; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .process-item.align-right, .process-item.align-left {
      padding-left: 0;
      padding-right: 0;
  }
  .chapter-grid, #web-ecommerce .chapter-grid, #startup-product .chapter-grid, #branding-growth .chapter-grid, #systems-innovation .chapter-grid { grid-template-columns: 1fr; gap: 48px; }
  .service-chapter:nth-child(even) .chapter-grid { direction: ltr; }
  .process-text-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .header-container {
      flex-direction: column;
      height: auto;
      padding: 16px 0;
      gap: 16px;
  }
  .main-nav { flex-wrap: wrap; justify-content: center; gap: 16px; }
  
  .hero-title { font-size: 40px; }
  .hero-typing { font-size: 18px; }
  
  .service-col { flex: 0 0 100%; padding: 0 16px; margin-bottom: 40px; }
  .service-col:last-child { margin-bottom: 0; }
  
  .process-item { flex-direction: column; align-items: flex-start; gap: 16px; }
  .process-item.align-right, .process-item.align-left {
      justify-content: flex-start;
  }
  .p-icon { display: none; }
  .p-card { max-width: 100%; }

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

  .chapter-grid, #web-ecommerce .chapter-grid, #startup-product .chapter-grid, #branding-growth .chapter-grid, #systems-innovation .chapter-grid { grid-template-columns: 1fr; gap: 48px; }
  .service-chapter:nth-child(even) .chapter-grid { direction: ltr; }
  .process-text-grid { grid-template-columns: 1fr; gap: 32px; }
  
  .subnav-container { justify-content: flex-start; padding: 16px; }

  .footer-container {
      flex-direction: column;
      gap: 24px;
      text-align: center;
  }
  .footer-links {
      flex-wrap: wrap;
      justify-content: center;
  }
  
  .floating-cta {
    top: auto;
    bottom: 24px;
    right: 24px;
    transform: none;
    padding: 14px 20px;
    font-size: 13px;
    animation: none;
  }
  .floating-cta:hover {
    transform: scale(1.05);
  }
}

/* CONTACT PAGE */
.contact-section {
  background-color: var(--bg-light);
  padding: 80px 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 64px;
}
.huantum-form {
  background: var(--white);
  padding: 48px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}
.form-row {
  display: flex;
  gap: 24px;
}
.form-row .form-group {
  flex: 1;
}
.form-group {
  margin-bottom: 24px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--bg-dark);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.huantum-form input[type="text"],
.huantum-form input[type="email"],
.huantum-form input[type="tel"],
.huantum-form select,
.huantum-form textarea,
.huantum-form input[type="file"] {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  color: var(--bg-dark);
  background-color: var(--white);
  transition: all 0.2s ease;
  box-sizing: border-box;
}
.huantum-form input:focus,
.huantum-form select:focus,
.huantum-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255,170,1,0.2);
}
.select-wrapper {
  position: relative;
}
.select-wrapper::after {
  content: "▼";
  font-size: 10px;
  color: var(--muted-grey);
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.huantum-form select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.form-submit {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  margin-top: 16px;
  border: none;
  cursor: pointer;
}

/* TRUST PANEL */
.trust-panel {
  background-color: var(--bg-dark);
  color: var(--white);
  padding: 40px;
  border-radius: 12px;
  position: sticky;
  top: 120px;
}
.trust-panel h3 {
  font-size: 24px;
  margin: 0 0 24px;
  color: var(--white);
}
.trust-points {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
}
.trust-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 15px;
  color: var(--white);
}
.trust-points li svg {
  width: 20px;
  height: 20px;
  color: var(--yellow);
  flex-shrink: 0;
}
.trust-meta {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.meta-label {
  font-size: 12px;
  color: #a0a5ab;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.meta-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--yellow);
}
.meta-value.link {
  text-decoration: none;
  transition: color 0.2s;
}
.meta-value.link:hover {
  color: var(--gold);
}

/* CTA BAND */
.cta-band {
  background-color: var(--bg-dark);
  padding: 64px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.cta-band-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}
.cta-band .cta-desc {
  margin: 8px 0 0;
  color: #a0a5ab;
}

@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .trust-panel {
    position: static;
  }
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  .cta-band-container {
    flex-direction: column;
    text-align: center;
  }
}
@media (max-width: 640px) {
  .huantum-form {
    padding: 24px;
  }
}

/* BLOG ARTICLE PAGE */
.blog-hero {
  background-color: var(--bg-light);
  padding: 64px 0 40px;
}
.blog-hero-container {
  max-width: 960px;
  margin: 0 auto;
}
.blog-meta-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.blog-meta-top .label-small {
  margin-bottom: 0;
}
.meta-dot {
  color: #a0a5ab;
  font-size: 14px;
}
.read-time {
  font-size: 14px;
  color: #a0a5ab;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.blog-hero-container .hero-title {
  font-size: 48px;
  line-height: 1.1;
  margin: 0 0 24px;
  color: var(--bg-dark);
}
.blog-hero-desc {
  font-size: 20px;
  color: var(--grey);
  line-height: 1.6;
  margin: 0 0 32px;
}
.blog-hero-image {
  width: 100%;
  aspect-ratio: 16/7;
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.06);
}

.blog-content {
  background-color: var(--white);
  padding: 48px 0 80px;
}
.blog-content-container {
  max-width: 960px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.7;
  color: var(--grey);
}
.blog-content-container h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--bg-dark);
  margin: 36px 0 24px;
  letter-spacing: -0.5px;
}
.blog-content-container h2:first-child {
  margin-top: 0;
}
.blog-content-container p {
  margin: 0 0 24px;
}
.blog-content-container strong {
  color: var(--bg-dark);
}
.blog-list {
  padding-left: 24px;
  margin: 0 0 24px;
}
.blog-list li {
  margin-bottom: 12px;
  padding-left: 8px;
}
.blog-list li::marker {
  color: var(--yellow);
}

/* BLOG EDITORIAL ELEMENTS */
.blog-pull-quote {
  font-size: 26px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--bg-dark);
  border-left: 4px solid var(--yellow);
  padding-left: 32px;
  margin: 56px 0;
  font-style: italic;
}

.blog-info-box {
  background-color: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 40px;
  margin: 56px 0;
}
.blog-info-box h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--bg-dark);
  margin: 0 0 24px 0;
}
.blog-info-box p {
  margin: 0 0 16px 0;
  font-size: 16px;
}
.blog-info-box p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .blog-hero-container .hero-title {
    font-size: 36px;
  }
  .blog-hero-desc {
    font-size: 18px;
  }
  .blog-hero-image {
    aspect-ratio: 16/9;
  }
}

/* BLOG INDEX PAGE */
.blog-index-hero {
  background-color: var(--yellow);
  padding: 64px 0;
  text-align: center;
}
.blog-index-hero-container {
  max-width: 800px;
  margin: 0 auto;
}
.blog-index-hero .hero-title {
  color: var(--bg-dark);
  font-size: 56px;
  margin: 0 0 16px 0;
  font-weight: 800;
  letter-spacing: -1px;
}
.blog-index-hero .hero-desc {
  color: var(--bg-dark);
  font-size: 20px;
  margin: 0;
  opacity: 0.9;
  font-weight: 500;
}

.blog-grid-section {
  background-color: var(--bg-light);
  padding: 80px 0;
}
.blog-grid-container {
  max-width: 1560px;
  width: calc(100% - 64px);
  margin: 0 auto;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  background-color: var(--white);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  border: 1px solid #e5e8ec;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}
.blog-card-img {
  width: 100%;
  aspect-ratio: 16/8.5;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid #e5e8ec;
}
.blog-card-content {
  padding: 24px 26px;
  flex-grow: 1;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}
.blog-card-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: #11161c;
  margin: 0;
  text-align: left;
}

@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .blog-index-hero {
    padding: 48px 0;
  }
  .blog-index-hero .hero-title {
    font-size: 40px;
  }
}

/* MODAL */
.cs-modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(17,22,28,0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 40px;
}
.cs-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.cs-modal-panel {
  background: var(--white);
  border-radius: 20px;
  width: 100%;
  max-width: 1400px;
  height: 90vh;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.cs-modal-overlay.active .cs-modal-panel {
  transform: translateY(0);
}
.cs-modal-close {
  position: absolute;
  top: 24px; right: 24px;
  background: var(--bg-light);
  border: none;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; justify-content: center; align-items: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s ease;
}
.cs-modal-close:hover {
  background: #e5e8ec;
}
.cs-modal-close svg {
  width: 24px; height: 24px; color: var(--bg-dark);
}
.cs-modal-content {
  display: flex;
  height: 100%;
  overflow-y: auto;
}
.cs-modal-left {
  flex: 0 0 45%;
  padding: 64px;
  max-width: 650px;
}
.cs-modal-meta {
  font-size: 14px; font-weight: 600; color: var(--yellow);
  text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.cs-modal-title {
  font-size: 48px; font-weight: 800; color: var(--bg-dark);
  margin: 0 0 24px; letter-spacing: -1px; line-height: 1.1;
}
.cs-modal-intro {
  font-size: 20px; color: var(--grey); line-height: 1.6;
  margin-bottom: 48px;
}
.cs-modal-section {
  margin-bottom: 40px;
}
.cs-modal-section h3 {
  font-size: 24px; font-weight: 700; color: var(--bg-dark);
  margin: 0 0 16px;
}
.cs-modal-section p {
  font-size: 18px; color: var(--grey); line-height: 1.6; margin: 0;
}
.cs-modal-list {
  margin: 16px 0;
  padding-left: 24px;
}
.cs-modal-list li {
  font-size: 18px;
  color: var(--grey);
  line-height: 1.6;
  margin-bottom: 8px;
}
.cs-features {
  display: flex; flex-direction: column; gap: 12px;
}
.cs-features span {
  display: flex; align-items: center; gap: 12px;
  font-size: 18px; color: var(--bg-dark); font-weight: 500;
}
.cs-features span::before {
  content: "✓";
  display: flex; justify-content: center; align-items: center;
  width: 24px; height: 24px; background: var(--yellow);
  color: var(--bg-dark); border-radius: 50%; font-size: 14px; font-weight: bold;
}
.cs-tags {
  display: flex; flex-wrap: wrap; gap: 12px;
}
.cs-tags span {
  background: var(--bg-light); color: var(--bg-dark);
  padding: 8px 16px; border-radius: 100px; font-size: 14px; font-weight: 600;
}
.cs-modal-cta {
  margin-top: 56px;
}
.cs-modal-right {
  flex: 0 0 55%;
  padding: 64px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.cs-modal-img {
  max-width: 100%; height: auto; border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.06);
}

@media (max-width: 1024px) {
  .cs-modal-content { flex-direction: column; }
  .cs-modal-left { max-width: 100%; padding: 40px; }
  .cs-modal-right { padding: 40px; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .cs-modal-overlay { padding: 0; }
  .cs-modal-panel { height: 100vh; border-radius: 0; }
  .cs-modal-close { top: 16px; right: 16px; }
  .cs-modal-left { padding: 40px 24px; }
  .cs-modal-right { padding: 0 24px 40px; }
  .cs-modal-title { font-size: 36px; }
  .portfolio-header { flex-direction: column; align-items: flex-start; gap: 24px; }
}