/* Responsive code blocks for mobile */
@media (max-width: 785px) {
  pre, code {
    white-space: pre-wrap !important;
    word-break: break-word !important;
    overflow-x: auto;
    max-width: 100vw;
    box-sizing: border-box;
  }
  pre {
    padding: 1em 0.5em;
    font-size: 0.98em;
  }
}
pre.code-syntax {
  white-space: pre !important;
  word-break: normal !important;
  display: block;
  overflow-x: auto;
  padding: 1em;
  background-color: #0f172a;
  border-radius: 8px;
  margin: 1em 0;
  max-width: 100vw;
  box-sizing: border-box;
}
pre.code-syntax code,
pre.code-syntax .token {
  white-space: pre !important;
  word-break: normal !important;
  overflow-x: auto !important;
  display: inline;
}
.page {
  margin: auto;
  justify-content: center;
}
.page .page-container {
  max-width: 1400px;
  padding: 0 2em;
  padding-bottom: 3em;
  background-color: #0b1e2bee;
}
.page h1,
.page h2,
.page p {
  position: relative;
  z-index: 3;
}
.page h1 {
  font-size: 32px;
}
.page h2 {
  font-size: 28px;
}
.page .page-image {
  width: 100%;
}
.page .project-showcase {
  background-color: #0b1e2bee;
}
.page .quote-clean {
  max-width: 640px;
  margin: 3rem auto 3rem auto;
  position: relative;
  font-style: italic;
  color: #ffffffcc;
  line-height: 1.4;
  font-size: 1.05rem;
}
.page .quote-clean::before {
  content: "“";
  position: absolute;
  left: -1.8rem;
  top: 1.5rem;
  font-size: 8rem;
  line-height: 0;
  color: #2AE9BB55;
  font-family: serif;
}
.page .quote-clean footer {
  text-align: right;
  font-size: 0.9rem;
  color: #2AE9BBaa;
}
.page .quote-clean cite {
  font-style: normal;
  font-weight: 500;
}
.page .quote-clean p {
  padding: 0;
  margin: 0;
  position: relative;
}

/* Actions Section */
.actions-section {
  display: flex;
  display: -webkit-flex;
  justify-content: center;
  -webkit-justify-content: center;
  align-items: center;
  -webkit-align-items: center;
  flex-direction: column-reverse;
  -webkit-flex-direction: column-reverse;
  margin: auto;
  gap: 2rem;
  padding: 3rem 1rem;
  background-color: #050A12ee;
  flex-wrap: wrap;
  -webkit-flex-wrap: wrap;
}
.action-card {
  display: flex;
  display: -webkit-flex;
  align-items: center;
  -webkit-align-items: center;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 2rem;
  max-width: 400px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  -webkit-transition: -webkit-transform 0.2s ease, box-shadow 0.2s ease;
  color: white;
}
.actions-section a:hover {
  text-decoration: none;
}
.action-card:hover {
  transform: translateY(-5px);
  -webkit-transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.action-card .arrow {
  font-size: 1.8rem;
  padding: 0 1rem;
  color: #ffaa00;
}
.action-card .content h3 {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
  color: #00ffee;
}
.action-card .content p {
  margin: 0;
  line-height: 1.5;
  font-size: 0.95rem;
  color: #cdd6e0;
}
.action-card.left {
  text-align: left;
}
.action-card.right {
  text-align: right;
}

/* Services */
.services .page-text {
  position: relative;
}

/* About */
.about-story img {
  float: right;
  width: 100%;
  margin-left: 4em;
  display: none;
}

/* Process */
.how-we-work {
  max-width: 960px;
  margin: 0 auto;
  padding: 4rem 1rem;
  color: #f1f5f9;
}
.how-we-work h2 {
  font-size: 2.2rem;
  color: #99f6e4;
  text-align: center;
  margin-bottom: 1rem;
}
.how-we-work .intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
  color: #cbd5e1;
}
.cards {
  display: grid;
  display: -ms-grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  -ms-grid-columns: (1fr)[auto-fit];
  gap: 2rem;
}
.card {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 1rem;
  padding: 2rem;
  max-width: 80vw;
  box-shadow: 0 8px 24px #0ea5e933;
  transition: transform 0.3s ease;
  -webkit-transition: -webkit-transform 0.3s ease;
  position: relative;
}
.card:hover {
  transform: translateY(-6px);
  -webkit-transform: translateY(-6px);
  box-shadow: 0 10px 32px #2dd4bf44;
}
.card i {
  font-size: 1.8rem;
  color: #facc15;
  margin-bottom: 1rem;
  display: inline-block;
}
.card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #67e8f9;
}
.card p {
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.5;
}

