/* Custom Card Styles for FameLab.pro */

/* Service Card */
.service-card {
    background: var(--card-bg, #fff);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.service-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.service-card__price {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color, #3b7ddd);
    margin: 0;
}

.service-card__label {
    font-size: 14px;
    color: #6c757d;
}

.service-card__title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.service-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.service-card__title a:hover {
    color: var(--primary-color, #3b7ddd);
}

.service-card__text {
    color: #6c757d;
    margin-bottom: 15px;
    flex-grow: 1;
}

.service-card__features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.service-card__features li {
    padding: 8px 0;
    color: #495057;
}

.service-card__features i {
    color: var(--success-color, #28a745);
    margin-right: 8px;
}

.service-card__btn,
.service-card__link {
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s;
}

.service-card__link {
    color: var(--primary-color, #3b7ddd);
    font-weight: 600;
}

.service-card__link:hover {
    color: var(--primary-color-dark, #2d5ba8);
}

/* Category Card */
.category-card {
    background: var(--card-bg, #fff);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.category-card__title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
}

.category-card__title a {
    color: inherit;
    text-decoration: none;
}

.category-card__text {
    color: #6c757d;
    margin-bottom: 20px;
}

.category-card__link {
    color: var(--primary-color, #3b7ddd);
    font-weight: 600;
    text-decoration: none;
}

/* Network Card */
.network-card {
    background: var(--card-bg, #fff);
    border-radius: 10px;
    padding: 40px 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.network-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.network-card__icon {
    display: flex;
    justify-content: center;
    align-items: center;
}

.network-card__title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
}

.network-card__title a {
    color: inherit;
    text-decoration: none;
}

.network-card__text {
    color: #6c757d;
    margin-bottom: 20px;
}

/* Blog Post Card */
.blog-post {
    background: var(--card-bg, #fff);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.blog-post:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.blog-post__image {
    border-radius: 10px;
    overflow: hidden;
}

.blog-post__image img {
    width: 100%;
    height: auto;
    transition: transform 0.3s;
}

.blog-post__image:hover img {
    transform: scale(1.05);
}

.blog-post__meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 14px;
    color: #6c757d;
}

.blog-post__meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.blog-post__title {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 15px;
}

.blog-post__title a {
    color: inherit;
    text-decoration: none;
}

.blog-post__title a:hover {
    color: var(--primary-color, #3b7ddd);
}

.blog-post__excerpt {
    color: #6c757d;
    margin-bottom: 20px;
}

.blog-post__read-more {
    color: var(--primary-color, #3b7ddd);
    font-weight: 600;
    text-decoration: none;
}

/* Testimonial Card */
.testimonial-card {
    background: var(--card-bg, #fff);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.testimonial-card__rating i {
    color: #ffc107;
    font-size: 18px;
}

.testimonial-card__text {
    font-style: italic;
    margin: 20px 0;
    color: #495057;
    line-height: 1.6;
}

.testimonial-card__author {
    border-top: 1px solid #e9ecef;
    padding-top: 15px;
}

.author-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.author-role {
    color: #6c757d;
    font-size: 14px;
}

/* Portfolio Card */
.portfolio-card {
    background: var(--card-bg, #fff);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.portfolio-card__image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.portfolio-card__content {
    padding: 25px;
}

.portfolio-card__title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.portfolio-card__text {
    color: #6c757d;
    margin-bottom: 15px;
}

.portfolio-card__stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.portfolio-card__stats .stat {
    font-size: 14px;
    color: #495057;
}

.portfolio-card__stats strong {
    color: var(--primary-color, #3b7ddd);
    font-weight: 700;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.page-header__title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
}

.page-header__text {
    font-size: 18px;
    opacity: 0.9;
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 60px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.cta-box__title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-box__text {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.pagination-btn {
    padding: 10px 25px;
    background: var(--primary-color, #3b7ddd);
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s;
}

.pagination-btn:hover {
    background: var(--primary-color-dark, #2d5ba8);
    color: #fff;
}

.pagination-info {
    color: #6c757d;
    font-weight: 600;
}

/* Dark mode support */
[data-bs-theme="dark"] .service-card,
[data-bs-theme="dark"] .category-card,
[data-bs-theme="dark"] .network-card,
[data-bs-theme="dark"] .blog-post,
[data-bs-theme="dark"] .testimonial-card,
[data-bs-theme="dark"] .portfolio-card {
    --card-bg: #1e2022;
    background: var(--card-bg);
    color: #e9ecef;
}

[data-bs-theme="dark"] .service-card__text,
[data-bs-theme="dark"] .category-card__text,
[data-bs-theme="dark"] .network-card__text,
[data-bs-theme="dark"] .blog-post__excerpt,
[data-bs-theme="dark"] .testimonial-card__text {
    color: #adb5bd;
}

/* Responsive */
@media (max-width: 768px) {
    .page-header__title {
        font-size: 32px;
    }

    .cta-box__title {
        font-size: 28px;
    }

    .service-card__price {
        font-size: 24px;
    }
}

/* Categories Mega Menu Styles */
.home-showcase__card {
    padding: 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: var(--card-bg, #fff);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.home-showcase__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.home-showcase__card.text-center .home-showcase__image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-showcase__card .home-showcase__title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.home-showcase__card .home-showcase__title a {
    color: var(--body-color);
    text-decoration: none;
    transition: color 0.3s;
}

.home-showcase__card .home-showcase__title a:hover {
    color: var(--primary-color, #3b7ddd);
}

.home-showcase__card .text-muted.small {
    font-size: 12px;
    line-height: 1.4;
}

/* Hero Section Form Styles */
.section-hero__getstarted .contact-form {
    gap: 12px;
}

.section-hero__getstarted .form-control {
    background: var(--card-bg, #fff);
    color: var(--body-color);
    border: 2px solid rgba(var(--primary-color-rgb, 59, 125, 221), 0.2);
    transition: all 0.3s;
}

.section-hero__getstarted .form-control:focus {
    border-color: var(--primary-color, #3b7ddd);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-color-rgb, 59, 125, 221), 0.15);
    outline: 0;
}

.section-hero__info-text {
    font-size: 13px;
    color: #6c757d;
    line-height: 1.6;
}

.section-hero__info-text a {
    color: var(--primary-color, #3b7ddd);
    text-decoration: underline;
}

.section-hero__info-text .section-hero__info-img {
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

/* Language Switcher Styles */
.dropdown-toggle::after {
    margin-left: 0.5em;
}

.dropdown-menu {
    background: var(--card-bg, #fff);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    color: var(--body-color);
    transition: all 0.3s;
}

.dropdown-item:hover {
    background: var(--primary-color, #3b7ddd);
    color: #fff;
}

.dropdown-item img {
    border-radius: 2px;
}

/* Theme Switcher Improvements */
.theme-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s;
}

.theme-btn:hover {
    background: rgba(var(--primary-color-rgb, 59, 125, 221), 0.1) !important;
}

.theme-btn .theme-icon {
    transition: all 0.3s;
}

/* Dark Mode Support for New Elements */
[data-bs-theme="dark"] .home-showcase__card {
    background: #1e2022;
    color: #e9ecef;
}

[data-bs-theme="dark"] .section-hero__getstarted .form-control {
    background: #2a2d30;
    color: #e9ecef;
    border-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .dropdown-menu {
    background: #2a2d30;
    border-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .dropdown-item {
    color: #e9ecef;
}

[data-bs-theme="dark"] .dropdown-item:hover {
    background: var(--primary-color, #3b7ddd);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .home-showcase__card .home-showcase__title {
        font-size: 13px;
    }
    
    .home-showcase__card .text-muted.small {
        font-size: 11px;
    }
    
    .section-hero__getstarted .contact-form {
        flex-direction: row;
    }
    
    .section-hero__getstarted .form-control {
        min-width: 100%;
    }
    
    .section-hero__getstarted-btnwrap {
        margin-left: 0 !important;
        margin-top: 12px;
    }
}

/* Feature Card Styles */
.feature-card {
    background: var(--card-bg, #fff);
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.feature-card__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card__icon img {
    max-width: 100%;
    height: auto;
}

.feature-card__title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--body-color);
}

.feature-card__text {
    font-size: 15px;
    line-height: 1.7;
    color: #6c757d;
    margin: 0;
}

/* Service Card V2 Styles */
.service-card-v2 {
    background: var(--card-bg, #fff);
    border-radius: 12px;
    padding: 35px 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 2px solid transparent;
}

.service-card-v2:hover {
    border-color: var(--primary-color, #3b7ddd);
    box-shadow: 0 10px 30px rgba(59, 125, 221, 0.15);
}

.service-card-v2__icon {
    margin-bottom: 20px;
}

.service-card-v2__title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--body-color);
}

.service-card-v2__text {
    font-size: 14px;
    line-height: 1.6;
    color: #6c757d;
    margin-bottom: 15px;
}

.service-card-v2__link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color, #3b7ddd);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}

.service-card-v2__link:hover {
    color: var(--primary-color-dark, #2d5ba8);
    transform: translateX(5px);
}

/* Checklist Styles */
.checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.checklist__item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    font-size: 15px;
    line-height: 1.6;
}

.checklist__item i {
    color: var(--primary-color, #3b7ddd);
    font-size: 20px;
    margin-right: 12px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Testimonial Card Enhanced */
.testimonial-card__rating {
    display: flex;
    gap: 4px;
}

.testimonial-card__rating i {
    color: #ffc107;
    font-size: 16px;
}

.testimonial-card__avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.testimonial-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-card__name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--body-color);
}

.testimonial-card__position {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
}

/* Section Tagline */
.sec-title__tagline {
    display: inline-block;
    padding: 6px 20px;
    background: rgba(var(--primary-color-rgb, 59, 125, 221), 0.1);
    color: var(--primary-color, #3b7ddd);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Section Background */
.section-bg {
    background: #f8f9fa;
}

[data-bs-theme="dark"] .section-bg,
[data-bs-theme="dark"] section[style*="background: var(--section-bg"] {
    background: #1a1d20 !important;
}

/* Final CTA Section */
.section-final-cta {
    position: relative;
    overflow: hidden;
}

.section-final-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.03)"/></svg>');
    opacity: 0.5;
}

.section-final-cta .container {
    position: relative;
    z-index: 1;
}

/* Dark Mode Support for New Components */
[data-bs-theme="dark"] .feature-card,
[data-bs-theme="dark"] .service-card-v2 {
    background: #1e2022;
    color: #e9ecef;
}

[data-bs-theme="dark"] .feature-card__title,
[data-bs-theme="dark"] .service-card-v2__title,
[data-bs-theme="dark"] .testimonial-card__name {
    color: #e9ecef;
}

[data-bs-theme="dark"] .feature-card__text,
[data-bs-theme="dark"] .service-card-v2__text,
[data-bs-theme="dark"] .testimonial-card__position {
    color: #adb5bd;
}

[data-bs-theme="dark"] .service-card-v2:hover {
    border-color: var(--primary-color, #3b7ddd);
    background: #252830;
}

/* Responsive Enhancements */
@media (max-width: 991px) {
    .feature-card,
    .service-card-v2 {
        margin-bottom: 30px;
    }
    
    .section-final-cta h2 {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .feature-card__icon {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }
    
    .feature-card__title,
    .service-card-v2__title {
        font-size: 18px;
    }
    
    .feature-card,
    .service-card-v2 {
        padding: 30px 20px;
    }
    
    .testimonial-card {
        padding: 25px 20px;
    }
    
    .testimonial-card__avatar {
        width: 50px;
        height: 50px;
    }
    
    .section-final-cta h2 {
        font-size: 28px;
    }
    
    .section-final-cta .btn {
        width: 100%;
        margin-top: 20px;
    }
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.wow {
    visibility: hidden;
}

.wow.fadeInUp,
.wow.fadeInLeft,
.wow.fadeInRight {
    animation-duration: 0.8s;
    animation-fill-mode: both;
}

/* Primary Color Variables Support */
:root {
    --primary-color-rgb: 59, 125, 221;
}

[data-bs-theme="dark"] {
    --primary-color-rgb: 88, 166, 255;
}

/* ============================================
   FIXED STYLES FOR ALL HOMEPAGE COMPONENTS
   ============================================ */

/* Service Card Icon Fix */
.service-card__icon {
    width: 60px;
    height: 60px;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Feature Card Complete Redesign */
.feature-card {
    background: var(--card-bg, #fff);
    border-radius: 16px;
    padding: 45px 35px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
    height: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-card__icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-color-rgb, 59, 125, 221), 0.08);
    border-radius: 20px;
}

.feature-card__icon img {
    max-width: 55px;
    max-height: 55px;
    object-fit: contain;
}

.feature-card__title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--body-color);
}

.feature-card__text {
    font-size: 16px;
    line-height: 1.8;
    color: #6c757d;
}

/* Service Card V2 Enhanced */
.service-card-v2 {
    background: var(--card-bg, #fff);
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    height: 100%;
}

.service-card-v2__title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}

.service-card-v2__text {
    font-size: 15px;
    line-height: 1.8;
    color: #6c757d;
}

/* Section Title */
.sec-title__tagline {
    display: inline-block;
    padding: 8px 24px;
    background: rgba(var(--primary-color-rgb, 59, 125, 221), 0.1);
    color: var(--primary-color, #3b7ddd);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
}

.sec-title__title {
    font-size: 42px;
    font-weight: 800;
    color: var(--body-color);
}

@media (max-width: 767px) {
    .sec-title__title {
        font-size: 28px;
    }
}
