/* ========================================
   HOME PAGE STYLES
   ======================================== */

/* Team Section - Blue/Azure Colors */
.team-card-compact {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.team-card-compact:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.team-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.member-avatar {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #f8f9fa;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.avatar-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #2596be 0%, #04c1de 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    border: 3px solid #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.member-content {
    flex: 1;
}

.member-name {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.member-role {
    font-size: 14px;
    font-weight: 600;
    color: #2596be;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.member-description {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.member-social-compact {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.member-social-compact a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2596be;
    font-size: 16px;
    transition: all 0.3s ease;
}

.member-social-compact a:hover {
    background: linear-gradient(135deg, #2596be 0%, #04c1de 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(37, 150, 190, 0.4);
}

/* Systems Section - Better Button Alignment */
.system-card-modern {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.system-body {
    flex-grow: 1;
}

.system-footer {
    margin-top: auto;
    padding-top: 20px;
}

.btn-system {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #2596be 0%, #04c1de 100%);
    color: white !important;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
}

.btn-system:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 150, 190, 0.3);
    color: white !important;
}

/* Mobile Content Reordering */
@media (max-width: 991px) {
    .hero-content-wrapper {
        display: flex;
        flex-direction: column;
    }

    .hero-text-content {
        order: 1;
    }

    .hero-image-content {
        order: 2;
        margin-top: 30px;
    }

    /* Hide floating cards on mobile */
    .floating-card {
        display: none !important;
    }
}

/* Mobile Improvements */
@media (max-width: 991px) {
    .hero-content-wrapper {
        padding: 40px 0;
    }

    .hero-text-content {
        padding: 0 15px;
    }

    .hero-image-content {
        padding: 0 15px;
    }

    .content-box {
        padding: 0 15px;
    }

    .section-modern {
        padding: 60px 0;
    }

    .member-avatar {
        width: 100px;
        height: 100px;
    }

    .avatar-badge {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .member-name {
        font-size: 20px;
    }

    .member-description {
        font-size: 14px;
    }
}

@media (max-width: 767px) {
    /* Hero adjustments */
    .hero-modern {
        padding: 80px 0 40px;
    }

    .hero-badge {
        font-size: 13px;
        padding: 8px 16px;
    }

    .hero-title {
        font-size: 28px;
        line-height: 1.3;
        margin-bottom: 20px;
    }

    .hero-description {
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: 25px;
    }

    .hero-cta {
        flex-direction: column;
        gap: 12px;
    }

    .btn-hero {
        width: 100%;
        justify-content: center;
        font-size: 14px;
        padding: 14px 24px;
    }

    .hero-image-wrapper {
        max-width: 280px;
        margin: 0 auto;
    }

    /* About section */
    .section-title-modern {
        font-size: 26px;
        line-height: 1.3;
    }

    .section-description {
        font-size: 15px;
        line-height: 1.6;
    }

    .features-grid {
        gap: 15px;
    }

    .feature-item {
        padding: 15px;
    }

    .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .feature-text h6 {
        font-size: 14px;
    }

    .feature-text p {
        font-size: 13px;
    }

    /* Services */
    .service-card-modern {
        padding: 25px 20px;
    }

    .service-icon-modern {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .service-title-modern {
        font-size: 18px;
    }

    .service-description-modern {
        font-size: 14px;
    }

    /* Systems */
    .systems-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .system-card-modern {
        margin-bottom: 0;
    }

    /* Team */
    .team-card-compact {
        padding: 25px 20px;
    }

    .member-avatar {
        width: 90px;
        height: 90px;
    }

    .member-name {
        font-size: 18px;
    }

    .member-role {
        font-size: 12px;
    }

    .member-description {
        font-size: 13px;
        margin-bottom: 15px;
    }

    .member-social-compact a {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    /* CTA */
    .cta-title {
        font-size: 24px;
        line-height: 1.3;
    }

    .cta-description {
        font-size: 15px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .btn-cta {
        width: 100%;
        justify-content: center;
        font-size: 14px;
    }

    /* General spacing */
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .section-modern {
        padding: 50px 0;
    }
}

@media (max-width: 575px) {
    .hero-title {
        font-size: 24px;
    }

    .section-title-modern {
        font-size: 22px;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .btn-modern {
        font-size: 13px;
        padding: 12px 20px;
    }

    .hero-image-wrapper {
        max-width: 250px;
    }
}

/* Tablet specific */
@media (min-width: 768px) and (max-width: 991px) {
    .hero-title {
        font-size: 36px;
    }

    .section-title-modern {
        font-size: 32px;
    }

    .systems-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }
}