/* General Styles */
/* Global Variables */
:root {
    --primary-color: #24dfad;
    --secondary-color: #0a192f;
    --accent-color: #e9b44c;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --gradient-primary: linear-gradient(135deg, #0a192f 0%, #1a1a1a 100%);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}


.logo img {
    height: 50px;
}

.navDiv {
    display: none;
}

header {
    background-image: linear-gradient(135deg, rgba(7, 11, 16, 0.95) 0%, rgba(26, 26, 26, 0.95) 100%),
        url('./images/Data\ Circle.gif');
}

header label {
    font-size: 24px;
    color: #fff;
}

/* stats Section */

.stats-section {
    background:
        linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url('./images/Data\ Circle.gif');
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 20px;
    background-position: center;
}

.stat-box {
    text-align: center;
    background: #243642;
    padding: 15px 25px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

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


/* Hero Section */
.hero {
    position: relative;
    text-align: center;
    color: white;
}


.hero video {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.hero .title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
    max-width: 800px;
}

.hero .title h1 {
    font-size: 48px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.hero .title p {
    font-size: 24px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

@media (max-width: 1024px) {
    .hero .title h1 {
        font-size: 40px;
    }

    .hero .title p {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .hero .title h1 {
        font-size: 32px;
    }

    .hero .title p {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .hero .title {
        width: 95%;
    }

    .hero .title h1 {
        font-size: 28px;
        margin-bottom: 8px;
    }

    .hero .title p {
        font-size: 16px;
        margin-bottom: 15px;
    }
}


.hero .cta-button {
    margin-top: 20px;
    background-color: white;
    color: black;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 18px;
    transition: background-color 0.3s;
}

.hero .cta-button:hover {
    background-color: #f57c00;
}

/* Team Details Section */
.team_details {
    background-image:
        linear-gradient(135deg, #0a192fa5 0%, #1a1a1a97 100%),
        url('images/tree.gif');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    min-height: 100vh;
    width: 100%;
    padding: 4rem 0;
    text-align: center;
    z-index: -2;
}

.team_details::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.432);
    z-index: -1;
}


.team_details h2 {
    font-size: 36px;
    margin-bottom: 40px;
    color: white;
}

.team_details h2 {
    font-size: 36px;
    margin-bottom: 40px;
}

.team_details .tech-container .tech-card {
    width: 512px;
}

/* Technologies Section */
.technologies {
    background: linear-gradient(135deg, #0a192f 0%, #1a1a1a 100%);
    padding: 70px 0;
    text-align: center;
}

h2 {
    font-size: 3.6rem;
    margin-bottom: 40px;
    color: #24dfad;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 20px;
    color: #24dfad;
    text-shadow: 0 0 10px rgba(36, 223, 173, 0.5);
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #e9b44c;
    /* Changed to accent color */
    box-shadow: 0 0 10px rgba(233, 180, 76, 0.5);
    /* Updated shadow color to match */
    border-radius: 2px;
}

.tech-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    padding: 0 20px;
}

.tech-card {
    background-color: #f1f1f1;
    border-radius: 8px;
    width: 300px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.tech-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.tech-card h3 {
    margin: 20px 0 10px;
    font-size: 24px;
    color: #333;
}

.tech-card h4 {
    margin: 20px 0 10px;
    font-size: 18px;
    color: #666;
    font-weight: lighter;
}

.tech-card h5 {
    margin: 20px 0 10px;
    font-size: 16px;
    font-weight: 800;
}


.tech-card p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.tech-card .read-more {
    color: #ff9800;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.4rem;
}


.tech-card .read-more:hover {
    text-decoration: underline;
}

/* Team Section */
.team {
    padding: 30px 0;
    background: linear-gradient(135deg, #0a192f 0%, #1a1a1a 100%);
    text-align: center;
}

.team h3 {
    padding-top: 4rem;
    font-size: large;
}

.team .outline p {
    padding: 2rem;
    font-size: medium;
    align-items: center;
    padding-right: 20rem;
    padding-left: 20rem;
}

.team h2 {
    font-size: 28px;
    /* Slightly smaller heading */
    margin-bottom: 30px;
}



.team-member {
    flex: 1;
    min-width: 200px;
    background: #16605de4;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(36, 223, 173, 0.1);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.team-member:hover {
    transform: translateY(-10px);
    background: rgba(36, 54, 66, 0.95);
    border: 1px solid rgba(36, 223, 173, 0.3);
    box-shadow: 0 15px 30px rgba(36, 223, 173, 0.15);
}


.team-member:hover img {
    transform: scale(1.05);
    border-color: #e9b44c;
}

.team-member h3 {
    color: #e9b44c;
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: color 0.4s ease;
}

.team-member:hover h3 {
    color: #fff;
}

.team-member p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.4rem;
    line-height: 1.6;
    margin-bottom: 35px;
    font-weight: 600;
}

.team-member p strong {
    color: #24dfad;
    font-size: 1.5rem;
    display: block;
    margin-bottom: 8px;
}

.team-member:hover p strong {
    color: #e9b44c;
}

/* Container styling */
.team-container {
    display: flex;
    gap: 25px;
    padding: 20px;
    max-width: 1600px;
    margin: 0 auto;
    flex-wrap: nowrap;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .team-container {
        flex-wrap: wrap;
        justify-content: center;
    }

    .team-member {
        flex: 0 1 calc(33.33% - 25px);
    }
}

@media (max-width: 768px) {
    .team-member {
        flex: 0 1 calc(50% - 25px);
    }
}

@media (max-width: 480px) {
    .team-member {
        flex: 0 1 100%;
    }
}

/* Hover More Details */


.toggle-details:hover {
    color: #ff9800;
}



/* Hidden More Details Section */
#details {
    display: none;
    opacity: 1;
    transition: opacity 1s ease;
}

/* Smooth transition for showing content */
.show {
    display: block;
    opacity: 1;
}

/* Responsive design for smaller screens */
@media (max-width: 1024px) {
    .team-member {
        width: 30%;
        /* 3 members per row on medium screens */
    }
}

@media (max-width: 768px) {
    .team-member {
        width: 48%;
        /* 2 members per row on smaller screens */
    }
}

@media (max-width: 480px) {
    .team-member {
        width: 100%;
        /* Full width on mobile screens */
    }
}



/* Call to Action Section */
.cta {
    background: linear-gradient(135deg, #1a4645 0%, #0d3534 100%);
    color: #fff;
    padding: 50px 0;
    text-align: center;
}

.cta h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.cta p {
    font-size: 20px;
    margin-bottom: 40px;
}

.cta .cta-button {
    margin-top: 5px;
    /* Điều chỉnh khoảng cách theo nhu cầu của bạn */
    padding: 10px 20px;
    background-color: #18764E;
    /* Ví dụ về màu nền */
    color: white;
    text-decoration: none;
    border-radius: 5px;

}

.cta .cta-button:hover {
    background-color: #20A069;
}

/* Footer */
footer {
    background-color: #212121;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

footer a {
    color: #ff9800;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tech-container {
        flex-direction: column;
        align-items: center;
    }

    .team-member {
        width: 100%;
    }
}

/* Add new responsive styles */
@media (max-width: 1200px) {
    .tech-card {
        width: calc(50% - 40px);
        min-width: 280px;
    }
}

@media (max-width: 992px) {
    .tech-container {
        gap: 30px;
    }

    .tech-card {
        width: calc(50% - 30px);
    }
}

@media (max-width: 768px) {
    .tech-container {
        gap: 20px;
    }

    .tech-card {
        width: 100%;
        max-width: 400px;
    }

    .tech-card h3 {
        font-size: 20px;
    }

    .tech-card p {
        font-size: 14px;
    }

    .tech-card .read-more {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .tech-container {
        padding: 0 15px;
    }

    .tech-card {
        padding: 15px;
    }
}

/* Hero Section Enhancement */
.about-hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-image: linear-gradient(135deg, rgba(10, 25, 47, 0.8) 0%, rgba(26, 26, 26, 0.8) 100%),
        url('./images/Data\ Circle.gif');
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    background-size: cover;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 0;
}

.about-hero .hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    max-width: 800px;
    padding: 0 20px;
}

.about-hero h1 {
    font-size: 4.5rem;
    margin-bottom: 20px;
    color: #24dfad;
    text-shadow: 0 0 20px rgba(36, 223, 173, 0.3);
}

.hero-subtitle {
    font-size: 2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.highlight {
    color: var(--primary-color);
    font-weight: 600;
}

.about-hero p {
    font-size: 1.8rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 25px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: bold;
    color: #24dfad;
    margin-bottom: 3px;
}

.stat-label {
    font-size: 1.4rem;
    color: #fff;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes patternFloat {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 100% 100%;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-hero h1 {
        font-size: 4rem;
    }

    .hero-subtitle {
        font-size: 1.6rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .team-container {
        flex-wrap: wrap;
    }

    .team-member {
        max-width: calc(33.33% - 20px);
    }
}

@media (max-width: 768px) {
    .team-member {
        max-width: calc(50% - 20px);
    }
}

@media (max-width: 480px) {
    .team-member {
        max-width: 100%;
    }
}

/* Stats Section */
.stats-section {
    padding: 10px 0;
    background-image: linear-gradient(135deg, rgba(7, 11, 16, 0.95) 0%, rgba(26, 26, 26, 0.95) 100%),
        url('./images/Data\ Circle.gif');
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    background-size: cover;
    position: relative;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
    gap: 30px;
}

.stat-box {
    text-align: center;
    padding: 15px;
    background: rgba(36, 54, 66, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(36, 223, 173, 0.1);
    transition: all 0.4s ease;
}

.stat-box:hover {
    transform: translateY(-10px);
    border-color: rgba(36, 223, 173, 0.3);
    box-shadow: 0 15px 30px rgba(36, 223, 173, 0.15);
}

.stat {
    font-size: 2.5rem;
    font-weight: 700;
    color: #24dfad;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.3rem;
    color: #fff;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Team Section */
.team-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #0a192f 0%, #1a1a1a 100%);
}

.section-title {
    text-align: center;
    color: #fff;
    font-size: 3.5rem;
    margin-bottom: 50px;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: #24dfad;
    margin: 20px auto;
}



.team-member {
    flex: 1;
    background: rgba(36, 54, 66, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(36, 223, 173, 0.1);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.4s ease;
}

.team-member:hover {
    transform: translateY(-10px);
    border-color: rgba(36, 223, 173, 0.3);
    box-shadow: 0 15px 30px rgba(36, 223, 173, 0.15);
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 3px solid #fff;
    padding: 5px;
}

.team-member h3 {
    color: #24dfad;
    font-size: 2rem;
    margin-bottom: 10px;
    min-height: 60px;
    /* Đảm bảo chiều cao tối thiểu cho tên dài */
    display: -webkit-box;
    /* Giới hạn tối đa 2 dòng */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.team-member p {
    color: #fff;
    font-size: 1.4rem;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .team-container {
        flex-wrap: wrap;
    }

    .team-member {
        flex: 0 1 calc(33.33% - 20px);
    }
}

@media (max-width: 768px) {
    .stats-container {
        flex-direction: column;
        padding: 0 20px;
    }

    .team-member {
        flex: 0 1 calc(50% - 20px);
    }

    .about-hero h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 480px) {
    .team-member {
        flex: 0 1 100%;
    }

    .stat {
        font-size: 3rem;
    }

    .stat-label {
        font-size: 1.5rem;
    }
}

.team-member .details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.4rem;
    line-height: 1.6;
}

.team-member .details.active {
    max-height: 500px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(36, 223, 173, 0.2);
}

.team-member .toggle-details {
    background: transparent;
    border: 1px solid #24dfad;
    color: #24dfad;
    padding: 8px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.team-member .toggle-details:hover {
    background: rgba(36, 223, 173, 0.1);
    border-color: #e9b44c;
    color: #e9b44c;
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 15px 30px rgba(36, 223, 173, 0.15);
}

.team-member .toggle-details i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.team-member .toggle-details.active i {
    transform: rotate(180deg);
}

.details-content {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s ease;
}

.details.active .details-content {
    opacity: 1;
    transform: translateY(0);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 15px;
    margin-bottom: 40px;
}

.detail-item {
    text-align: left;
    padding: 10px;
    background: rgba(36, 54, 66, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(36, 223, 173, 0.1);
}

.detail-item h4 {
    color: #24dfad;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.detail-item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.3rem;
    line-height: 1.5;
}