/* Functional Section Styles - Enhanced to match Landing Page */
.ar-functional-section {
    font-family: 'Montserrat', sans-serif;
    padding: 100px 0;
    background-color: #fff;
    overflow: hidden;
    margin-bottom: -100px;
}

.ar-container {
    position: relative;
    z-index: 1;
}

.ar-section-title {
    color: #10B981;
    font-weight: 800;
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 50px;
}

.ar-tabs-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 70px;
    padding: 10px 0;
}

.ar-tab-btn {
    background-color: #ECFDF5;
    color: #10B981;
    border: none;
    padding: 14px 35px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.ar-tab-btn.active {
    background-color: #10B981;
    color: #fff;
    box-shadow: 0 12px 24px rgba(16, 185, 129, 0.35);
    transform: translateY(-2px);
}

.ar-display-area {
    position: relative;
    min-height: 600px;
}

.ar-circle-bg {
    position: absolute;
    width: 650px;
    height: 650px;
    background-color: #f8f8f8;
    border-radius: 50%;
    top: 50%;
    right: -120px;
    transform: translateY(-50%);
    z-index: 1;
}

.ar-phone-mockup {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 340px;
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.18));
    transition: all 0.5s ease;
}

.ar-info-card {
    background: #fff;
    padding: 50px;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.07);
    position: relative;
    z-index: 10;
    max-width: 500px;
    margin-top: 80px;
    transition: all 0.5s ease;
}

.ar-info-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -140px;
    width: 140px;
    height: 100px;
    border-top: 2px dashed #A7F3D0;
    border-left: 2px dashed #A7F3D0;
    border-top-left-radius: 120px;
    transform: translateY(-100%);
    z-index: -1;
}

.ar-card-dot {
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background-color: #10B981;
    border: 5px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
}

.ar-info-card h3 {
    color: #10B981;
    font-weight: 800;
    font-size: 2.4rem;
    margin-bottom: 20px;
}

.ar-info-card p {
    color: #555555;
    line-height: 1.7;
    font-size: 1.05rem;
    margin-bottom: 0;
}

.ar-frame-container {
    position: absolute;
    right: 0;
    top: 55%;
    transform: translateY(-50%);
    z-index: 2;
    width: 380px;
    transition: all 0.5s ease;
}

.ar-frame-img {
    width: 100%;
    border: 18px solid #111;
    box-shadow: 30px 30px 60px rgba(0, 0, 0, 0.25);
}

.ar-fade-state {
    opacity: 0;
    transform: translateY(20px);
}

/* Responsive Design */
@media (max-width: 991px) {
    .ar-section-title {
        font-size: 2.2rem;
        margin-bottom: 35px;
    }

    .ar-display-area {
        display: flex;
        flex-direction: column;
        min-height: auto;
    }

    .ar-phone-mockup {
        max-width: 300px;
        margin: 0 auto 20px;
        /* Added spacing below phone */
        display: block;
    }

    .ar-info-card {
        margin-top: 0;
        /* Removed overlap */
        padding: 15px 20px;
        text-align: center;
        max-width: 320px;
        width: 95%;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 20px;
        /* Added spacing below card */
        position: relative;
        z-index: 10;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
        border-radius: 12px;
    }

    /* Compact Typography */
    .ar-info-card h3 {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }

    .ar-info-card p {
        font-size: 0.85rem;
        line-height: 1.4;
        color: #777;
        margin-bottom: 0;
    }

    /* Curved connecting line - Extended to cross the gap */
    .ar-info-card::before {
        display: block;
        content: '';
        position: absolute;
        width: 60px;
        height: 70px;
        /* Taller to reach phone */
        border: none;
        border-right: 2px dashed #10B981;
        border-top: 2px dashed #10B981;
        border-top-right-radius: 60px;
        top: -60px;
        /* Moved up */
        right: -10px;
        transform: rotate(10deg);
        z-index: -1;
        left: auto;
    }

    /* Yellow Dot */
    .ar-info-card::after {
        content: '';
        position: absolute;
        right: -8px;
        top: 15px;
        width: 14px;
        height: 14px;
        background: #10B981;
        border: 2px solid #fff;
        border-radius: 50%;
        box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
        display: block;
    }

    .ar-card-dot,
    .ar-circle-bg {
        display: none;
    }

    .ar-frame-container {
        position: relative;
        top: 0;
        transform: none;
        width: 100%;
        max-width: 320px;
        margin: 0 auto 0;
        /* Removed overlap */
        z-index: 5;
    }
}

@media (max-width: 767px) {
    .ar-functional-section {
        padding: 60px 15px;
    }

    .ar-tabs-container {
        justify-content: center;
        flex-wrap: wrap;
        /* Wrap tabs */
        overflow-x: visible;
        /* Remove scroll */
        padding: 0;
        margin-bottom: 40px;
        gap: 12px;
    }

    .ar-tab-btn {
        padding: 14px 20px;
        /* Reduced padding */
        font-size: 0.95rem;
        width: calc(50% - 12px);
        /* 2 items per row with gap */
        text-align: center;
        border-radius: 10px;
    }
}