/* =========================================================================
   PAGE: CAPABILITIES/SMART-CONTRACT-DEVELOPMENT
   ========================================================================= */

/* ---- Smart Contract Hero Block ---- */
/* Scoped under #smart-contract-hero for encapsulation */

#smart-contract-hero {
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
  background: #090909;
}

/* Background image layer */
#smart-contract-hero .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

#smart-contract-hero .hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(100%);
}

/* Dark blur overlay */
#smart-contract-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 2;
}

/* Fractal noise (film grain) overlay matching SVG feTurbulence */
#smart-contract-hero .hero-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.12; 
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: 3;
}

/* Content container */
#smart-contract-hero .hero-content {
  position: relative;
  z-index: 10;
  max-width: var(--max-width-wide, 1312px);
  padding: 8rem 1.25rem 4rem;
  width: 100%;
}

@media (min-width: 768px) {
  #smart-contract-hero .hero-content {
    padding: 8rem 2.5rem 5rem;
  }
}

@media (min-width: 1024px) {
  #smart-contract-hero .hero-content {
    padding: 10rem 2.5rem 6rem; 
  }
}

@media (min-width: 1392px) {
  #smart-contract-hero .hero-content {
    padding: 10rem 0 6rem; 
  }
}

/* Title */
#smart-contract-hero .hero-title {
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: clamp(32px, 4.5vw, 60px);
  font-weight: var(--fw-medium);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  max-width: 1000px;
}

@media (min-width: 768px) {
  #smart-contract-hero .hero-title {
    margin-bottom: 2rem;
  }
}

/* Subtitle */
#smart-contract-hero .hero-subtitle {
  max-width: 800px;
  font-family: var(--font-sans);
  font-weight: var(--fw-normal);
  font-size: clamp(14px, 2vw, 24px);
  color: #B3B3B3;
  line-height: 1.4;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  #smart-contract-hero .hero-subtitle {
    margin-bottom: 3rem;
  }
}

/* CTA Button */
#smart-contract-hero .hero-cta {
  font-family: var(--font-sans);
  font-size: clamp(14px, 1.2vw, 16px);
  font-weight: var(--fw-medium);
  padding: 12px 24px;
  border-radius: var(--radius);
}

@media (min-width: 1024px) {
  #smart-contract-hero .hero-cta {
    padding: 18px 32px;
  }
}

/* Metrics Grid */
#smart-contract-hero .hero-metrics {
  margin-top: 5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 3rem;
}

@media (min-width: 768px) {
  #smart-contract-hero .hero-metrics {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 8rem;
  }
}

#smart-contract-hero .metric-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

#smart-contract-hero .metric-title {
  font-family: var(--font-sans);
  font-weight: var(--fw-semibold, 600);
  font-size: clamp(18px, 2vw, 24px);
  color: #ffffff;
}

#smart-contract-hero .metric-desc {
  font-family: var(--font-sans);
  font-size: clamp(14px, 1.2vw, 16px);
  color: #8c8c8c;
  line-height: 1.5;
  margin: 0;
}


/* ---- Smart Contract Standards Block ---- */
/* Scoped under #smart-contract-standards */

#smart-contract-standards {
  background-color: #ffffff;
  overflow: hidden;
  padding: clamp(80px, 10vw, 120px) 0;
}

/* Header — centered per Figma design */
#smart-contract-standards .standards-header {
  text-align: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

#smart-contract-standards .standards-overhead {
  font-family: var(--font-sans);
  font-size: clamp(14px, 1.5vw, 18px);
  color: #8F8F8F;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  font-weight: var(--fw-normal, 400);
}

#smart-contract-standards .standards-title {
  font-family: var(--font-sans);
  font-size: clamp(24px, 3.5vw, 48px);
  line-height: 1.4;
  font-weight: var(--fw-normal, 400);
  margin: 0;
}

#smart-contract-standards .text-gray {
  color: #8F8F8F;
}

#smart-contract-standards .text-black {
  color: #212121;
}

/* ---- 4-Column Cards Grid ---- */
#smart-contract-standards .standards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 600px) {
  #smart-contract-standards .standards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  #smart-contract-standards .standards-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

/* ---- Card Styling ---- */
#smart-contract-standards .std-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: transparent;
  border: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, filter;
  cursor: default;
}

#smart-contract-standards .std-card:hover {
  transform: translateY(-6px);
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.06));
}

#smart-contract-standards .std-svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 9px;
}

/* ---- Hidden SEO text ---- */
#smart-contract-standards .seo-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  white-space: nowrap;
}


/* ---- Smart Contract Chains Block ---- */
#smart-contract-chains {
  background-color: #ffffff;
  padding: clamp(60px, 8vw, 100px) 0;
  overflow: hidden;
  position: relative;
}

#smart-contract-chains .chains-header {
  text-align: center;
  margin-bottom: clamp(60px, 8vw, 100px);
  padding: 0 20px;
}

#smart-contract-chains .chains-overhead {
  font-family: var(--font-sans);
  font-size: 18px;
  color: #8F8F8F;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  font-weight: var(--fw-normal, 400);
}

#smart-contract-chains .chains-title {
  font-family: var(--font-sans);
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.2;
  font-weight: var(--fw-normal, 400);
  margin: 0;
}

#smart-contract-chains .text-gray {
  color: #8F8F8F;
}

#smart-contract-chains .text-black {
  color: #272727;
}

/* Marquee Section */
#smart-contract-chains .marquee-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: clamp(60px, 8vw, 100px);
  width: 100%;
}

