/* Smart Contract Page Styles */
/* Based on Figma design: Smart Contract Development page */

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Sora', sans-serif;
    background-color: #121212;
    color: #FFFFFF;
    line-height: 1.6;
}

/* Hero Banner Section Styles */
/* Thiết kế theo Figma: Hero banner với background image, overlay gradient và content */

/* Container chính của hero banner */
.hero-banner {
    position: relative;
    width: 100%;
    height: 800px;
    overflow: visible; /* Thay đổi từ hidden thành visible để text không bị cắt */
}

/* Background section với image và overlay */
.hero-banner__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Background image */
/* Lật ảnh background 180 độ bằng transform: rotate(180deg) */
/* Sử dụng pseudo-element để không ảnh hưởng đến layout của .hero-banner__image */
.hero-banner__image {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('../../assets/images/hero-bg-s.webp');
    background-size: cover;
    background-position:  center; 
    background-repeat: no-repeat;
}

.hero-banner__overlay {
    position: absolute;
    width: 100%; /* Thay đổi từ 1096px cố định thành 100% */
    height: 100%;
    left: 0px;
    bottom: 0px;
    background-image:
        url('../../assets/images/sandtexture.svg'),
        linear-gradient(
            90deg,
            #252525 0%, /* Bắt đầu từ 0% thay vì 77.33% */
            #252525 40%, /* Tạo vùng tối rõ ràng */
            rgba(37, 37, 37, 0.9) 60%,
            rgba(37, 37, 37, 0.7) 70%,
            rgba(37, 37, 37, 0.5) 80%,
            rgba(37, 37, 37, 0.3) 90%,
            rgba(37, 37, 37, 0.1) 95%,
            rgba(37, 37, 37, 0) 100% /* Kết thúc hoàn toàn trong suốt */
        );
    background-size: cover, 100% 100%;
    background-position: center, left center;
    background-repeat: no-repeat, no-repeat;
}

/* Decorative ellipse */
.hero-banner__background::before {
    content: '';
    position: absolute;
    top: -303px;
    left: 71px;
    width: 746px;
    height: 746px;
    background: radial-gradient(
        circle,
        rgba(217, 217, 217, 1) 0%,
        rgba(115, 115, 115, 0) 100%
    );
    opacity: 0.5;
    border-radius: 50%;
}

/* Decorative overlay element */
.hero-banner__decor {
    position: absolute;
    left: 71px;
    z-index: 1;
    opacity: 1;
}

.hero-banner__decor img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Content section chính */
.hero-banner__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    height: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 64px;
}

.hero-banner__title {
    font-size: 80px;
    font-weight: 700;
    line-height: 1.2em;
    letter-spacing: -0.02em;
    color: #FFFFFF;
    max-width: 772px;
    margin-bottom: 32px;
}

.hero-banner__description {
    font-size: 24px;
    font-weight: 300;
    line-height: 1.5em;
    color: #A5A5A5;
    max-width: 772px;
    margin-bottom: 48px;
}

.hero-banner__description span {
    color: #FFFFFF;
    font-weight: 400;
}



/* Bottom section với status và binary text */
.hero-banner__bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 69.52px;
    background: rgba(0, 0, 0, 0.03);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Status section bên trái */
.hero-banner__status {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-left:64px ;
}

.hero-banner__status-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-banner__status-icon svg {
    width: 20px;
    height: 20px;
}

.hero-banner__status-icon path {
    stroke: #A5A5A5;
}

.hero-banner__status-text {
    font-family: 'Sora', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 1.26em;
    color: #3D3D3D;
}

/* Hiển thị cả khoảng trắng (white space) trong binary text section */
/* Sử dụng white-space: pre để giữ nguyên khoảng trắng và xuống dòng nếu có */
.code-patterns {
    display: flex;
    flex-direction: row;
    gap: 0;
    font-family: 'Sora', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 1.26em;
    color: #727272;
    text-align: center;
    flex: 1;
    justify-content: center;
}

.code-line {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    /* Đảm bảo hiển thị khoảng trắng trong nội dung */
    white-space: pre;
}

/* Vector element bên phải */
.hero-banner__vector {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 64px;
}

