/* Homepage Refactor Styles */

/* ==================== Hero Section Updates ==================== */
.carousel-caption h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 24px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.carousel-caption p {
    font-size: 20px;
    margin-bottom: 32px;
    opacity: 0.95;
}

/* ==================== Unified Section Styling ==================== */
.section-refactor {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    background-color: #ffffff;
}

.section-refactor:nth-child(even) {
    background-color: #f8fdf9;
}

.refactor-header {
    text-align: center;
    margin-bottom: 60px;
}

.refactor-title {
    font-size: 42px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.refactor-subtitle {
    font-size: 16px;
    color: #7f8c8d;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-top: 10px;
}

.title-line {
    width: 60px;
    height: 4px;
    background: var(--primary-gradient);
    margin: 20px auto 0;
    border-radius: 2px;
}

/* ==================== Intro Section (Simplified) ==================== */
.intro-refactor-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.intro-text-content h3 {
    font-size: 32px;
    line-height: 1.4;
    color: #2c3e50;
    margin-bottom: 25px;
    font-weight: 700;
}

.highlight-text {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.highlight-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(10, 186, 181, 0.15);
    z-index: -1;
}

.intro-text-content p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 16px;
}

.intro-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.intro-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.intro-image-wrapper:hover img {
    transform: scale(1.05);
}

/* ==================== Product Collections ==================== */
.products-refactor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-refactor-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);

}

.product-refactor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(10, 186, 181, 0.15);
}

.product-img-box {
    height: 240px;
    overflow: hidden;
    position: relative;
}

.product-img-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
    padding: 10px;
}

.product-refactor-card:hover .product-img-box img {
    transform: scale(1.1);
}

.product-info-box {
    padding: 25px;
}

.product-info-box h4 {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 12px;
    font-weight: 600;
}

.product-info-box p {
    color: #7f8c8d;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.product-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease;
}

.product-link:hover {
    gap: 10px;
    color: var(--primary-dark);
}

/* ==================== Applications Grid ==================== */
.applications-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.app-card {
    position: relative;
    height: 320px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.app-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.8s ease;
}

.app-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.1) 100%);
    transition: background 0.3s ease;
}

.app-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    color: #fff;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.app-card:hover .app-bg {
    transform: scale(1.1);
}

.app-card:hover .app-content {
    transform: translateY(0);
}

.app-card:hover .app-overlay {
    background: linear-gradient(to top, rgba(10, 186, 181, 0.9) 0%, rgba(0, 0, 0, 0.3) 60%, rgba(0, 0, 0, 0.1) 100%);
}

.app-icon {
    font-size: 32px;
    margin-bottom: 15px;
    display: block;
}

.app-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.app-desc {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease 0.1s;
    height: 0;
    overflow: hidden;
}

.app-card:hover .app-desc {
    opacity: 1;
    transform: translateY(0);
    height: auto;
    margin-top: 10px;
}

/* Responsive */
@media (max-width: 992px) {
    .intro-refactor-container {
        grid-template-columns: 1fr;
    }

    .applications-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .products-refactor-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }

    .intro-refactor-container {
        gap: 40px;
    }
}

@media (max-width: 576px) {

    .applications-grid,
    .products-refactor-grid,
    .advantages-grid,
    .news-simple-grid {
        grid-template-columns: 1fr !important;
    }

    .section-refactor {
        padding: 30px 0 !important;
    }

    .carousel-caption {
        bottom: 40px;
        left: 5%;
        width: 90%;
        padding: 0;
    }

    .carousel-caption h2 {
        font-size: 28px;
        margin-bottom: 10px;
    }

    .carousel-caption p {
        font-size: 16px;
        margin-bottom: 20px;
        line-height: 1.4;
    }

    .carousel-caption .pulse-btn {
        padding: 10px 25px;
        font-size: 14px;
    }
}

/* ==================== News Simplified ==================== */
.news-simple-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Fix for broken arrow icons */
.btn-link::after,
.read-more::after,
.detail-link::after {
    content: none !important;
    display: none !important;
}

/* Clean text link style */
.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.text-link:hover {
    color: var(--primary-dark);
    gap: 12px;
}

.text-link::after {
    content: none !important;
}

/* ==================== Core Advantages ==================== */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.advantage-card {
    background: #fff;
    padding: 35px 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(10, 186, 181, 0.1);
    border-color: rgba(10, 186, 181, 0.2);
}

.advantage-icon {
    font-size: 42px;
    color: var(--primary);
    margin-bottom: 20px;
    display: inline-block;
    background: rgba(10, 186, 181, 0.1);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.advantage-card:hover .advantage-icon {
    background: var(--primary);
    color: #fff;
    transform: rotateY(180deg);
}

.advantage-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0;
}

/* Responsive for Advantages */
@media (max-width: 992px) {
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .advantages-grid {
        grid-template-columns: 1fr;
    }
}