#smart-contract-chains .marquee-section:last-child {
  margin-bottom: 0;
}

#smart-contract-chains .marquee-badge-container {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 50px;
}

#smart-contract-chains .marquee-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #F5F5F5;
  border: 1px solid #D1D1D1;
  border-radius: 7.5px;
  padding: 6px 16px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  color: #1D1D1D;
  text-transform: uppercase;
}

/* Infinite Marquee Animation */
#smart-contract-chains .marquee-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  /* Optional: soft fade at edges */
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

#smart-contract-chains .marquee-track {
  display: flex;
  flex-direction: row;
  width: max-content;
  will-change: transform;
}

#smart-contract-chains .track-left {
  animation: scroll-left 50s linear infinite;
}

#smart-contract-chains .track-right {
  animation: scroll-right 50s linear infinite;
}

/* Pause on hover */
#smart-contract-chains .marquee-track:hover {
  animation-play-state: paused;
}

#smart-contract-chains .marquee-content {
  display: flex;
  flex-direction: row;
  align-items: center;
}

#smart-contract-chains .marquee-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
  height: 80px;
  filter: grayscale(100%) opacity(0.7);
  transition: filter 0.3s ease, transform 0.3s ease;
  /* Override global marquee.css */
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  flex-shrink: 0;
}

#smart-contract-chains .marquee-item:hover {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.05);
}

#smart-contract-chains .marquee-item img {
  height: 100%;
  max-height: 52px;
  width: auto;
  object-fit: contain;
}

#smart-contract-chains .marquee-divider {
  width: 1px;
  height: 80px;
  background-color: #C6C6C6;
  flex-shrink: 0;
}

/* Keyframes */
@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes scroll-right {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

/* Responsive Scaling */
@media (max-width: 768px) {
  #smart-contract-chains .marquee-item {
    padding: 0 20px;
    height: 50px;
  }
  
  #smart-contract-chains .marquee-item img {
    max-height: 36px;
  }
  
  #smart-contract-chains .marquee-divider {
    height: 50px;
  }
}


/* ---- Smart Contract Shipped Block ---- */
#smart-contract-shipped {
  background-color: #ffffff;
  padding: clamp(60px, 8vw, 100px) 0;
}

#smart-contract-shipped .sc-header {
  text-align: center;
  margin-bottom: clamp(50px, 6vw, 80px);
}

#smart-contract-shipped .sc-overhead {
  font-family: var(--font-sans);
  font-size: clamp(12px, 1.2vw, 18px);
  color: #8F8F8F;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  font-weight: var(--fw-normal, 400);
}

#smart-contract-shipped .sc-title {
  font-family: var(--font-sans);
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.2;
  font-weight: var(--fw-normal, 400);
  margin: 0;
}

#smart-contract-shipped .text-gray {
  color: #8F8F8F;
}

#smart-contract-shipped .text-black {
  color: #272727;
}

/* ---- Grid Layout ---- */
#smart-contract-shipped .sc-project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  #smart-contract-shipped .sc-project-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  #smart-contract-shipped .sc-project-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---- Style 2 — SVG Card ---- */
#smart-contract-shipped .sc-card {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: contain;
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease;
}

#smart-contract-shipped .sc-card:hover {
  transform: translateY(-6px);
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.08));
}


#smart-contracts-section-4 {
  position: relative;
  background-color: var(--color-bg);
  overflow: hidden;
  padding: 5rem 0;
}

@media (min-width: 1024px) {
  #smart-contracts-section-4 {
    padding: 8rem 0;
  }
}

#smart-contracts-section-4 .bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

#smart-contracts-section-4 .bg-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

#smart-contracts-section-4 .bg-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: linear-gradient(to bottom, var(--color-bg-gray) 0%, rgba(250, 250, 250, 0) 100%);
  z-index: 2;
}

#smart-contracts-section-4 .content-wrapper {
  position: relative;
  z-index: 10;
}

#smart-contracts-section-4 .title {
  color: #272727;
  text-align: center;
  margin-bottom: 3rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

@media (min-width: 1024px) {
  #smart-contracts-section-4 .title {
    margin-bottom: 5rem;
  }
}

#smart-contracts-section-4 .details-grid {
  margin-bottom: 4rem;
  align-items: stretch;
}

@media (min-width: 1024px) {
  #smart-contracts-section-4 .details-grid {
    margin-bottom: 6rem;
  }
}

#smart-contracts-section-4 .detail-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #FDFDFD;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 12px;
  padding: 1.5rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.05); /* Soft shadow */
}

#smart-contracts-section-4 .detail-card .duration {
  color: #3D3D3D;
  font-size: 1.125rem;
  font-weight: var(--fw-medium);
}

#smart-contracts-section-4 .detail-card .description {
  color: #838383;
  font-size: 1rem;
}

#smart-contracts-section-4 .buttons-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

#smart-contracts-section-4 .btn-primary {
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: var(--fw-normal);
  border-radius: 8px;
}

#smart-contracts-section-4 .btn-text {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--red-2);
  font-size: 1rem;
  font-weight: var(--fw-normal);
  transition: opacity 0.3s;
}

#smart-contracts-section-4 .btn-text:hover {
  opacity: 0.8;
}

#smart-contracts-section-4 .btn-text .arrow {
  transition: transform 0.3s;
}

#smart-contracts-section-4 .btn-text:hover .arrow {
  transform: translateX(4px);
}


