/* 
* TechVanguard - Main Stylesheet
* Follows BEM naming convention
* Version 1.0
*/

/* ===================
   MỤC LỤC
=================== */
/*
1. Styles Cơ bản & Tiện ích
2. Thành phần Layout
3. Các Section
4. Media Queries (Responsive)
   - Desktop lớn (max-width: 1200px)
   - Desktop vừa (max-width: 992px) 
   - Máy tính bảng (max-width: 768px)
   - Máy tính bảng nhỏ (max-width: 576px)
   - Điện thoại (max-width: 414px)
   - Điện thoại nhỏ (max-width: 320px)
*/

/* ===================
   1. STYLES CƠ BẢN & TIỆN ÍCH
=================== */

/* Nền hình tròn màu vàng */
.yellow-circle {
    position: relative;
    background: radial-gradient(circle, #FADE83 0%, #7d6f42 50%, transparent 100%);
    border-radius: 50%;
    filter: blur(7.8125vw);
    z-index: -2;
    opacity: 0.6;
}

.circle-1 {
    position: absolute;
    width: 62.5vw;
    height: 62.5vw;
    top: 3%;
    right: -5%;
}

.circle-2 {
    position: absolute;
    width: 62.5vw;
    height: 62.5vw;
    top: 30%;
    left: -35%;
}

.circle-3 {
    position: absolute;
    width: 57.2917vw;
    height: 57.2917vw;
    bottom: 8%;
    left: 65%;
    opacity: 0.5;
}

/* ===================
   LAYOUT COMPONENTS
=================== */

/* Card Components */
.service-card, 
.solution-item, 
.business-item {
    background-color: var(--color-bg-card);
    border: 2px solid var(--color-white-with-opacity);
    box-sizing: border-box;
    background-clip: padding-box;
    border-radius: 20px;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* ===================
   2. THÀNH PHẦN LAYOUT
=================== */

/* Các thành phần Card */
.service-card, 
.solution-item, 
.business-item {
    background-color: var(--color-bg-card);
    border: 2px solid var(--color-white-with-opacity);
    box-sizing: border-box;
    background-clip: padding-box;
    border-radius: 20px;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* ===================
   3. CÁC SECTION
=================== */

/* Section Hero - Phần đầu trang */
.hero {
    min-height: 100vh;
    padding-top: 3.6458vw;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 60%;
    position: relative;
}

.hero-content .hero-title {
    color: var(--color-white);
    font-size: 4.5vw;
    font-weight: var(--fw-regular);
}

.hero-content p {
    font-weight: var(--fw-medium);
    margin: 1.5625vw 0 2.0833vw;
   
}

/* Section Giới thiệu */
.about {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about p {
    max-width: 41.6667vw;
    margin: 0 auto;
    text-align: center;
    opacity: 0.6;
    margin-bottom: 3.125vw;
    font-weight: var(--fw-medium);
    
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.125vw;
    margin-top: 3.125vw;
    align-items: stretch;
    max-width: 75vw;
    margin-left: auto;
    margin-right: auto;
}

.about-image {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    border: 2px solid var(--color-white-with-opacity);
    background-color: transparent;
    min-height: 20.8333vw;
    order: 0;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
}

.service-cards {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.0417vw;
    width: 100%;
    height: 100%;
    order: 1;
}

.service-card {
    background-color: var(--color-bg-card);
    border: 2px solid var(--color-white-with-opacity);
    box-sizing: border-box;
    background-clip: padding-box;
    border-radius: 20px;
    padding: 1.0417vw 1.5625vw 1.5625vw 1.5625vw;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 80%;
    margin: 0 auto;
    height: auto;
    min-height: 6.5104vw;
}

.service-card a{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card h3 {
    margin-bottom: 0.5208vw;
    width: 100%;
}

.service-card p {
    font-weight: var(--fw-regular);
    font-size: 0.9vw;
    max-width: 90%;
    text-align: center;
    margin: 0.5208vw 0 0 0;
}

/* Section Giải pháp */
.solutions {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.solutions p {
    max-width: 41.6667vw;
    margin: 0 auto;
    text-align: center;
    opacity: 0.6;
   
    font-weight: var(--fw-regular);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5625vw;
    margin-top: 3.125vw;
    max-width: 75vw;
    margin-left: auto;
    margin-right: auto;
}

.solution-item {
    padding: 1.5625vw 1.0417vw;
    justify-content: center;
    gap: 1.0417vw;
    min-height: 14.0104vw;
}

.solution-item h3 {
    font-size: 1.0417vw;
    font-weight: var(--fw-regular);
    margin: 0;
    padding: 0;
}

.solution-item p {
    text-align: center;
    max-width: 90%;
   
    font-weight: var(--fw-regular);
}

/* Section Doanh nghiệp */
.business {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.business h2 {
    max-width: 41.6667vw;
    margin-left: auto;
    margin-right: auto;
}

.business p {
    max-width: 41.6667vw;
    margin: 0 auto;
    text-align: center;
   
    font-weight: var(--fw-medium);
    opacity: 0.6;
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5625vw;
    margin-top: 3.125vw;
    max-width: 75vw;
    margin-left: auto;
    margin-right: auto;
}

.business-item {
    padding: 1.5625vw 1.5625vw;
    justify-content: center;
    gap: 1.0417vw;
    height: 21.875vw;
    width: 17.1875vw;
}

.business-item img {
    width: 50%;
    height: 50%;
    object-fit: contain;
    padding: 1.0417vw;
    box-shadow: 0px 4px 4px transparent;
}

.business-item h3 {
    font-size: 0.9375vw;
    margin-bottom: 0.5208vw;
    font-weight: var(--fw-regular);
}

.business-item p {
  
    text-align: center;
    max-width: 90%;
}

/* Section Sản phẩm */
.products {
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 6.25vw;
}

.products h2 {
    max-width: 46.875vw;
    margin-left: auto;
    margin-right: auto;
}

.products p {
    max-width: 41.6667vw;
    margin: 0 auto;
    text-align: center;
    font-weight: 300;
    
    opacity: 0.6;
}

.products .cta-button {
    margin-top: 2.0833vw;
}

/* ===================
   4. MEDIA QUERIES (RESPONSIVE)
=================== */

/* Mobile */
@media (max-width: 768px) {
    /* Layout cơ bản */
    .container {
        width: 90%;
        padding: 0 3.4722vw;
        box-sizing: border-box;
        max-width: 100%;
    }
    
    .hero-content {
        max-width: 100%;
        padding-right: 5vw;
    }
    .about h2, .solutions h2, .business h2, .products h2 {
        font-size: 5.555vw;
    }

    section {
        padding: 6.9444vw 0;
    }

    /* Typography - Điều chỉnh font chữ */
    .hero-content .hero-title {
        font-size: 6vw;
        line-height: 1.2;
        text-align: left;
        margin: 0;
    }

    .hero-content p {
        font-size: 2.6042vw;
        margin: 4.3403vw 0;
    }

    /* Layout grid - Điều chỉnh lưới */
    .about-content,
    .solutions-grid,
    .business-grid {
        width: 90%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0;
        margin-left: auto;
        margin-right: auto;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 4.3403vw;
    }

    .about-image {
        min-height: 52.0833vw;
        order: 1;
    }

    .service-cards {
        order: 2;
        width: 100%;
    }

    .solutions-grid {
        grid-template-columns: 1fr;
    }

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

    /* Card components - Điều chỉnh các thẻ */
    .service-card, 
    .solution-item, 
    .business-item, 
    .about-image {
        box-sizing: border-box;
        max-width: 100%;
        width: 100%;
    }

    .service-card {
        max-width: 100%;
        width: 100%;
        height: auto;
        min-height: 21.7014vw;
        padding: 3.4722vw;
        margin: 2px;
    }

    .service-card h3 {
        width: 100%;
        font-size: 4.1667vw;
        margin: 0;
    }

    .service-card p {
        align-self: center;
        max-width: 100%;
  
    }

    .solution-item {
        height: auto;
        padding: 3.4722vw;
        min-height: 26.0417vw;
    }

    .solution-item p {
        margin: 0;
        max-width: 100%;
        
    }

    .solution-item h3 {
        font-size: 3.1250vw;
    }

    .business-item {
        width: 100%;
        height: auto;
        min-height: 17.3611vw;
        padding: 6.9444vw 0.8681vw;
    }

    .business-item img {
        width: 40%;
        height: auto;
        padding: 0;
    }

    .business-item h3 {
        margin: 0;
        font-size: 3.1250vw;
    }

    .business-item p {
        max-width: 100%;
        margin: 0;
      
    }

    /* Typography */
    .about p,
    .solutions p,
    .business p,
    .products p {
        max-width: 80%;
        font-size: 2.6042vw;
        box-sizing: border-box;
    }


}

