/* 
* TechVanguard - About Page Stylesheet
* Extension of styles.css
* Version 1.0
*/
/* =================== YELLOW CIRCLE =================== */
.yellow-circle {
    position: relative;
    background: radial-gradient(circle, #FADE83 0%, #7d6f42 50%, transparent 100%);
    border-radius: 50%;
    filter: blur(150px);
    z-index: -2;
    opacity: 0.6;
}

.circle-1 {
    position: absolute;
    width: 62.5vw;
    /* 1200px / 1920 * 100 */
    height: 62.5vw;
    /* 1200px / 1920 * 100 */
    top: 0.15625vw;
    /* 3px / 1920 * 100 */
    right: -0.26042vw;
    /* -5px / 1920 * 100 */
}

.circle-2 {
    position: absolute;
    width: 62.5vw;
    /* 1200px / 1920 * 100 */
    height: 62.5vw;
    /* 1200px / 1920 * 100 */
    top: 15.625vw;
    /* 300px / 1920 * 100 */
    left: -18.22917vw;
    /* -350px / 1920 * 100 */
}

.circle-3 {
    position: absolute;
    width: 57.292vw;
    /* 1100px / 1920 * 100 */
    height: 57.292vw;
    /* 1100px / 1920 * 100 */
    top: 23.4375vw;
    /* 450px / 1920 * 100 */
    left: 33.85417vw;
    /* 650px / 1920 * 100 */
    opacity: 0.5;
}

/* =================== DMS HERO SECTION =================== */
.dms-hero {
    min-height: 100vh;
    padding-top: 6.25vw;
    /* 120px / 1920 * 100 */
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.dms-title {
    font-family: 'Nasalization', sans-serif;
    font-size: 3.333vw;
    /* 64px / 1920 * 100 */
    font-weight: 400;
    color: var(--color-white);
    font-weight: var(--fw-regular);
    margin-bottom: 1.5625vw;
    /* 30px / 1920 * 100 */
    text-align: center;
    letter-spacing: 0.01em;
}

.dms-hero-content p {
    font-weight: var(--fw-medium);
    align-self: center;
    
    text-align: center;
    max-width: 70%;
    margin-left: auto;
    margin-right: auto;
}


.dms-hero-content .cta-button {
    display: flex;
    flex-direction: row;
    gap: 10%;
    justify-content: center;
    margin-top: 2.6042vw;
    /* 50px / 1920 * 100 */
}

/* =================== KEY BENEFITS SECTION =================== */

.key-benefits {
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 3.125vw 0;
}

.benefits-wrapper {
    display: flex;
    gap: 4.166vw;
    margin-top: 3.125vw;
    max-width: 75vw;
    margin-left: auto;
    margin-right: auto;
}

.benefits-column {
    flex: 1;
    position: relative;
    padding: 1.042vw 0;
}

.benefits-column h3 {
    font-family: 'Nasalization', sans-serif;
    font-size: 1.25vw;
    color: #fff;
    position: relative;
    background-color: #201E27;
    border-radius: 20px;
    padding: 0.781vw 1.563vw;
    box-shadow: 0 0 0.521vw rgba(250, 222, 131, 0.2);
    margin-bottom: 2.083vw;
    width: 13.021vw;
    margin-left: auto;
    margin-right: auto;
}

/* Glow effect behind h3 */
.benefits-column h3::after {
    content: '';
    position: absolute;
    inset: -0.26vw;
    background: linear-gradient(to bottom, #FADE83, #FFC300);
    border-radius: 20px;
    z-index: -1;
    opacity: 0.2;
    filter: blur(0.521vw);
}

/* Gradient border effect for h3 */
.benefits-column h3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 0.078vw;
    background:
        linear-gradient(45deg, rgba(148, 131, 77, 0) 0%, #FADE83 100%),
        linear-gradient(135deg, #FADE83 0%, rgba(139, 99, 41, 0) 100%);
    background-size: 100% 100%, 100% 100%;
    background-repeat: no-repeat;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.benefits-grid {
    display: flex;
    flex-direction: column;
    gap: 1.563vw;
}

.benefit-item {
    position: relative;
    border: 0.078vw solid transparent;
    padding: 1.563vw 1.042vw;
    min-height: 6.771vw;
    background-color: #201E27;
    box-sizing: border-box;
    background-clip: padding-box;
    border-radius: 30px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.781vw;
    box-shadow: 0 0 0.521vw rgba(250, 222, 131, 0.2);
}

/* Glow effect behind item */
.benefit-item::after {
    content: '';
    position: absolute;
    inset: -0.26vw;
    background: linear-gradient(to bottom, #FADE83, #FFC300);
    border-radius: 30px;
    z-index: -1;
    opacity: 0.1;
    filter: blur(0.26vw);
}

/* Gradient border effect */
.benefit-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 25px;
    padding: 1.5px;
    background:
        linear-gradient(135deg, #FADE83 0%, #8B632910 60%) top left,
        linear-gradient(315deg, #FADE83 0%, #8B632910 60%) bottom right;
    background-size: 100% 100%, 100% 100%;
    background-repeat: no-repeat;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.benefit-item h4 {
    font-size: 0.938vw;
    font-weight: var(--fw-regular);
    margin-top: 0.521vw;
    margin-bottom: 0;
    color: #fff;
}

.benefit-item p {
    padding-bottom: 0;
    text-align: center;
    max-width: 47.917vw;

    font-weight: var(--fw-regular);
    margin-left: auto;
    margin-right: auto;
    margin-bottom: auto;
    color: rgba(255, 255, 255, 0.8);
}

/* =================== FAQ SECTION =================== */
/* FAQ content (wrapper for heading and container) */
.faq-content {
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 3.125vw 0;
}

/* FAQ container (Flexbox for columns) */
.faq-container {
    width: 100%;
    padding: 0 1.042vw;
    margin: 2.083vw auto;
    max-width: 100%;
    display: flex;
    gap: 1.563vw;
    justify-content: center;
    transition: flex-direction 0.3s ease;
}

/* FAQ column (Flexbox for stacking items) */
.faq-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.563vw;
    max-width: 36.458vw;
    min-width: 26.042vw;
}

/* Around color (wrapper for each FAQ item) */
.faq-column>.around-color-first,
.faq-column>.around-color {
    position: relative;
    width: 100%;
    border-radius: 1.302vw;
}

.faq-container>.around-color-first,
.faq-container>.around-color {
    border: 0.052vw solid transparent;
}

.faq-container>.faq-column>.around-color-first::before,
.faq-container>.faq-column>.around-color::before {
    content: "";
    position: absolute;
    top: -0.052vw;
    left: -0.052vw;
    right: -0.052vw;
    bottom: -0.052vw;
    background: linear-gradient(to bottom, #fade83, #8b632900);
    border-radius: 20px;
    z-index: -1;
}

/* FAQ item styling */
.faq-item {
    position: relative;
    background-color: #201E27;
    border-radius: 20px;
    width: 100%;
    aspect-ratio: 10/1.3;
    /* Chiều cao mặc định khi đóng */
    cursor: pointer;
    display: flex;
    flex-direction: column;
    border: 1px solid #fade8333;
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: auto;
    overflow: hidden;
    /* Thêm overflow hidden để tránh content tràn ra */
}

/* FAQ header (question and plus icon) */
.faq-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 36.458vw;
    padding: 0.521vw 1.042vw;
    box-sizing: border-box;
    border-radius: 20px;
    margin: auto;
    min-height: 5.208vw;
    /* Đảm bảo chiều cao tối thiểu */
    flex-shrink: 0;
    /* Ngăn header bị co lại */
}

/* FAQ answer (collapsible content) */
.faq-answer {
    overflow: hidden;
    font-size: 0.729vw;
    line-height: 1.5;
    color: #fff;
    padding: 0 1.042vw;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, padding 0.3s ease;
}

/* Add border to faq-answer when expanded */
.faq-answer.active {
    padding: 1.042vw;
    opacity: 1;
    transform: translateY(0);
}

.plus-icon {
    font-size: 1.042vw;
    font-weight: bold;
    text-align: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: calc(-0.521vw-1.042vw);
}

.plus-icon.active {
    transform: rotate(45deg);
}

/* Hiệu ứng hover cho FAQ item */
.faq-item:hover::before {
    opacity: 0.9;
}

/* Style cho FAQ item khi mở */
.faq-item:has(.faq-answer.active) {
    background-color: #201E27;
    border-bottom: 1px solid #fade8333;
}

.faq-item:has(.faq-answer.active)::before {
    opacity: 0.9;
}


/* FAQ header text */
.faq-header>span:nth-child(1) {
    font-size: 0.938vw;
    color: #fff;
    font-weight: var(--fw-regular);
    padding: 0.104vw;
    text-align: left;
    margin-left: 0.521vw;
    margin-right: 0.521vw;
}

.faq-item span {
    font-size: 0.938vw;
    color: #fff;
}

/* =================== CONTACT SECTION =================== */
.contact-us {
    padding: 4.166vw 0;
    position: relative;
}

.contact-us h2 {
    text-align: center;
    margin-bottom: 2.604vw;
}

.contact-form-container {
    width: 52.083vw;
    margin: 0 auto;
    background-color: #1E1D26;
    border: 0.078vw solid transparent;
    border-radius: 1.563vw;
    padding: 2.604vw;
    position: relative;
    box-shadow: 0 0 0.781vw rgba(250, 222, 131, 0.2);
}

/* Hiệu ứng gradient nền tương tự như key-item */
.contact-form-container::after {
    content: '';
    position: absolute;
    inset: -0.260vw;
    background: linear-gradient(to bottom, #FADE83, #FFC300);
    border-radius: 1.813vw;
    z-index: -1;
    opacity: 0.2;
    filter: blur(0.781vw);
}

/* Hiệu ứng viền gradient vàng */
.contact-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 1.563vw;
    padding: 0.104vw;
    background:
        linear-gradient(135deg, #FADE83 0%, rgba(148, 131, 77, 0) 50%) top left,
        linear-gradient(315deg, #FADE83 0%, rgba(148, 131, 77, 0) 50%) bottom right;
    background-size: 100% 100%, 100% 100%;
    background-repeat: no-repeat;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.form-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.563vw;
}

.form-left-column {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
}

.form-left-column .form-group {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    margin-bottom: 1.563vw;
}

.form-left-column .form-group:last-child {
    margin-bottom: 0;
}

.form-left-column .form-group input {
    height: 2.083vw;
    box-sizing: border-box;
}

.form-group {
    margin-bottom: 1.563vw;
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 0.052vw solid #FADE83;
    padding: 0.521vw 0;
    color: rgba(250, 222, 131, 0.6);
    font-size: 0.938vw;
    font-family: 'Roboto', sans-serif;
}

.form-group textarea {
    border: 0.052vw solid #FADE83;
    border-radius: 0.260vw;
    min-height: 6.25vw;
    padding: 0.521vw;
    resize: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(250, 222, 131, 0.6);
    opacity: 0.6;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FFC300;
}

.form-submit {
    text-align: center;
    margin-top: 1.042vw;
}

.form-submit .btn-primary {
    padding: 0.625vw 2.604vw;
    font-size: 1.25vw;
}

.form-right-column {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.form-right-column .form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.form-right-column .form-group textarea {
    flex: 1;
    height: 100%;
    border: 0.052vw solid #FADE83;
    border-radius: 0.260vw;
    padding: 0.521vw;
    resize: none;
    min-height: 12.5vw;
    box-sizing: border-box;
    margin-top: 1.563vw;
}

.form-group textarea::placeholder,
.form-group input::placeholder {
    letter-spacing: 0.052vw;
    word-spacing: 0.104vw;
    padding: 1.042vw 0 0 1.042vw;
    color: rgba(250, 222, 131, 0.5);
}

/* =================== RESPONSIVE STYLES =================== */
@media (max-width: 768px) {
    /* DMS Hero */
    .dms-title {
        font-size: 5.555vw;
        /* 32px / 576 * 100 */
        letter-spacing: 0.01em;
    }

    .dms-hero-content p {
        max-width: 90%;
        font-size: 2.444vw;
        /* 14px / 576 * 100 */
        margin: 0 2.604vw;
        /* 15px / 576 * 100 */
    }

    .dms-hero-content .cta-button {
        flex-direction: column;
        align-items: center;
        gap: 2.604vw;
        /* 15px / 576 * 100 */
        margin-top: 5.208vw;
        /* 30px / 576 * 100 */
    }

    .dms-hero-content .cta-button .btn-primary {
        padding: 2.083vw 5.208vw;
        /* 12px 30px / 576 * 100 */
        font-size: 2.778vw;
        /* 16px / 576 * 100 */
    }
    /* Benefits Section */
    .key-benefits h2, .faq-content h2, .contact-us h2 {
        font-size: 5.555vw;
            /* 6.9444vw * 100 */
    }

    .benefits-wrapper {
        flex-direction: column;
        gap: 5.208vw;
        /* 30px / 576 * 100 */
        padding: 0 2.604vw;
        /* 15px / 576 * 100 */
    }

    .benefits-column {
        padding: 2.604vw 0;
        /* 15px / 576 * 100 */
    }

    .benefits-column h3 {
        font-size: 2.778vw;
        /* 16px / 576 * 100 */
        padding: 1.736vw 2.604vw;
        /* 10px 15px / 576 * 100 */
        width: 35vw;
        /* 200px / 576 * 100 */
        margin-bottom: 3.472vw;
        /* 20px / 576 * 100 */
    }

    .benefit-item {
        min-height: 2.604vw;
        /* 150px / 576 * 100 */
        padding: 3.472vw 2.604vw;
        /* 20px 15px / 576 * 100 */
    }

    .benefit-item h4 {
        font-size: 2.444vw;
        /* 14px / 576 * 100 */
    }

    .benefit-item p {
        font-size: 2.083vw;
        /* 12px / 576 * 100 */
    }
    /* FAQ Section */
    .faq-container {
        flex-direction: column;
        gap: 2.604vw;
        /* 15px / 576 * 100 */
        padding: 0 2.604vw;
        /* 15px / 576 * 100 */
        margin: 0 auto;
        max-width: 100%;
    }

    .faq-column {
        width: 100%;
        max-width: 100%;
        min-width: auto;
    }

    .faq-item {
        min-height: 8vw;
    }

    .faq-header {
        padding: 2vw;
        max-width: 100%;
    }

    .faq-header>span:nth-child(1) {
        font-size: 2.444vw;
        /* 14px / 576 * 100 */
    }

    .faq-answer {
        font-size: 2.083vw;
        padding: 0 2.604vw;
    }

    .faq-answer.active {
        padding: 2.604vw;
    }

    .faq-item {
        min-height: 10vw;
    }

    /* Contact Form */
    .contact-form-container {
        padding: 3.472vw;
        width: 75vw;
        height: 60vw;
        align-content: center;
        /* 20px / 576 * 100 */
    }

    .form-columns {
        grid-template-columns: 1fr;
        gap: 3.472vw;
        /* 20px / 576 * 100 */
    }



    .form-group {
        margin-bottom: 3.472vw;
        /* 20px / 576 * 100 */
    }

    .form-group input,
    .form-group textarea {
        font-size: 2.444vw;
        /* 14px / 576 * 100 */
        padding: 1.389vw 0;
        /* 8px / 576 * 100 */
    }

    .form-group textarea {
        min-height: 17.36vw;
        /* 100px / 576 * 100 */
        padding: 1.389vw;
        /* 8px / 576 * 100 */
    }

    .form-submit .btn-primary {
        padding: 1.736vw 5.208vw;
        /* 10px 30px / 576 * 100 */
        font-size: 2.778vw;
        /* 16px / 576 * 100 */
    }
}