/* Right Sidebar Section */
.right-sidebar {
    padding: 100px 64px;
    background-color: #121212;
    display: flex;
    justify-content: center;
}

.right-sidebar__container {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.right-sidebar__card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    width: 100%;
    justify-content: center;
}

.right-sidebar__header {
    background-image: url('../../assets/images/card-image.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 48px;
    width: 1312px;
    height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
}

.right-sidebar__title {
    font-size: 40px;
    font-weight: 600;
    line-height: 1.6em;
    text-transform: uppercase;
    text-align: center;
    color: #FFFFFF;
}

.right-sidebar__subtitle {
    font-size: 24px;
    font-weight: 300;
    line-height: 1.6em;
    text-align: center;
    color: #A5A5A5;
}

.right-sidebar__items {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    justify-content: center;
    width: 100%;
}

.right-sidebar__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 100px;
    padding: 64px 32px;
    width: 437px;
    height: 400px;
    border: 1px solid #232325;
    justify-content: center;
}

.right-sidebar__item-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.right-sidebar__item-text {
    font-size: 20px;
    font-weight: 300;
    line-height: 1.6em;
    text-align: center;
    color: #FFFFFF;
    max-width: 373px;
}

/* Details Section */
.details-section {
    padding: 100px 64px;
    background-color: #121212;
    display: flex;
    justify-content: center;
}

.details-section__container {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.details-section__card {
    display: flex;
    width: 100%;
    align-self: stretch;
    justify-content: center;
}

.details-section__header {
    background-image: url('../../assets/images/card-image.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 48px;
    width: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
}

.details-section__title {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.6em;
    text-transform: uppercase;
    text-align: center;
    color: #FFFFFF;
    width: 293px;
    margin-left: auto;
    margin-right: auto;
}

.details-section__content {
    display: flex;
    flex-direction: column;
    width: 912px;
}

.details-section__item {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    gap: 40px;
    padding: 48px;
    border: 1px solid #232325;
    
}

.details-section__item:first-child {
    height: 227px;
}

.details-section__item-title {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.26em;
    color: #FFFFFF;
}

.details-section__item-text {
    font-size: 20px;
    font-weight: 300;
    line-height: 1.6em;
    color: #A5A5A5;
}

/* === ACHIEVEMENTS SECTION === */
.achievements {
    width: 100%;
    background: #121212; /* page background for this section */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px 64px; /* match other sections spacing */
}

/* Inner card that preserves original design */
.achievements-card {
    width: 100%;
    max-width: 1312.37px;
    background: #161616;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 179px;
    padding: 64px 48px;
    overflow: hidden;
    position: relative;
}

.achievements-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../../assets/images/achievement.webp') center/cover no-repeat;
    background-size: cover;
    opacity: 0.4;
}

.achievements-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 179px;
    width: 100%;
}

.section-title{
    font-family: Sora;
    font-weight: 600;
    font-style: SemiBold;
    font-size: 40px;
    line-height: 150%;
    letter-spacing: 0%;
    text-transform: uppercase;
    
    width: 100%;
}

.achievements-text {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
    width: 558px;
    height: 511px;  
}

.achievements-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
   
   
}

.achievements-subtitle {
    font-family: 'Sora', sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: #FFFFFF;
    line-height: 1.5;
    margin: 0;
}

.achievements-description {
    font-family: 'Sora', sans-serif;
    font-size: 24px;
    font-weight: 300;
    color: #A5A5A5;
    line-height: 1.5;
    margin: 0;
  
}

