/* Scoped Styles for Integrated Cards Section */
/* Namespace: .integrated-cards-section */

/* 
   Unit Conversion Note:
   Standalone used html { font-size: 62.5% } (10px base).
   Main site uses default (16px base).
   Conversion factor: 0.625 (e.g., 1.6rem -> 1rem).
*/

.integrated-cards-section {
    --card-bg: #fff;
    --primary-color: #2c3e50;
    --accent-color: #e67e22;
    --text-color: #333;

    /* Inherit font from main site */
    font-family: 'Geist', sans-serif;
    padding: 4rem 0;
}

.integrated-cards-section .section-title {
    font-size: 2.25rem;
    /* 3.6rem * 0.625 */
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.625rem;
    /* 1rem * 0.625 */
    color: var(--primary-color);
}

.integrated-cards-section .section-subtitle {
    font-size: 1.125rem;
    /* 1.8rem * 0.625 */
    text-align: center;
    margin-bottom: 2.5rem;
    /* 4rem * 0.625 */
    color: #666;
}

/* Grid Layout */
.integrated-cards-section .cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.875rem;
    /* 3rem * 0.625 */
    justify-content: center;
    padding: 0 1.25rem;
    /* 2rem * 0.625 */
    max-width: 1200px;
    margin: 0 auto;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .integrated-cards-section .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .integrated-cards-section .cards-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
}

/* Card Styles */
.integrated-cards-section .card-wrap {
    transform-style: preserve-3d;
    transform: perspective(62.5rem);
    /* 100rem * 0.625 */
    cursor: pointer;
    height: 100%;
}

.integrated-cards-section .card-container {
    --rX: 0;
    --rY: 0;
    --bX: 50%;
    --bY: 80%;

    width: 100%;
    height: 100%;
    /* Force full height for equal cards */
    min-height: 28.125rem;
    /* 45rem * 0.625 */
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 1rem;
    /* 1.6rem * 0.625 */
    padding: 1.875rem;
    /* 3rem * 0.625 */

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;

    position: relative;
    transform: rotateX(calc(var(--rX) * 1deg)) rotateY(calc(var(--rY) * 1deg));

    background: linear-gradient(135deg, #ffffff 0%, #f0f2f5 100%);
    background-position: var(--bX) var(--bY);
    background-size: 120% 120%;
    box-shadow: 0 0.625rem 1.875rem rgba(0, 0, 0, 0.1);
    /* 1rem 3rem */

    transition: transform .6s 1s;
}

/* Inner Border Effect */
.integrated-cards-section .card-container::before,
.integrated-cards-section .card-container::after {
    content: "";
    width: 1.25rem;
    /* 2rem * 0.625 */
    height: 1.25rem;
    border: 1px solid var(--primary-color);
    position: absolute;
    z-index: 2;
    opacity: .3;
    transition: .3s;
    pointer-events: none;
}

.integrated-cards-section .card-container::before {
    top: 1.25rem;
    right: 1.25rem;
    border-bottom-width: 0;
    border-left-width: 0;
}

.integrated-cards-section .card-container::after {
    bottom: 1.25rem;
    left: 1.25rem;
    border-top-width: 0;
    border-right-width: 0;
}

.integrated-cards-section .card-wrap:hover .card-container::before,
.integrated-cards-section .card-wrap:hover .card-container::after {
    width: calc(100% - 2.5rem);
    /* 4rem * 0.625 */
    height: calc(100% - 2.5rem);
    opacity: 0.8;
}

.integrated-cards-section .card-container--active {
    transition: none;
}

/* Content Styling */
.integrated-cards-section .card-content {
    position: relative;
    z-index: 10;
    transform: translateZ(20px);
    width: 100%;
}

.integrated-cards-section .card-icon {
    font-size: 1.875rem;
    /* 3rem * 0.625 */
    color: var(--accent-color);
    margin-bottom: 1.25rem;
    /* 2rem * 0.625 */
    background: rgba(230, 126, 34, 0.1);
    width: 3.75rem;
    /* 6rem * 0.625 */
    height: 3.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.integrated-cards-section .card-container h3 {
    font-size: 1.5rem;
    /* 2.4rem * 0.625 */
    margin-bottom: 0.9375rem;
    /* 1.5rem * 0.625 */
    color: var(--primary-color);
    font-family: 'Geist', sans-serif;
    font-weight: 700;
}

.integrated-cards-section .card-container p {
    font-size: 0.9375rem;
    /* 1.5rem * 0.625 */
    line-height: 1.6;
    color: #555;
    margin-bottom: 1.25rem;
    font-family: 'Geist', sans-serif;
}

.integrated-cards-section .card-features {
    list-style: none;
    padding: 0;
    text-align: left;
}

.integrated-cards-section .card-features li {
    font-size: 0.875rem;
    /* 1.4rem * 0.625 */
    color: #666;
    margin-bottom: 0.5rem;
    /* 0.8rem * 0.625 */
    padding-left: 1.25rem;
    /* 2rem * 0.625 */
    position: relative;
    font-family: 'Geist', sans-serif;
}

.integrated-cards-section .card-features li::before {
    content: "•";
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Specific Card Icon Colors */
/* Services Section */
#services .card-wrap:nth-child(1) .card-icon {
    color: #c8708f;
    /* Slide 1 Progress (Pink/Rose) */
    background: rgba(200, 112, 143, 0.1);
}

#services .card-wrap:nth-child(2) .card-icon {
    color: #8a87c1;
    /* Slide 2 Progress (Lavender) */
    background: rgba(138, 135, 193, 0.1);
}

#services .card-wrap:nth-child(3) .card-icon {
    color: #5b874b;
    /* Slide 3 Progress (Green) */
    background: rgba(91, 135, 75, 0.1);
}

/* Expertise Section */
.expertise .card-wrap:nth-child(1) .card-icon {
    color: #ff6b35;
    /* Slide 4 Progress (Orange) */
    background: rgba(255, 107, 53, 0.1);
}

.expertise .card-wrap:nth-child(2) .card-icon {
    color: #4a90e2;
    /* Slide 5 Progress (Blue) */
    background: rgba(74, 144, 226, 0.1);
}

.expertise .card-wrap:nth-child(3) .card-icon {
    color: #ffd93d;
    /* Brand Yellow */
    background: rgba(255, 217, 61, 0.1);
}