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

.text-nabil {
    color: #666;
}

.fcontainer {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fcard-stack {
    position: relative;
    width: 800px;
    height: 380px;
    margin: 0 auto;
}

.fcard {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #0a0a0f;
    border-radius: 60px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    box-shadow:
        0 0 10px #743e80,
        0 0 20px #743e80,
        0 0 30px #743e80;
}

.fcard:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 -15px 35px #743e80, 0 20px 40px rgba(147, 51, 234, 0.3);
}

.fcard-1 {
    transform: translateY(0px) scale(1);
    z-index: 2;
}

.fcard-2 {
    transform: translateY(-20px) scale(0.95);
    z-index: 1;
    opacity: 0.8;
}

.fcard-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    padding: 40px 60px;
    /* gap: 30px; */
    text-align: left;
}

.fcard-sentence {
    color: rgb(255, 255, 255);
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    line-height: 1.6;
    max-width: 730px;
    /* margin-bottom: 20px; */
    padding-top: 38px;
}

.fequation-row {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 20px;
    margin-top: 10px;
}

.fheader-text {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    font-weight: 300;
    line-height: 1.6;
    max-width: 600px;
    z-index: 10;
    display: none;
}

.flogo-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.flogo-img {
    width: 200px;
    height: auto;
}

.flogo {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 24px;
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
}

.flogo-text {
    color: white;
    font-size: 28px;
    font-weight: 600;
}

.flogo-sub {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    margin-top: 4px;
}

.fphone-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fphone {
    width: 90px;
    height: 160px;
    background: linear-gradient(145deg, #2a2a3e, #1a1a2e);
    border-radius: 15px;
    border: 2px solid #333;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.fphone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #1a1a2e, #0f1419);
    border-radius: 13px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.fphone-app {
    width: 25px;
    height: 25px;
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 10px;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
}

.fphone-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 8px;
    text-align: center;
    margin-top: 8px;
}

.fauth-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.fface-id {
    width: 50px;
    height: 50px;
    border: 2px solid #9333ea;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: fpulse 2s infinite;
}

.fface-id::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 25px;
    height: 25px;
    border: 1px solid #9333ea;
    border-radius: 50%;
}

.fface-id::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: #9333ea;
    border-radius: 50%;
}

.fingerprint {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #9333ea, #a855f7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    animation: fglow 2s infinite alternate;
}

.fingerprint::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50 10 C70 10 90 30 90 50 C90 70 70 90 50 90 C30 90 10 70 10 50 C10 30 30 10 50 10 Z M50 25 C60 25 75 35 75 50 C75 65 60 75 50 75 C40 75 25 65 25 50 C25 35 40 25 50 25 Z M50 40 C55 40 60 45 60 50 C60 55 55 60 50 60 C45 60 40 55 40 50 C40 45 45 40 50 40 Z" fill="none" stroke="white" stroke-width="2"/></svg>') center/cover;
    opacity: 0.8;
}

.fequals {
    color: white;
    font-size: 60px;
    font-weight: 500;
    margin-right: 20px;
}

.fplus {
    color: white;
    font-size: 60px;
    font-weight: 500;
    margin-left: 45px;
}

.fauth-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 8px;
    text-align: center;
    margin-top: 5px;
}

.fphone-img {
    width: 310%;
    height: 20%;
    object-fit: cover;
    object-position: bottom;
    height: 280px;
}

.fid-img {
    width: 250%;
    height: 20%;
    object-fit: cover;
    object-position: bottom;
    height: 280px;
}

@keyframes fpulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

@keyframes fglow {
    0% {
        box-shadow: 0 0 15px rgba(147, 51, 234, 0.5);
    }

    100% {
        box-shadow: 0 0 25px rgba(147, 51, 234, 0.8);
    }
}

.fgradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, rgba(147, 51, 234, 0.3) 0%, transparent 100%);
    z-index: 5;
}


.f2-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    min-height: 100vh;
    gap: 4rem;
}