/* Projects */
.page .project-credits {
  display: flex;
  display: -webkit-flex;
  flex-wrap: wrap;
  -webkit-flex-wrap: wrap;
  gap: 2rem;
  margin-top: 4rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.page .credit-block {
  flex: 1 1 300px;
  -webkit-flex: 1 1 300px;
}
.page .credit-card {
  flex: 1 1 300px;
  -webkit-flex: 1 1 300px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.02);
}
.page .credit-title {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  font-weight: 400;
  color: #88ccff;
  opacity: 0.6;
  letter-spacing: 0.4px;
}
.page .credit-content {
  display: flex;
  display: -webkit-flex;
  gap: 1rem;
  align-items: flex-start;
  -webkit-align-items: flex-start;
}
.page .credit-avatar {
  width: 72px;
  height: 72px;
  border-radius: 1em;
  object-fit: cover;
  border: 2px solid rgba(0, 255, 255, 0.2);
  box-shadow: 0 0 8px rgba(0, 255, 255, 0.15);
  flex-shrink: 0;
  -webkit-flex-shrink: 0;
}
.page .credit-avatar.client {
  border-radius: 1em;
  background-color: white;
  object-fit: contain;
}
.page .credit-text {
  flex: 1;
  -webkit-flex: 1;
  font-size: 0.9rem;
  color: #ccddee;
  opacity: 0.9;
  line-height: 1.5;
}
.page .credit-text p {
  padding: inherit;
  font-size: inherit;
}
.page .credit-name {
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.25rem;
}
.page .credit-role {
  font-size: 0.85rem;
  color: #88ccff;
  font-style: italic;
  margin-bottom: 0.5rem;
}
.page .credit-link {
  font-size: 0.85rem;
  color: #20C9D2;
  font-weight: 500;
  display: inline-block;
  margin-bottom: 0.75rem;
  text-decoration: none;
}
.page .credit-link:hover {
  text-decoration: underline;
  color: #40e4e4;
}
.page .credit-quote {
  font-size: 0.9rem;
  font-style: italic;
  color: #ccddee;
  opacity: 0.85;
  margin: 0;
}
.page .credit-quote footer {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  font-style: normal;
  color: #88ccff;
}
/* Mobile responsiveness */
@media (max-width: 768px) {
  .page .credit-content {
    flex-direction: column;
    -webkit-flex-direction: column;
    align-items: flex-start;
    -webkit-align-items: flex-start;
  }
  .page .credit-avatar {
    width: 64px;
    height: 64px;
  }
}

/* Tools We Trust */
.tech-stack-section h2 {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  background: linear-gradient(90deg, #20C9D2, #2AE9BB);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}
.tech-stack-section h3 {
  margin-top: 1em;
}
.tech-stack-section p {
  max-width: 800px;
  margin: 0 auto 3rem auto;
  font-size: 1.1rem;
  color: #c0c0c0;
}
.tech-stack-section .tech-stack-columns {
  display: grid;
  display: -ms-grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  -ms-grid-columns: (1fr)[auto-fit];
  gap: 2rem;
  justify-content: center;
  -webkit-justify-content: center;
  margin-top: 2rem;
}
.tech-stack-section .tech-stack-col {
  background: #0F1C2A;
  border: 1px solid #1A2B3D;
  border-radius: 12px;
  padding: 0 1.5em;
  text-align: left;
  box-shadow: 0 0 12px #20C9D220;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  -webkit-transition: -webkit-transform 0.2s ease, box-shadow 0.2s ease;
}
.tech-stack-section .tech-stack-col:hover {
  transform: translateY(-4px);
  -webkit-transform: translateY(-4px);
  box-shadow: 0 0 16px #20C9D240;
}
.tech-stack-section .tech-stack-col h3 {
  font-size: 1.4rem;
  color: #FFD464;
  margin-bottom: 1rem;
}
.tech-stack-section .tech-stack-col ul {
  padding: 0;
}
.tech-stack-section .tech-stack-col li {
  list-style-type: none;
  padding: 0;
}
.tech-stack-section .tech-stack-col li::before {
  display: none;
}
.tech-stack-section .suggested {
  font-size: 0.8em;
  color: #FFD464;
  margin-left: 0.5em;
  background: #FFD46422;
  padding: 0.2em 0.5em;
  border-radius: 4px;
  font-weight: 600;
  text-shadow: 0 0 4px #FFD46455;
}

/* Tablet layout */
@media (min-width: 786px) {
  .page {
    display: flex;
    display: -webkit-flex;
  }
  .page .page-container {
    padding: 1em 8em 2em 8em;
  }
  .actions-section {
    flex-direction: row;
    -webkit-flex-direction: row;
  }
}

/* Desktop Layout */
@media (min-width: 1400px) {
  .page {
    display: flex;
    display: -webkit-flex;
  }
  .page .page-container {
    padding: 1em 16em 4em 16em;
  }
}

