@tailwind base;
@tailwind components;
@tailwind utilities;

/* ============================================
   Font Face Declarations — Variable Font
   ============================================ */
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/fonts/PlusJakartaSans-Variable.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/fonts/PlusJakartaSans-LatinExt.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ============================================
   Base Layer
   ============================================ */
@layer base {
  html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
  }

  body {
    overflow-x: hidden;
  }

  h1, h2, h3, h4, h5, h6 {
    @apply font-heading text-dark-text;
  }

  h1 { @apply text-h1; }
  h2 { @apply text-h2; }
  h3 { @apply text-h3; }
  h4 { @apply text-h4; }

  a {
    @apply transition-colors duration-200;
  }

  /* Visible focus ring for keyboard navigation */
  :focus-visible {
    @apply outline-2 outline-offset-2 outline-accent-yellow;
  }

  img {
    @apply max-w-full h-auto;
  }
}

/* ============================================
   Component Layer
   ============================================ */
@layer components {
  /* Yellow brush/marker highlight on key words in headings */
  .highlight {
    background: linear-gradient(180deg, transparent 50%, #FFC107 50%);
    padding: 0 0.15em;
  }

  /* Yellow text color highlight (no background) */
  .highlight-text {
    color: #fbd125;
  }

  /* Container utility */
  .container-custom {
    @apply max-w-container mx-auto px-4 sm:px-6 lg:px-8;
  }

  /* Section padding */
  .section-padding {
    @apply py-section lg:py-section-lg;
  }

  /* Card base */
  .card {
    @apply bg-white rounded-card shadow-card transition-shadow duration-300;
  }

  .card:hover {
    @apply shadow-card-hover;
  }

  /* Button base */
  .btn {
    @apply inline-flex items-center justify-center px-6 py-3 rounded-btn font-semibold text-sm transition-all duration-200;
  }

  .btn-primary {
    @apply btn bg-accent-yellow text-primary-dark hover:brightness-110;
  }

  .btn-dark {
    @apply btn bg-primary-dark text-white hover:bg-opacity-90;
  }

  .btn-outline {
    @apply btn border-2 border-primary-dark text-primary-dark hover:bg-primary-dark hover:text-white;
  }
}

/* ============================================
   Article Prose Styles
   ============================================ */
.article-prose {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #374151;
}

.article-prose p {
  margin-bottom: 1.5em;
}

.article-prose h2 {
  font-size: 1.625rem;
  line-height: 1.3;
  font-weight: 700;
  color: #141B34;
  margin-top: 2.5em;
  margin-bottom: 0.75em;
  scroll-margin-top: 6rem;
}

.article-prose h3 {
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 600;
  color: #141B34;
  margin-top: 2em;
  margin-bottom: 0.5em;
  scroll-margin-top: 6rem;
}

.article-prose h4 {
  font-size: 1.125rem;
  line-height: 1.5;
  font-weight: 600;
  color: #141B34;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.article-prose ul,
.article-prose ol {
  margin-bottom: 1.5em;
  padding-left: 1.5em;
}

.article-prose ul {
  list-style-type: disc;
}

.article-prose ol {
  list-style-type: decimal;
}

.article-prose li {
  margin-bottom: 0.5em;
  padding-left: 0.25em;
}

.article-prose li strong {
  color: #141B34;
}

.article-prose blockquote {
  border-left: 4px solid #FFC107;
  background-color: #FFFBEB;
  padding: 1.25em 1.5em;
  margin: 1.5em 0;
  border-radius: 0 0.75rem 0.75rem 0;
}

.article-prose blockquote p {
  font-style: italic;
  color: #1F2937;
  margin-bottom: 0;
}

.article-prose code {
  font-family: 'Fira Code', 'Cascadia Code', 'JetBrains Mono', monospace;
  font-size: 0.875em;
  background-color: #F3F4F6;
  color: #141B34;
  padding: 0.15em 0.4em;
  border-radius: 0.25rem;
}

.article-prose pre {
  background-color: #141B34;
  color: #E5E7EB;
  padding: 1.25em 1.5em;
  border-radius: 0.75rem;
  overflow-x: auto;
  margin: 1.5em 0;
}

.article-prose pre code {
  background: none;
  color: inherit;
  padding: 0;
  font-size: 0.875rem;
  line-height: 1.7;
}

.article-prose img {
  border-radius: 0.75rem;
  margin: 1.5em 0;
  width: 100%;
  height: auto;
}

.article-prose strong {
  font-weight: 600;
  color: #1F2937;
}

.article-prose a {
  color: #141B34;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: #FFC107;
}

.article-prose a:hover {
  color: #FFC107;
}

.article-prose hr {
  border: none;
  border-top: 1px solid #E5E7EB;
  margin: 2em 0;
}

/* TOC active state */
.toc-link.active {
  color: #141B34;
  border-left-color: #FFC107;
  font-weight: 600;
}

.highlights{
  color: #FBD125;
}
.-top-\[150px\] {
  top: -150px;
}
.z-\[-1\] {
  z-index: -1;
}
.ai-bottom-padding{
  padding-bottom: 150px;
}
.ai-robot-illustration {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 10;
}
.team-member-avatar {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    position: relative;
    top: 40px;
}
.Innovative-Web-section{
  background-color: #F9FDFF;
}
.Cm_Gradient_bg{
  background: #A570D6;
  background: linear-gradient(90deg,rgba(165, 112, 214, 1) 0%, rgba(243, 197, 44, 1) 100%);
}
.delivery-websolutions{
  background-color: #000000;
}
.industries_cards{
  background-color: #1D1E21;
  border: solid 1px #4E4F51;
}
.industry-panel{
  background-color: #3B3B3B;
  width: 90px;
  height: 90px;
}
.industries_cards h4 {
    font-size: 20px;
    font-weight: 800;
}
.industries_cards p {
    font-size: 16px;
    line-height: 25px;
}
.projectRequest-text {
    font-size: 16px;
    line-height: 24px;
}
.height-44{
  height: 44px;
}
.height-110{
  height: 130px;
}
.postion-Dw {
    position: absolute;
    bottom: 0;
    right: -190px;
    width: 54%;
    margin: 0 auto;
}
.section-processbgdetail{
  background-image: url(../images/technologies/modern-technologies.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

/* ============================================
   Utility Layer
   ============================================ */
@layer utilities {
  /* Safe area insets for mobile */
  .pb-safe {
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .mb-safe {
    margin-bottom: env(safe-area-inset-bottom, 0);
  }
}

/* ============================================
   Mobile Bottom Nav Spacing
   ============================================ */
@media (max-width: 1023px) {
  body {
    padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px));
  }
}
