/* Language support */
.lang-vi {
    display: none;
}

body.vi .lang-vi {
    display: block;
}

body.vi .lang-en {
    display: none;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Language selector styles */
.language-selector {
    display: flex;
    gap: 8px;
}

.lang-btn {
    padding: 4px 12px;
    border: 2px solid #000;
    background: transparent;
    color: #000;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.lang-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.lang-btn.active {
    background: #000;
    color:  #fff;
}

body.dark-mode .lang-btn {
    border-color: #fff;
    color: #fff;
}

body.dark-mode .lang-btn.active {
    background: #fff;
    color: #121212;
}

.lang-vi {
    display: none;
}

body.vi .lang-vi {
    display: block;
}

body.vi .lang-en {
    display: none;
}

body.en .lang-en {
    display: block;
}

body.en .lang-vi {
    display: none;
}

/* Base styles */
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Layout containers */
.header-container, .content-container {
    max-width: 1000px;
    width: 90%;
    margin: 0 auto;
}

/* Header Styles */
header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
    background-color: #fff;
    width: 100%;
    transition: background-color 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 80px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo.paused {
    animation-play-state: paused;
}

/* Theme toggle button */
.theme-icon {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    margin-left: 1rem;
    width: 30px;
    height: 30px;
    transition: border-color 0.3s ease;
}

.theme-icon img {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

/* Content layout */
.content-container {
    display: flex;
    gap: 6rem;
    padding: 2rem 0;
}

#main-placeholder {
    flex: 3;
}

#social-placeholder {
    flex: 1;
    margin-top: 4rem;
}

/* Hero Section */
.hero {
    padding: 2rem 0;
}

/* Main content typography */
main h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

main p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Call to action button */
.cta {
    font-size: 1.1rem;
    text-decoration: none;
    color: #000;
    border: 2px solid #000;
    padding: 0.75rem 1.5rem;
    display: inline-block;
    font-weight: bold;
    transition: all 0.3s ease;
}

.cta:hover {
    background-color: #000;
    color: #fff;
}

/* Social media sidebar */
.social-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
}

/* Social media sidebar - hover underline effect */
.social-container a {
    text-decoration: none;
    color: #000;
    font-size: 1.5rem;
    transition: color 0.3s ease;
    position: relative;
    display: inline-block;
    padding-bottom: 3px;
}

.social-container a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: currentColor;
    transition: width 0.3s ease;
}

.social-container a:hover::after {
    width: 100%;
}

/* Make sure dark mode inherits the right color */
body.dark-mode .social-container a::after {
    background-color: currentColor;
}

/* Dark mode styles - consolidated */
body.dark-mode {
    background-color: #121212;
    color: #ffffff;
}

body.dark-mode header {
    background-color: #121212;
}

body.dark-mode a {
    color: #fff;
}

body.dark-mode a:hover {
    color: #ffffff;
}

body.dark-mode .theme-icon {
    border-color: #fff;
}

body.dark-mode .cta {
    color: #ffffff;
    border-color: #ffffff;
}

body.dark-mode .cta:hover {
    background-color: #ffffff;
    color: #121212;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .content-container {
        flex-direction: column;
        gap: 2rem;
    }

    #social-placeholder {
        margin-top: 1rem;
    }

    .header-container {
        flex-direction: row;
        justify-content: space-between;
    }

    .logo {
        height: 60px;
    }

    main h1 {
        font-size: 2rem;
    }

    main p {
        font-size: 1rem;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .header-container, .content-container {
        width: 80%;
    }

    .logo {
        height: 50px;
    }

    .theme-icon {
        width: 35px;
        height: 35px;
        padding: 6px;
    }

    main h1 {
        font-size: 1.8rem;
    }

    .social-container a {
        font-size: 1.3rem;
    }
}