.f2-content {
    flex: 1;
    max-width: 600px;
}

.f2-title {
    font-size: 3rem;
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #e0e0ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.f2-highlight {
    background: linear-gradient(135deg, #ff6b9d 0%, #c44569 50%, #9b59b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.f2-subtitle {
    font-size: 1.1rem;
    color: rgb(255, 255, 255);
    margin-bottom: 4rem;
    margin-top: 2rem;
    line-height: 1.6;
}

.f2-cta-button {
    background: linear-gradient(135deg, #ff6b9d 0%, #c44569 50%, #9b59b6 100%);
    border: none;
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(255, 107, 157, 0.3);
}

.f2-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(255, 107, 157, 0.4);
    filter: brightness(1.1);
}

.f2-feature-card {
    flex: 1;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.f2-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.f2-icon-container {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(155, 89, 182, 0.4);
}

.f2-fingerprint-icon {
    width: 40px;
    height: 40px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M2 12C2 6.5 6.5 2 12 2a10 10 0 0 1 8 4"/><path d="M5 19.5C5.5 18 6 15 6 12c0-3.5 3.5-6 6-6a4 4 0 0 1 4 4c0 .5.3 1.5 1 3"/><path d="M7 21c2-4 2-8 2-10"/><path d="M10 21c1-3 1-6 1-8"/><path d="M12 21c0-1 0-3 0-5"/></svg>') no-repeat center center;
    background-size: contain;
    opacity: 0.9;
}

.f2-feature-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #e0e0ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.f2-feature-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.f2-feature-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.f2-background-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.f2-glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

.f2-glow-orb-1 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #ff6b9d, #c44569);
    top: 20%;
    right: 10%;
    animation-delay: 0s;
}

.f2-glow-orb-2 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    bottom: 30%;
    left: 15%;
    animation-delay: 2s;
}

.f2-glow-orb-3 {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    top: 50%;
    left: 50%;
    animation-delay: 4s;
}


/* =======================for second section======================== */


/* Stacked Cards Styles */
.cards-container {
    position: relative;
    width: 500px;
    height: 480px;
    /* padding-top: 0px; */
}

.feature-card {
    background: #0a0a0f;
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 24px;
    width: 500px;
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: absolute;
    backdrop-filter: blur(10px);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Card Background Images - Using CSS gradients as placeholders */
.feature-card:nth-child(1) {
    background-image: url(../img/features/OTSK.jpg);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 4;
    transform: translate(0px, 0px) scale(1);
    opacity: 1;
    top: 80px;
}

.feature-card:nth-child(2) {
    background-image: url(../img/features/MIRC.jpg);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 3;
    transform: translate(0px, 0px) scale(0.95);
    opacity: 0.9;
    top: 60px;
}

.feature-card:nth-child(3) {
    background-image: url(../img/features/MDV.jpg);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 2;
    transform: translate(0px, 0px) scale(0.9);
    opacity: 0.8;
    top: 40px;
}

.feature-card:nth-child(4) {
    background-image: url(../img/features/KNChain.jpg);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    transform: translate(0px, 0px) scale(0.85);
    opacity: 0.7;
    top: 20px;
}

.feature-card.active {
    z-index: 10;
    transform: translate(0px, 0px);
    opacity: 1;
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.2);
    /* background: #0a0a0f; */
}

.feature-card:hover {
    transform: translate(0px, -5px);
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: 0 25px 70px rgba(139, 92, 246, 0.3);
}

.feature-card.active:hover {
    transform: translate(0px, -5px);
}

.feature-icon {
    /* margin-bottom: 30px; */
    position: relative;
}

.feature-icon img {
    width: 100%;
}

.feature-card h3 {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 8px;
    text-align: center;
}

.content-section {
    flex: 1;
}

.content-section h2 {
    font-size: 34px;
    /* font-weight: 700; */
    margin-bottom: 24px;
    color: white;
}