.achievements-number {
    position: relative;
    width: 551.37px;
    height: 515.37px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

.tvl-display {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Số 4 - Vector chính */
.number-4 {
    position: absolute;
    left: 167.09px;
    top: 322.58px;
    width: 150.37px;
    height: 192.79px;
    background: url('../../../assets/images/tvl-number-4.svg') center/contain no-repeat;
    z-index: 3;
}

/* Số 1 - Vector chính */
.number-1 {
    position: absolute;
    left: 0;
    top: 323.08px;
    width: 142.59px;
    height: 187.77px;
    background: url('../../../assets/images/tvl-number-1.svg') center/contain no-repeat;
    z-index: 3;
}

/* Gradient backgrounds cho số 4 */
.tvl-display::before {
    content: '';
    position: absolute;
    left: 169.29px; /* 15.06 + 154.23 */
    top: 159.91px;
    width: 131.29px;
    height: 192.04px;
    background: url('../../../assets/images/tvl-gradient-4-right.svg') center/contain no-repeat;
    opacity: 0.6;
    z-index: 1;
}

.tvl-display::after {
    content: '';
    position: absolute;
    left: 15.06px;
    top: 164.43px; /* 159.91 + 4.52 */
    width: 124.76px;
    height: 187.52px;
    background: url('../../../assets/images/tvl-gradient-4-left.svg') center/contain no-repeat;
    opacity: 0.6;
    z-index: 1;
}

/* Gradient backgrounds cho số 1 */
.number-1::before {
    content: '';
    position: absolute;
    left: 172.8px; /* 12.55 + 160.25 */
    top: -323.08px; /* offset to align with container */
    width: 130.79px;
    height: 189.28px;
    background: url('../../../assets/images/tvl-gradient-1-right.svg') center/contain no-repeat;
    opacity: 0.6;
    z-index: 1;
}

.number-1::after {
    content: '';
    position: absolute;
    left: 12.55px;
    top: -321.82px; /* -323.08 + 1.26 */
    width: 124.76px;
    height: 187.52px;
    background: url('../../../assets/images/tvl-gradient-1-left.svg') center/contain no-repeat;
    opacity: 0.6;
    z-index: 1;
}

/* Text Million Dollars */
.number-text {
    position: absolute;
    left: 337.37px;
    top: 473.2px;
    width: 214px;
    height: 38px;
    font-family: 'Sora', sans-serif;
    font-size: 30.12px;
    font-weight: 300;
    color: #FFFFFF;
    line-height: 1.26;
    margin: 0;
    text-align: left;
} 

/* Contract Types Section */
.contract-types-section {
    padding: 100px 64px;
    background-color: #121212;
    display: flex;
    justify-content: center;
}

.contract-types-section__container {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contract-types-section__card {
    width: 1312px;
    height: 392px;
    border: 1px solid #232325;
    padding: 56px;
    display: flex;
    flex-direction: column;
    gap: 64px;
    position: relative;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
}

.contract-types-section__header {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 64px;
    width: 100%;
}

.contract-types-section__content {
    display: flex;
    flex-direction: column;
    gap: 64px;
    max-width: 732px;
    align-items: center;
}

.contract-types-section__title {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.5em;
    text-transform: uppercase;
    color: #FFFFFF;
    width: 100%;
}

.contract-types-section__description {
    font-size: 20px;
    font-weight: 300;
    line-height: 1.5em;
    color: #A5A5A5;
    max-width: 732px;
}

.contract-types-section__description span {
    color: #FFFFFF;
  
}

.contract-types-section__list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 387px;
    height: 286px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 12px;
    align-items: center;
}

/* Custom scrollbar styling */
.contract-types-section__list::-webkit-scrollbar {
    width: 4px;
}

.contract-types-section__list::-webkit-scrollbar-track {
    background: transparent;
}


.contract-types-section__item {
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: opacity 0.3s ease;
    justify-content: center;
}

.contract-types-section__item--active {
    opacity: 1;
}

.contract-types-section__item:nth-child(2) {
    opacity: 0.7;
}

.contract-types-section__item:nth-child(3) {
    opacity: 0.5;
}

.contract-types-section__item:nth-child(4) {
    opacity: 0.3;
}

.contract-types-section__item:nth-child(5) {
    opacity: 0.1;
}

contract-types-section__item:nth-child(6) {
    opacity: 0.1;
}

.contract-types-section__item:nth-child(7) {
    opacity: 0.1;
}

/* When scrolling, all items should have full opacity */
.contract-types-section__list--scrolling .contract-types-section__item {
    opacity: 1 !important;
}

/* Vertical divider line */
.contract-types-section__divider {
    width: 1px;
    height: 392px;
    background-color: #232325;
    position: absolute;
    left: 802px;
    top: 0;
}

.contract-types-section__item-text {
    font-size: 24px;
    font-weight: 300;
    line-height: 1.5em;
    color: #FFFFFF;
    text-align: center;
}

