/* General Setup */
body {
    font-family: 'Urbanist', sans-serif;
    margin: 0;
    background-color: #FFFFFF;
    color: #4A4A4A;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Reusable Components */
.apti-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.apti-section {
    padding: 6rem 0;
}

.apti-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}

.apti-heading-primary {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #333;
}

.apti-heading-secondary {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #333;
}

.apti-paragraph {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: #555;
    max-width: 550px;
}

.apti-highlight-gradient {
    background: linear-gradient(87deg, #8253C2 18.3%, #F45346 80.97%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.apti-btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.apti-btn-primary {
    background: #611F69;
    color: #fff;
}
.apti-btn-primary:hover {
    background: #4d1954;
    transform: translateY(-2px);
}

.apti-btn-secondary {
    background-color: #fff;
    color: #611F69;
    border-color: #ddd;
}
.apti-btn-secondary:hover {
    border-color: #611F69;
    transform: translateY(-2px);
}

.apti-btn-dark {
    background: #611F69;
    color: #fff;
}
.apti-btn-dark:hover {
    background-color: #4d1954;
    transform: translateY(-2px);
}

.apti-text-center {
    text-align: center;
}

/* Animation Keyframes */
@keyframes floatAnimation {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

/* Section Appear Animation */
.apti-animate-section {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.apti-animate-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* Hero Section */
.apti-hero-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.apti-hero-box {
    max-width: 1350px;
    margin: 0 auto;
    background: #F5F0FD;
    border-radius: 24px;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.apti-hero-flex-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.apti-hero-content {
    flex-basis: 50%;
    z-index: 10;
}

.apti-hero-assessed {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.apti-assessed-faces {
    display: flex;
}

.apti-assessed-faces img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-left: -15px;
    border: 2px solid #fff;
}

.apti-assessed-faces img:first-child {
    margin-left: 0;
}

.apti-hero-assessed p {
    margin: 0;
    font-weight: 500;
}

.apti-hero-image-area {
    flex-basis: 50%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.apti-hero-bg-circles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: 1;
}

.apti-hero-bg-circles .circle {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(206, 186, 209, 0.2);
    top: 70%;
    left: 85%;
    transform: translate(-50%, -50%);
}

.apti-hero-bg-circles .circle-1 {
    width: 900px;
    height: 900px;
    opacity: 0.34;
    background: #CEBAD1;
}

.apti-hero-bg-circles .circle-2 {
    width: 700px;
    height: 700px;
    opacity: 0.34;
    background: #CEBAD1;
}

.apti-hero-bg-circles .circle-3 {
    width: 500px;
    height: 500px;
    opacity: 0.34;
    background: #CEBAD1;
}

.apti-hero-main-img {
    max-width: 400px;
    position: relative;
    top:50px;
    z-index: 5;
}

.apti-hero-icon {
    position: absolute;
    z-index: 6;
    animation: floatAnimation 4s ease-in-out infinite;
}
.apti-hero-icon-1 { top: -2%; left: 10%; width: 100px; animation-delay: 0.5s; }
.apti-hero-icon-2 { top: 2%; right: 3%; width: 180px; animation-delay: 1s; }

.apti-skill-tag {
    position: absolute;
    background: #fff;
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    font-weight: 600;
    z-index: 10;
    animation: floatAnimation 4s ease-in-out infinite;
}
.apti-skill-tag-1 { top: 20%; left: 0; animation-delay: 0s; }
.apti-skill-tag-2 { top: 25%; right: 0; animation-delay: 1.5s; }
.apti-skill-tag-3 { bottom: 35%; left: -5%; animation-delay: 0.5s; }
.apti-skill-tag-4 { bottom: 20%; right: -10%; animation-delay: 1s; }
.apti-skill-tag-5 { bottom: 5%; left: 5%; animation-delay: 2s; }


/* Benefits Section */
.apti-best-bg-section{
    background: #f2effc;
}

.apti-benefits-image-area {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.apti-benefits-main-img {
    max-width: 350px;
    position: relative;
    z-index: 5;
}
.apti-benefit-tag-1 { top: 5%; left: 0; animation-delay: 0s; }
.apti-benefit-tag-2 { top: 10%; right: 0; animation-delay: 1.5s; }
.apti-benefit-tag-3 { top: 45%; right: -5%; animation-delay: 0.5s; }
.apti-benefit-tag-4 { bottom: 10%; right: 0; animation-delay: 1s; }
.apti-benefit-tag-5 { bottom: 15%; left: -10%; animation-delay: 2s; }


.apti-best-bg-circles {
    position: absolute;
    top: 48%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: 1;
}

.apti-best-bg-circles .circles {
    position: absolute;
    border-radius: 50%;
    background:#611F69;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.apti-best-bg-circles .circles-1 {
    width: 380px;
    height: 380px;
    opacity: 0.1;
    background: #611F69;
}
.apti-best-bg-circles .circles-2 {
    width: 300px;
    height: 300px;
    opacity: 0.1;
    background:#611F69;
}

.apti-best-bg-circles .circles-3 {
    width: 200px;
    height: 200px;
    opacity: 0.1;
    background: #611F69;
}

/* CSS Change: Desktop layout for the modified HTML */
.best-apti-grid {
    align-items: start;
}
.best-apti-grid .apti-benefits-image-area {
    grid-column: 1;
    grid-row: 1 / 3;
}
.best-apti-grid .apti-heading-secondary {
    grid-column: 2;
    grid-row: 1;
}
.best-apti-grid .apti-paragraph {
    grid-column: 2;
    grid-row: 2;
    margin-top: 0;
}


/* Measure Section */
.apti-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.apti-list-item {
    font-size: 1.1rem;
    font-weight: 500;
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}


.apti-measure-image-wrapper {
    position: relative;
    height: 450px;
}
.apti-measure-card {
    position: absolute;
    border-radius: 16px;
    width: 80%;
    transition: transform 0.4s ease-in-out;
}
.apti-measure-card-1 { top: 0; left: 0; transform: rotate(-8deg); z-index: 1; }
.apti-measure-card-2 { top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(2deg); z-index: 2; }
.apti-measure-card-3 { bottom: 0; right: 0; transform: rotate(10deg); z-index: 3; }
.apti-measure-image-wrapper:hover .apti-measure-card-1 { transform: rotate(-12deg) scale(1.05) translateX(-20px); }
.apti-measure-image-wrapper:hover .apti-measure-card-2 { transform: translate(-50%, -50%) rotate(0deg) scale(1.05); }
.apti-measure-image-wrapper:hover .apti-measure-card-3 { transform: rotate(15deg) scale(1.05) translateX(20px); }

.apti-banner {
    background: #EFE9F0;
    border-radius: 16px;
    padding: 2rem;
    margin-top: 5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
}
.apti-banner p {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #5B0D5C;
}
.apti-banner-buttons {
    display: flex;
    gap: 1rem;
}


/* Types of Tests Section */
.apti-types-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 4rem;
}
.apti-type-card {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 20px;
    padding: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
}
.apti-type-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
}
.apti-type-card svg {
    margin-bottom: 1.5rem;
}

.apti-type-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #333;
}
.apti-type-card-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}


/* Why Use MyAnatomy's Section */
.apti-dark-purple-bg {
    background: #833AAF;
}
.apti-why-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-bottom: 4rem;
}
.apti-why-header .apti-heading-secondary {
    flex-basis: 60%;
    margin: 0;
}
.apti-why-header .apti-subheading-white {
    flex-basis: 55%;
    margin: 0;
    max-width: none;
}
.apti-text-white {
    color: #fff;
}
.apti-subheading-white {
    color: #E9D5FF;
    font-size: 1.125rem;
    line-height: 1.7;
}
.apti-stats-box {
    background-color: #fff;
    border-radius: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.apti-stat-item {
    padding: 1rem;
    text-align: center;
    position: relative;
}
.apti-stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60px;
    background-color: #e5e7eb;
}
.apti-stat-value {
    font-size: 3rem;
    font-weight: 800;
    color: #66A349;
}
.apti-stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #444;
    margin-top: 0.5rem;
    display: block;
}

