/* KOKI Software Main Styles - styles.css */

/* Hiệu ứng mặt trời mọc cho logo trong about-header */
.about-header {
    position: relative;
    width: 100vw;
    height: 80vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.about-header-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* border-radius: 0 0 32px 32px; */
    /* box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15); */
}

.about-header-logo {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 50px;
    opacity: 1;
    z-index: 2;
    object-fit: contain;
}

/* Global box sizing */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Ensure html and body occupy full width */
html,
body {
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    text-align: center;
    background: #fff;
}

.logo {
    width: 180px;
    height: auto;
    margin-bottom: 10px;
}

.company-name {
    font-size: 32px;
    color: #D84315;
    font-weight: 600;
    margin: 5px 0;
}

.tagline {
    font-size: 18px;
    color: #FF8E05;
    margin-bottom: 100px;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: fixed;
    left: 0;
    bottom: 0;
    background: linear-gradient(90deg, #ffd180 0%, #fffbe6 100%);
    box-shadow: 0 -2px 12px rgba(216, 67, 21, 0.06);
    z-index: 1200;
    padding: 10px 0 6px 0;
}

.marquee-text {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 25s linear infinite;
    font-size: 13px;
    color: #D84315;
    font-weight: regular;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

@media (max-width: 600px) {
    .marquee-container {
        padding: 7px 0 4px 0;
    }

    .marquee-text {
        font-size: 15px;
    }
}

a.email-link {
    color: #D84315;
    text-decoration: underline;
}

@media (max-width: 600px) {
    .company-name {
        font-size: 24px;
    }

    .tagline {
        font-size: 16px;
    }

    .marquee-text {
        font-size: 16px;
    }
}

.contact-float-group {
    position: fixed;
    bottom: 80px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 1000;
}

.zalo-float-btn,
.swatchap-float-btn {
    position: static;
    animation: flyZalo 2s infinite alternate;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    padding: 8px;
    transition: box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swatchap-float-btn {
    animation: flySwatchap 2s infinite alternate;
}

.zalo-float-btn img,
.swatchap-float-btn img {
    width: 40px;
    height: 40px;
    display: block;
}

.zalo-float-btn:hover,
.swatchap-float-btn:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

@keyframes flyZalo {
    0% {
        transform: translateY(0) scale(1);
    }

    100% {
        transform: translateY(-12px) scale(1.08);
    }
}

@keyframes flySwatchap {
    0% {
        transform: translateY(0) scale(1);
    }

    100% {
        transform: translateY(-12px) scale(1.08);
    }
}

.main-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 80px 8px 80px;
    background: linear-gradient(90deg, #fffbe6 0%, #ffd180 100%);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1100;
    box-shadow: none;
}

.header-logo {
    width: 36px;
    height: auto;
}

.header-tools {
    display: flex;
    gap: 18px;
    margin-right: 0;
}

.tool-btn {
    background: #fffbe6;
    border: 1px solid #ffd180;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 4px rgba(216, 67, 21, 0.07);
}

.tool-btn:hover {
    background: #ffe0b2;
    box-shadow: 0 2px 8px rgba(216, 67, 21, 0.13);
}

/* Password link styled as text with underline */
.password-link {
    color: #D84315;
    text-decoration: none;
    font-weight: 500;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
}

.password-link:hover {
    color: #b32d0f;
    text-decoration: none;
}

@media (max-width: 600px) {
    .main-header {
        align-items: flex-start;
        padding: 10px 10px 6px 10px;
    }

    .header-logo {
        width: 36px;
    }

    .header-tools {
        gap: 10px;
        margin-top: 6px;
        margin-right: 0;
    }

    .tool-btn {
        font-size: 14px;
        padding: 5px 8px;
    }
}

@media (max-width: 900px) {
    .main-header {
        padding: 12px 10px 8px 10px;
    }

    .header-tools {
        gap: 10px;
        margin-right: 0;
    }
}

.header-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.header-company-name {
    font-size: 18px;
    color: #D84315;
    font-weight: 600;
    margin: 0;
    line-height: 1.1;
}

.header-tagline {
    font-size: 12px;
    color: #FF8E05;
    margin: 0;
    line-height: 1.1;
}

@media (max-width: 600px) {
    .header-company-name {
        font-size: 15px;
    }

    .header-tagline {
        font-size: 11px;
    }
}

/* About header */
.about-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #fffbe6;
    width: 100%;
    position: relative;
    z-index: 1;
    box-shadow: none;
}

.about-logo {
    width: 120px;
    height: auto;
    margin-bottom: 10px;
    border-radius: 18px;
    background: #fff;
    padding: 8px;
    box-shadow: none;
}

.about-title {
    font-size: 32px;
    color: #D84315;
    font-weight: 600;
    margin-bottom: 4px;
    letter-spacing: 1px;
}

.about-tagline {
    font-size: 18px;
    color: #FF8E05;
    margin-bottom: 10px;
    font-style: italic;
    letter-spacing: 0.5px;
}

.about-desc {
    font-size: 16px;
    color: #333;
    max-width: 600px;
    margin: 0 auto;
    margin-top: 8px;
    line-height: 1.7;
}

/* Services */
.services {
    margin: 0;
    text-align: center;
    padding: 40px 40px;
    width: 100%;
    background: #fffbe6;
    position: relative;
    z-index: 1;
    box-shadow: none;
    margin-bottom: 10px;
}

.services h2 {
    color: #D84315;
    font-size: 24px;
    /* margin-top: 10px; */
    margin-bottom: 40px;
}

.service-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    justify-content: center;
    align-items: stretch;
    margin-bottom: 20px;
}

.service-item {
    background: #fff;
    border-radius: 14px;
    padding: 20px 20px 20px 20px;
    width: 320px;
    min-height: 200px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: stretch;
    transition: box-shadow 0.2s, transform 0.2s;
    /* border: 1.5px solid #ffd180; */
    box-shadow: none;
}

.service-item:hover {
    box-shadow: 0 8px 24px rgba(216, 67, 21, 0.13);
    transform: translateY(-4px) scale(1.03);
}

.service-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.service-title {
    font-size: 18px;
    font-weight: 600;
    color: #D84315;
    margin-bottom: 6px;
}

.service-desc {
    font-size: 15px;
    color: #444;
}

@media (max-width: 900px) {
    .service-list {
        flex-wrap: wrap;
    }
}

/* Clients */
.clients {
    margin: 0 auto 0 auto;
    text-align: center;
    padding: 40px 40px;
    width: 100%;
    background: #ffff;
    position: relative;
    z-index: 1;
    box-shadow: none;
}

.clients h2 {
    color: #D84315;
    font-size: 24px;
    margin-bottom: 40px;
}

.client-list {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.client-item {
    padding: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 12px;
    background: #fffbe6;
    transition: box-shadow 0.2s, transform 0.2s;
    box-shadow: none;
}

.client-item:hover {
    box-shadow: 0 4px 4px rgba(216, 67, 21, 0.13);
    transform: translateY(-4px) scale(1.03);
}

.client-logo {
    width: 150px;
    height: 150px;
    object-fit: contain;
    background: #fffbe6;
    border-radius: 8px;
    /* border: 1px solid #ffd180; */
    padding: 20px;
}

.client-name {
    font-size: 16px;
    color: #D84315;
    font-weight: 500;
}

@media (max-width: 900px) {

    .service-list,
    .client-list {
        flex-direction: column;
        align-items: center;
        gap: 18px;
    }

    .service-item,
    .client-item {
        width: 80vw;
        min-width: unset;
        max-width: 340px;
    }
}

@media (max-width: 600px) {
    .about-header {
        margin-top: 60px;
    }

    .about-title {
        font-size: 22px;
    }

    .about-tagline {
        font-size: 14px;
    }

    .about-desc {
        font-size: 14px;
    }

    .service-list {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 14px;
        margin-left: auto;
        margin-right: auto;
        width: 90%;
        max-width: 90vw;
        box-sizing: border-box;
        padding-left: 0;
        padding-right: 0;
    }

    .service-item {
        width: 90vw;
        max-width: 360px;
        min-width: unset;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
        padding: 12px 10px 12px 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .client-item {
        width: 80vw;
        margin-left: auto;
        margin-right: auto;
        padding: 10px 8px 6px 8px;
    }
}

/* Contact section mới giống mẫu, 2 cột rõ ràng, phẳng, bo góc lớn */
.contact-section {
    margin: 0 auto 20px auto;
    background: #fffbe6;
    border-radius: 0;
    padding: 18px 2px 36px 2px;
    box-shadow: none;
    text-align: center;
    align-items: center;
}

.contact-section h2 {
    color: #D84315;
    font-size: 24px;
    /* margin-top: 10px; */
    margin: 40px auto 40px auto;
}

.contact-flex {
    display: flex;
    max-width: 920px;
    gap: 36px;
    justify-content: center;
    align-items: stretch;
    /* để các cột con cao bằng nhau */
    background: none;
    margin: 0 auto;
}

.contact-info,
.contact-form {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    border-radius: 24px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: none;
    margin: 0;
    padding: 36px 18px 28px 18px;
    /* đồng bộ padding giữa 2 cột */
    min-height: 400px;
    /* đảm bảo chiều cao tối thiểu bằng nhau */
}

.contact-info {
    background: #ffd180;
    /* đổi màu nền cho phù hợp với màu nền tổng thể */
    border-radius: 24px;
    padding: 36px 18px 28px 18px;
    box-shadow: none;
    margin-bottom: 0;
    flex: 1 1 0;
    justify-content: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.contact-logo {
    width: 72px;
    height: 72px;
    margin-bottom: 18px;
    border-radius: 16px;
    background: #fff;
    padding: 8px;
    box-shadow: none;
}

.contact-company {
    font-size: 28px;
    color: #D84315;
    font-weight: 700;
    margin-bottom: 4px;
    font-family: 'Inter', sans-serif;
}

.contact-tagline {
    font-size: 20px;
    color: #222;
    font-weight: 500;
    margin-bottom: 28px;
    font-family: 'Inter', sans-serif;
}

.contact-title {
    font-size: 26px;
    color: #222;
    font-weight: 700;
    margin-bottom: 18px;
    font-family: 'Inter', sans-serif;
    text-align: center;
}

.contact-detail {
    font-size: 18px;
    color: #222;
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
}

.contact-detail b {
    color: #222;
    font-weight: 600;
}

.contact-detail a {
    color: #222;
    text-decoration: none;
    font-weight: 600;
}

.contact-form {
    background: #fff;
    border-radius: 24px;
    padding: 36px 18px 28px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 10px;
}

.contact-form label {
    font-weight: 600;
    color: #222;
    margin-bottom: 2px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    text-align: left;
}

.contact-form input,
.contact-form textarea {
    border: 1.5px solid #e0c080;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 17px;
    font-family: 'Inter', sans-serif;
    background: #fff;
    color: #222;
    transition: border 0.2s;
    outline: none;
    margin-bottom: 10px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border: 1.5px solid #FFD180;
}

.contact-form textarea {
    min-height: 90px;
    max-height: 220px;
    resize: vertical;
}

.contact-form button {
    background: #D84315;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 16px 0;
    font-size: 18px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: none;
}

.contact-form button:hover {
    background: #b32d0f;
}

.contact-success {
    color: #388e3c;
    font-weight: 500;
    margin-top: 10px;
    text-align: left;
    font-size: 16px;
}

.vision-mission-section {
    width: 100%;
    /* margin: 0 auto 00px auto; */
    background: #fff;
    /* border-radius: 18px; */
    /* box-shadow: 0 2px 16px #ffd18033; */
    padding: 36px 24px 40px 24px;
    text-align: center;
}

.vision-title {
    color: #D84315;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 32px;
    letter-spacing: 1px;
}

.vision-mission-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    align-items: stretch;
}

.vision-block,
.mission-block {
    flex: 1 1 320px;
    min-width: 280px;
    max-width: 500px;
    background: #fff;
    border-radius: 14px;
    padding: 28px 24px 22px 24px;
    box-shadow: 0 2px 12px #ffd18022;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
}

.vision-heading,
.mission-heading {
    color: #D84315;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.vision-text,
.mission-text {
    color: #333;
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
}

.vision-mission-section {
    padding: 40px 20px;
    background-color: #fff;
    text-align: center;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #D84315;
    margin-bottom: 60px;
}

.vision-mission-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}

.card {
    background: #fffbe6;
    border-radius: 20px;
    padding: 30px;
    width: 420px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    margin-bottom: 30px;
}

.card:hover {
    transform: translateY(-10px);
}

.card img {
    width: 80px;
    height: 80px;
}

.card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #D84315;
}

.card p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}

.card i {
    color: #f4b400;
    margin-right: 10px;
}

@media (max-width: 900px) {

    .service-list,
    .client-list {
        flex-direction: column;
        align-items: center;
        gap: 18px;
    }

    .service-item,
    .client-item {
        width: 90vw;
        min-width: unset;
        max-width: 320px;
    }

    .vision-mission-content {
        flex-direction: column;
        gap: 18px;
    }
}

@media (max-width: 600px) {
    .contact-section {
        padding-top: 2px;
        padding-bottom: 8px;
        padding-left: 24px;
        padding-right: 24px;
    }

    .contact-flex {
        flex-direction: column;
        gap: 12px;
        max-width: 100vw;
        width: 100%;
        align-items: stretch;
    }

    .contact-info,
    .contact-form {
        border-radius: 12px;
        padding: 10px 20px 10px 20px;
        min-height: unset;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }

    .contact-logo {
        width: 48px;
        height: 48px;
        margin-bottom: 10px;
    }

    .contact-company {
        font-size: 18px;
    }

    .contact-tagline {
        font-size: 13px;
        margin-bottom: 14px;
    }

    .contact-title,
    .contact-form-title {
        font-size: 18px;
    }

    .contact-detail {
        font-size: 14px;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 15px;
        padding: 10px 8px;
    }

    .contact-form button {
        font-size: 15px;
        padding: 12px 0;
    }

    .service-list {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 14px;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
        padding-left: 0;
        padding-right: 0;
    }

    .service-item {
        width: 80vw;
        max-width: 360px;
        min-width: unset;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
        padding: 14px 10px 12px 10px;
        padding-left: 6px;
        padding-right: 6px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* Hero header styles */
.hero-header {
    position: relative;
    width: 100vw;
    min-height: 85vh;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
    padding-bottom: 40px;
    box-sizing: border-box;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100%;
    /* Gradient chuyển tiếp mượt từ header sang footer */
    background: radial-gradient(circle at 100% 0%, #ffd180 0%, #fffbe6 40%, #fffbe6 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 900;
    margin-bottom: 18px;
    line-height: 1.1;
    color: #7a0000;
    letter-spacing: 1px;
}

.hero-content h2 {
    font-size: 2.5 rem;
    font-weight: 700;
    line-height: 1.1;
    color: #7a0000;
    letter-spacing: 1px;
}

.hero-title-strong {
    color: #e53935;
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: inline-block;
}

.hero-title-bold {
    color: #FF8E05;
    font-weight: 900;
    font-size: 3.2rem;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #444;
    margin-bottom: 36px;
    margin-top: 10px;
    font-weight: 400;
    line-height: 1.6;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    background: #e53935;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 32px;
    padding: 16px 38px;
    text-decoration: none;
    box-shadow: 0 4px 24px #ffd18055;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
    margin-top: 10px;
}

.hero-btn:hover {
    background: #b71c1c;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 8px 32px #ffd18099;
}

.hero-btn-arrow {
    font-size: 1.5em;
    margin-left: 12px;
    display: inline-block;
}

@media (max-width: 900px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-title-strong {
        font-size: 2.7rem;
    }

    .hero-title-bold {
        font-size: 2.2rem;
    }

    .hero-content {
        max-width: 98vw;
    }
}

@media (max-width: 600px) {
    .hero-header {
        min-height: 80vh;
        height: 80vh;
        padding-top: 40px;
    }

    .hero-title {
        font-size: 1.3rem;
    }

    .hero-title-strong {
        font-size: 1.7rem;
    }

    .hero-title-bold {
        font-size: 1.3rem;
    }

    .hero-btn {
        font-size: 1rem;
        padding: 12px 18px;
    }
}