.content-section p {
    font-size: 16px;
    /* color: #a0a0a0; */
    line-height: 1.6;
    margin-bottom: 32px;
}

.button-container {
    position: relative;
}

/* Card Content */
.card-content {
    margin-top: auto;
    text-align: center;
    padding: 40px;
}

.card-number {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 16px;
    font-weight: 500;
}

.card-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: white;
}

.card-description {
    font-size: 0.9rem;
    color: rgb(255, 255, 255);
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .row {
        flex-direction: column;
        /* gap: 40px; */
        text-align: center;
    }

    .f2-content h2 {
        font-size: 2.5rem;
    }

    .cards-container {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }

    .feature-card {
        width: 100%;
        max-width: 350px;
    }
}

/* Animation for entrance */
.feature-section {
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) scale(1);
    }

    50% {
        transform: translateY(-20px) scale(1.1);
    }
}

@media (max-width: 768px) {
    .f2-container {
        flex-direction: column;
        padding: 2rem 1rem;
        gap: 2rem;
    }

    .f2-title {
        font-size: 2.5rem;
    }

    .f2-feature-card {
        padding: 2rem;
    }
}


/* Mobile view adjustments for card content */
@media (max-width: 768px) {
    .fcard-stack {
        width: 90%;
        max-width: 400px;
        height: 2000px;
    }

    .fcard {
        width: 100%;
        height: 2000px;
        border-radius: 40px;
        overflow: hidden;
    }

    .fcard-content {
        padding: 25px 20px 25px 20px;
        height: 100%;
        justify-content: flex-start;
        overflow: hidden;
    }

    .fcard-sentence {
        font-size: 15px;
        padding-top: 0;
        margin-bottom: 25px;
        text-align: center;
        line-height: 1.4;
    }

    .fequation-row {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin-top: 15px;
        width: 100%;
    }

    .flogo-section {
        order: 1;
        justify-content: center;
    }

    .flogo-img {
        width: 180px;
        height: auto;
    }

    .fequals {
        order: 2;
        font-size: 45px;
        margin: 10px 0;
    }

    /* Phone section */
    .fphone-section {
        order: 3;
    }

    .fphone-img {
        width: 500px;
        height: auto;
        max-width: none;
    }

    .fplus {
        margin-top: -25px;
        order: 4;
        font-size: 45px;
        margin: 10px 0;
    }

    /* Auth/ID section */
    .fauth-section {
        order: 5;
        gap: 10px;
    }

    .fid-img {
        width: 500px;
        height: auto;
        max-width: none;
    }

    .fcard-1 {
        transform: translateY(0px) scale(1);
        z-index: 2;
        position: absolute;
        top: 0;
    }

    .fcard-2 {
        transform: translateY(-15px) scale(0.96);
        z-index: 1;
        opacity: 0.8;
        position: absolute;
        top: 0;
    }
}

@media (max-width: 480px) {
    .fcard-stack {
        width: 95%;
        max-width: 350px;
        height: 1050px;
    }

    .fcard {
        height: 880px;
        overflow: hidden;
    }

    .fcard-sentence {
        font-size: 13px;
        line-height: 1.7;
        margin-bottom: 20px;
        margin-top: 20px;
    }

    .flogo-img {
        width: 200px;
        margin-bottom: 30px;
    }

    .fequals,
    .fplus {
        font-size: 40px;
        margin: -40px 0;
    }

    .fphone-img {
        width: 500px;
        margin-left: 30px;
        margin-bottom: 30px;
        margin-top: -1px;
    }

    .fid-img {
        width: 500px;
    }

    .fequation-row {
        gap: 0px;
    }

    .fcard-content {
        padding: 20px 15px 20px 15px;
    }
}

@media (max-width: 767.98px) {
    .our-partner-section.pt-100 {
        padding-top: 100px !important;
        margin-bottom: -200px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .our-partner-section.pt-100 {
        padding-top: 180px !important;
    }
}

@media (max-width: 767.98px) {
    .feature-item {
        margin-left: 10px;
    }
}