/* CTA Section */
.apti-cta-box {
    max-width: 1350px;
    margin: 0 auto;
    background: linear-gradient(35deg, rgba(225, 244, 255, 0.60) 12%, rgba(249, 225, 255, 0.80) 27%, rgba(255, 230, 233, 0.60) 100%);
    border-radius: 24px;
    padding: 4rem 2rem;
    text-align: center;
}
.apti-cta-heading {
    font-size: 2.5rem;
    max-width: 800px;
    margin: 0 auto 1rem auto;
}
.apti-cta-subheading {
    color: #555;
    font-size: 1.2rem;
    margin: 0 auto 2rem auto;
}

/* ------------------------- */
/* Responsive Design Changes */
/* ------------------------- */
@media (max-width: 992px) {
    .apti-grid-2col {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    .apti-hero-flex-container {
        flex-direction: column;
        text-align: center;
    }
    .apti-hero-box {
        padding: 2rem;
    }

    .apti-heading-primary{
        font-size: 2.2rem;
    }
    .apti-heading-secondary {
        font-size: 2rem;
    }

    .apti-hero-content {
        order: 1;
    }
    .apti-hero-image-area {
        order: 2;
        margin-top: 4rem;
    }

    .apti-hero-assessed {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .apti-paragraph {
        margin-left: auto;
        margin-right: auto;
    }

    /* CSS Change: Mobile layout for the modified HTML */
    .best-apti-grid {
        align-items: center;
    }
    .best-apti-grid .apti-benefits-image-area,
    .best-apti-grid .apti-heading-secondary,
    .best-apti-grid .apti-paragraph {
        grid-column: 1;
        grid-row: auto;
    }
    .best-apti-grid .apti-heading-secondary {
        order: 1;
    }
    .best-apti-grid .apti-benefits-image-area {
        order: 2;
    }
    .best-apti-grid .apti-paragraph {
        order: 3;
    }

    .apti-skill-tag { display: none; }
    
    .apti-types-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .apti-stats-box {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .apti-banner {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    .apti-why-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        margin-bottom: 3rem;
    }
    .apti-stat-item {
        padding: 1.5rem 1rem;
    }
    .apti-stat-item:not(:last-child)::after {
        display: none;
    }
    .apti-stat-item:not(:last-child) {
        border-bottom: 1px solid #e5e7eb;
    }
}

@media (max-width: 768px) {
    .apti-heading-primary { font-size: 2.25rem; }
    .apti-heading-secondary { font-size: 2rem; }
    .apti-section { padding: 3rem 0; }
    .apti-container { padding: 0 1.5rem; }
    
    .apti-hero-image-area { 
        margin-top: 2rem;
    }
    
    .apti-types-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }
    .apti-type-card {
        max-width: 400px;
        width: 100%;
        margin: 0 auto;
    }

    .apti-banner p { font-size: 1.1rem; }
    .apti-banner-buttons { flex-direction: column; width: 100%;}
    .apti-btn { width: 100%; box-sizing: border-box; text-align: center;}

    .apti-why-header .apti-subheading-white {
        margin-left: auto;
        margin-right: auto;
    }
}
