* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Arial', sans-serif;
    background: url('img/1920X1080.png') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Background pattern */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 2px, transparent 2px);
    background-size: 40px 40px, 25px 25px, 50px 50px;
    /* animation: float 20s ease-in-out infinite; */
    z-index: -1;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(20px, -20px) rotate(120deg);
    }

    66% {
        transform: translate(-15px, 15px) rotate(240deg);
    }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 20px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: -20px;
}

.logo-icon {
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

.logo-icon img {
    height: 100px;
    width: auto;
    object-fit: contain;
}

.logo-text h1 {
    font-size: 1.8rem;
    color: #fff;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 3px;
}

.logo-text p {
    font-size: 0.7rem;
    color: #fff;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Main title */
.main-title {
    text-align: center;
    margin-bottom: 10px;
}

.main-title h2 {
    font-size: 2rem;
    color: #FF7F50;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

/* Mobile contact info - ẩn trên desktop */
.mobile-contact-info {
    display: none;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.mobile-contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: white;
    padding: 8px 12px;
    margin-bottom: 0;
    font-weight: 500;
    font-size: 16px;
    background: linear-gradient(135deg, #FFB366, #FF7F50);
    border-radius: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    flex: 1;
}

.mobile-contact-item i {
    font-size: 1rem;
}

/* Main content layout */
.main-content {
    gap: 20px;
    display: flex;
    height: 310px;
    margin-bottom: 25px;
}

/* Services grid */
.services-grid {
    display: flex;
    gap: 49px;
    max-width: 740px;
    flex-wrap: wrap;
}

.service-item {
    background: rgba(255, 255, 255, 0.9);
    border: 3px solid #FF7F50;
    border-radius: 15px;
    padding: 15px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    height: 140px;
    width: 120px;
}

.service-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(255, 127, 80, 0.3);
    background: rgba(255, 255, 255, 1);
}

.service-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    text-decoration: none;
    z-index: 10;
}

.service-icon {
    font-size: 60px;
    color: #FF7F50;
    margin-bottom: 8px;
}

.service-text {
    font-size: 0.75rem;
    font-weight: bold;
    color: #FF7F50;
    text-transform: uppercase;
}

/* Ambassador details section */
.ambassador-details-section {
    display: flex;
    gap: 20px;
    height: 100%;
}

.ambassador-info {
    align-items: center;
    gap: 15px;
}

.ambassador-image img {
    width: 285px;
    height: auto;
    border-radius: 15px;
    object-fit: contain;
}

.ambassador-details h3 {
    font-size: 1.1rem;
    color: #FF7F50;
    font-weight: bold;
    margin-bottom: 6px;
}

.ambassador-details p {
    color: #666;
    font-size: 0.8rem;
}

.signature img {
    width: 80px;
    height: 20px;
}

.download-section {
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.download-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    color: white;
    border-radius: 10px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.download-item:hover {
    transform: translateX(3px);
    box-shadow: 0 6px 15px rgba(255, 127, 80, 0.3);
}

.download-item .download-icon {
    font-size: 1.2rem;
}

.download-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 0.8rem;
}

.download-text img {
    height: 60px;
    width: 315px;
    object-fit: contain;
}

.contact-info {
    margin-top: 15px;
    background: linear-gradient(135deg, #FFB366, #FF7F50);
    border-radius: 8px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 20px;
}

.contact-item i {
    font-size: 1rem;
}

/* Support channels */
.support-channels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0px;
    margin-top: 25px;
}

.support-section,
.channels-section {
    background: url('img/button1.png') no-repeat center center;
    background-size: contain;
    backdrop-filter: blur(10px);
    width: fit-content;
    min-width: 650px;
}

.section-title {
    background: linear-gradient(135deg, #FFB366, #FF7F50);
    color: white;
    text-align: center;
    padding: 9px 21px;
    border-radius: 10px;
    margin-bottom: 25px;
    font-size: 1.3rem;
    font-weight: bold;
    text-transform: uppercase;
    width: 41%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
}

.support-grid,
.channels-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    justify-items: center;
    align-items: start;
    margin-bottom: 20px;
}

.support-item,
.channel-item {
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: none;
    position: relative;
    width: 100px;
    height: 120px;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.support-item a,
.channel-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: white;
}

.support-icon,
.channel-icon {
    background: linear-gradient(135deg, #FFB366, #FF7F50);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    margin-bottom: 10px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.support-icon i,
.channel-icon i {
    font-size: 40px;
    color: white;
}

.support-text,
.channel-text {
    background: linear-gradient(135deg, #FFB366, #FF7F50);
    font-size: 0.7rem;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
    line-height: 1.1;
    padding: 4px 8px;
    border-radius: 10px;
    width: 100px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
    flex-shrink: 0;
}

.support-item:hover .support-icon,
.channel-item:hover .channel-icon {
    transform: translateY(-3px) scale(1.05);
    background: linear-gradient(135deg, #2196f3, #00bcd4);
    box-shadow: 0 8px 15px rgba(33, 150, 243, 0.4);
}

.support-item:hover .support-text,
.channel-item:hover .channel-text {
    background: linear-gradient(135deg, #2196f3, #00bcd4);
    transform: translateY(-2px);
}

/* Speed links */
.speed-links {
    text-align: center;
}

.speed-title-image {
    margin-bottom: 20px;
}

.speed-title-image img {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

.speed-links h3 {
    color: #fff;
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.link-item {
    background: linear-gradient(135deg, #FF7F50, #FFB366);
    color: white;
    padding: 20px 25px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: bold;
    font-size: 1.2rem;
}

.link-item:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(255, 127, 80, 0.4);
}

.link-item i {
    font-size: 1.4rem;
}

/* Responsive design */
@media (max-width: 1200px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .services-grid {
        max-width: 100%;
        margin: 0 auto;
        grid-template-columns: repeat(4, 1fr);
    }

    .ambassador-details-section {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .support-channels {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .links-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Media query tối ưu cho kích thước 573x1088 */
@media (max-width: 600px) and (min-width: 550px) {
    .container {
        padding: 20px;
        max-width: 573px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .logo-icon img {
        height: 80px;
    }

    .main-title {
        order: 1;
        margin-bottom: 25px;
    }

    .main-title h2 {
        font-size: 1.8rem;
        margin-bottom: 20px;
        text-align: center;
    }

    /* Hiển thị mobile contact info */
    .mobile-contact-info {
        display: flex;
        margin-bottom: 25px;
        padding: 0 20px;
        gap: 15px;
        width: 100%;
        max-width: 533px;
    }

    .mobile-contact-item {
        font-size: 16px;
        padding: 12px 16px;
        border-radius: 12px;
        flex: 1;
    }

    .main-content {
        order: 2;
        display: block !important;
        width: 100%;
        margin-bottom: -95px;
    }

    .services-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
        max-width: 533px;
        margin: 0 auto;
        justify-items: center;
    }

    .service-item {
        width: 125px;
        height: 72px;
        padding: 16px 12px;
        border: 3px solid #FF7F50;
        border-radius: 15px;
    }

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

    .service-text {
        font-size: 0.75rem;
        font-weight: bold;
        line-height: 1.2;
    }

    .ambassador-details-section {
        display: none !important;
    }

    .support-channels {
        order: 3;
        display: flex;
        flex-direction: column;
        gap: 30px;
        width: 100%;
        max-width: 533px;
        margin: 0 auto;
    }

    .support-section,
    .channels-section {
        background: url('img/button1.png') no-repeat center center;
        background-size: 100% 100%;
        width: 100%;
        padding: 30px 20px;
        border-radius: 15px;
        min-height: 220px;
    }

    .section-title {
        font-size: 1.2rem;
        padding: 12px 24px;
        margin-bottom: 25px;
        width: 55%;
        margin-left: auto;
        margin-right: auto;
    }

    .support-grid,
    .channels-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 18px;
        justify-items: center;
        max-width: 100%;
    }

    .support-item,
    .channel-item {
        width: 105px;
        height: 115px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .support-icon,
    .channel-icon {
        width: 75px;
        height: 75px;
        margin-bottom: 12px;
    }

    .support-icon i,
    .channel-icon i {
        font-size: 38px;
    }

    .support-text,
    .channel-text {
        font-size: 0.7rem;
        width: 90px;
        padding: 6px 10px;
        border-radius: 10px;
        min-height: 20px;
        text-align: center;
    }

    .speed-links {
        order: 4;
        margin-top: 25px;
        width: 100%;
        max-width: 533px;
        margin-left: auto;
        margin-right: auto;
    }

    .speed-title-image {
        margin-bottom: 25px;
    }

    .speed-title-image img {
        height: 22px;
    }

    .links-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        max-width: 100%;
    }

    .link-item {
        padding: 20px 16px;
        font-size: 1.15rem;
        border-radius: 20px;
    }

    .link-item i {
        font-size: 1.35rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .logo-icon img {
        height: 70px;
    }

    .main-title {
        order: 1;
    }

    .main-title h2 {
        font-size: 1.6rem;
        margin-bottom: -26px;
    }

    /* Hiển thị mobile contact info */
    .mobile-contact-info {
        display: flex;
        margin-bottom: 20px;
        padding: 0 15px;
    }

    .main-content {
        order: 2;
        display: block !important;
        grid-template-columns: none !important;
        align-items: center;
    }

    .services-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        margin-top: 20px;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        justify-self: center;
    }

    .ambassador-details-section {
        display: none !important;
    }

    .service-item {
        padding: 10px 6px;
    }

    .service-icon {
        font-size: 1.5rem;
        margin-bottom: 5px;
    }

    .service-text {
        font-size: 0.6rem;
        font-weight: bold;
    }

    .ambassador-info {
        text-align: center;
        padding: 15px;
    }

    .ambassador-image img {
        width: 120px;
        height: 115px;
    }

    .contact-item {
        padding: 8px 12px;
        font-size: 0.75rem;
    }

    .support-channels {
        order: 3;
        grid-template-columns: 1fr !important;
        gap: 20px;
        padding: 10px;
        max-width: 100%;
    }

    .support-section,
    .channels-section {
        background: url('img/button1.png') no-repeat left center;
        background-size: 77% auto;
        backdrop-filter: blur(10px);
        width: 100%;
        margin: 0;
        padding: 8px;
        border-radius: 15px;
    }

    .section-title {
        background: linear-gradient(135deg, #FFB366, #FF7F50);
        color: white;
        text-align: center;
        padding: 6px 10px;
        border-radius: 15px;
        margin-bottom: 15px;
        /* font-size: 1rem; */
        font-weight: bold;
        text-transform: uppercase;
        width: fit-content;
        margin-left: 146px;
        margin-right: auto;
        margin-bottom: 19px;
        margin-top: 20px;
    }

    .support-grid,
    .channels-grid {
        grid-template-columns: repeat(4, 0.19fr);
        gap: 19px;
        justify-items: center;
    }

    .support-item,
    .channel-item {
        width: 50px;
        height: 70px;
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .support-icon,
    .channel-icon {
        background: linear-gradient(135deg, #FFB366, #FF7F50);
        width: 60px;
        height: 60px;
        margin-bottom: 8px;
    }

    .support-icon i,
    .channel-icon i {
        font-size: 1.4rem;
    }

    .support-text,
    .channel-text {
        background: linear-gradient(135deg, #FFB366, #FF7F50);
        font-size: 0.6rem;
        width: 60px;
        padding: 3px 6px;
        border-radius: 8px;
        min-height: 16px;
    }

    .speed-links {
        order: 4;
        text-align: center;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .speed-title-image {
        text-align: center;
        width: 100%;
        margin-bottom: 15px;
    }

    .links-grid {
        display: flex;
        flex-direction: row;
        gap: 4px;
        max-width: 400px;
        margin: 0 auto;
        justify-content: center;
        flex-wrap: wrap;
    }

    .link-item {
        padding: 15px 20px;
        font-size: 1rem;
        flex: 1;
        min-width: 105px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 12px;
        display: block;
    }

    .logo-icon img {
        height: 60px;
    }

    .main-title h2 {
        font-size: 19px;
        margin-bottom: 15px;
        text-align: center;
    }

    /* Hiển thị mobile contact info */
    .mobile-contact-info {
        display: flex;
        margin-bottom: 15px;
        padding: 0 12px;
    }

    .mobile-contact-item {
        font-size: 14px;
        padding: 6px 10px;
        margin-bottom: 0;
    }

    .main-content {
        display: block !important;
        grid-template-columns: none !important;
        height: fit-content;
    }

    .services-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
        margin-top: 15px;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        justify-items: center;
        width: 100%;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        margin: 0;
        justify-content: space-between;
    }

    .ambassador-details-section {
        display: none !important;
    }

    .support-channels {
        grid-template-columns: 1fr !important;
        gap: 25px;
        padding: 0px;
        max-width: 100%;
        margin-top: 30px;
        display: flex;
        flex-direction: column;
    }

    .support-section,
    .channels-section {
        background: url('img/button1.png') no-repeat left center;
        background-size: 100% 100%;
        backdrop-filter: blur(10px);
        width: 100%;
        margin: 0;
        padding: 8px;
        border-radius: 0px;
        min-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding-top: 25px;
    }

    .section-title {
        background: linear-gradient(135deg, #FFB366, #FF7F50);
        color: white;
        text-align: center;
        padding: 8px 4px;
        border-radius: 8px;
        font-size: 12px;
        font-weight: bold;
        text-transform: uppercase;
        margin-top: -36px;
        width: 42%;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 19px;
    }

    .support-grid,
    .channels-grid {
        grid-template-columns: repeat(4, 0.0fr);
        gap: 5px;
        justify-items: start;
    }

    .support-item,
    .channel-item {
        width: 80px;
        height: 80px;
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .support-icon,
    .channel-icon {
        background: linear-gradient(135deg, #FFB366, #FF7F50);
        display: flex;
        align-items: center;
        justify-content: center;
        clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
        margin-bottom: 5px;
        flex-shrink: 0;
    }

    .support-icon i,
    .channel-icon i {
        font-size: 40px;
        color: white;
    }

    .support-text,
    .channel-text {
        background: linear-gradient(135deg, #FFB366, #FF7F50);
        font-size: 8px;
        width: 95%;
        padding: 2px 3px;
        border-radius: 20px;
        min-height: 10px;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        color: white;
        font-weight: bold;
        text-transform: uppercase;
        flex-shrink: 0;
        padding: 5px 6px;
    }

    .service-item {
        border: 2px solid #FF7F50;
        padding: 8px 4px;
        height: 93px;
        max-height: 120px;
        min-height: 23vw;
        border-radius: 15px;
        width: calc(25% - 5px);
    }

    .service-icon {
        font-size: 40px;
        margin-bottom: 4px;
    }

    .service-text {
        font-size: 12px;
        font-weight: bold;
        line-height: 1.1;
    }

    .speed-links {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .speed-title-image {
        text-align: center;
        width: 100%;
    }

    .links-grid {
        display: flex;
        gap: 8px;
        max-width: 100%;
        margin: 0 auto;
    }

    .link-item {
        padding: 12px 15px;
        font-size: 0.9rem;
        border-radius: 15px;
    }

    .link-item i {
        font-size: 1rem;
    }

    .speed-title-image img {
        height: 25px;
        transform: scale(1.6);
        width: 100%;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 8px;
    }

    .logo-icon img {
        height: 50px;
    }

    .main-title h2 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .services-grid {
        gap: 4px;
    }

    .service-item {
        padding: 6px 3px;
    }

    .service-icon {
        font-size: 1rem;
    }

    .service-text {
        font-size: 0.45rem;
    }

    .support-grid,
    .channels-grid {
        gap: 6px;
    }

    .support-item,
    .channel-item {
        padding: 8px 4px;
    }

    .support-icon,
    .channel-icon {
        font-size: 1.1rem;
    }

    .support-text,
    .channel-text {
        font-size: 0.55rem;
    }

    .contact-item {
        font-size: 0.6rem;
        padding: 4px 8px;
    }

    .section-title {
        font-size: 0.75rem;
        padding: 6px;
    }

    .link-item {
        padding: 10px 12px;
        font-size: 0.8rem;
    }
}
