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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #0a1929; /* Dark blue background */
    color: #ffffff; /* White sub font */
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.header-top {
    position: relative;
    padding-top: 56px; /* reserve space for top-right/top-left actions */
}

.brand {
    text-align: center;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
    position: absolute;
    top: 0;
    right: 0;
}

.nav-link {
    color: #00e5ff;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid rgba(0, 229, 255, 0.0);
    transition: border-color 0.2s ease, opacity 0.2s ease;
}

.nav-link:hover {
    opacity: 0.9;
    border-bottom-color: rgba(0, 229, 255, 0.8);
}

.lang-toggle {
    background: rgba(0, 229, 255, 0.12);
    color: #00e5ff;
    border: 1px solid rgba(0, 229, 255, 0.45);
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.lang-toggle:hover {
    background: rgba(0, 229, 255, 0.18);
    border-color: rgba(0, 229, 255, 0.8);
    transform: translateY(-1px);
}

header {
    margin-bottom: 60px;
    padding-bottom: 30px;
    border-bottom: 2px solid #00e5ff; /* Cyan accent */
    position: relative;
}

h1 {
    font-size: 3.5rem;
    color: #00e5ff; /* Cyan main font */
    margin-bottom: 10px;
    font-weight: 700;
}

.tagline {
    font-size: 1.5rem;
    color: #00e5ff; /* Cyan accent */
    font-weight: 300;
}

main {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.content-section {
    background-color: rgba(0, 229, 255, 0.05); /* Subtle cyan tint */
    padding: 40px;
    border-radius: 12px;
    border-left: 4px solid #00e5ff; /* Cyan accent border */
}

h2 {
    font-size: 2.5rem;
    color: #00e5ff; /* Cyan main font */
    margin-bottom: 25px;
    font-weight: 600;
}

h3 {
    font-size: 1.8rem;
    color: #00e5ff; /* Cyan accent */
    margin-top: 30px;
    margin-bottom: 20px;
    font-weight: 500;
}

p {
    font-size: 1.1rem;
    color: #ffffff; /* White sub font */
    margin-bottom: 20px;
    line-height: 1.8;
}

.mbti-types {
    margin-top: 30px;
}

.type-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.type-list li {
    padding: 15px 20px;
    background-color: rgba(0, 229, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(0, 229, 255, 0.3);
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.type-list li:hover {
    background-color: rgba(0, 229, 255, 0.2);
    border-color: #00e5ff;
    transform: translateY(-2px);
}

.type-code {
    color: #00e5ff; /* Cyan accent */
    font-weight: 700;
    font-size: 1.1rem;
    margin-right: 10px;
}

.type-sep {
    opacity: 0.9;
}

.question-list {
    list-style: none;
    margin: 25px 0;
    padding-left: 0;
}

.question-list li {
    padding: 15px 20px;
    margin-bottom: 15px;
    background-color: rgba(0, 229, 255, 0.1);
    border-left: 3px solid #00e5ff; /* Cyan accent */
    border-radius: 6px;
    color: #ffffff;
    font-size: 1.1rem;
}

.question-list li::before {
    content: "•";
    color: #00e5ff; /* Cyan accent */
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-right: 10px;
}

.bottom-images {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 60px;
    margin-bottom: 40px;
    flex-wrap: nowrap;
}

.bottom-image {
    width: 480px;
    height: 480px;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.bottom-image:hover {
    transform: translateY(-5px);
    opacity: 0.9;
}

footer {
    text-align: center;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 229, 255, 0.3);
    color: #ffffff;
}

footer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.last-updated {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    font-style: italic;
    margin-bottom: 25px;
}

.footer-sep {
    margin: 0 10px;
    opacity: 0.7;
}

/* RTL support */
html[dir="rtl"] body {
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
}

html[dir="rtl"] .header-actions {
    justify-content: flex-start;
    right: auto;
    left: 0;
}

html[dir="rtl"] .content-section {
    border-left: none;
    border-right: 4px solid #00e5ff;
}

html[dir="rtl"] .type-code {
    margin-right: 0;
    margin-left: 10px;
}

html[dir="rtl"] .question-list li {
    border-left: none;
    border-right: 3px solid #00e5ff;
}

html[dir="rtl"] .question-list li::before {
    margin-right: 0;
    margin-left: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-top {
        padding-top: 0;
        display: flex;
        flex-direction: column-reverse; /* actions above brand */
        align-items: center;
        gap: 12px;
    }

    .header-actions {
        position: static;
        justify-content: center;
    }

    h1 {
        font-size: 2.5rem;
    }
    
    .tagline {
        font-size: 1.2rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .content-section {
        padding: 25px;
    }
    
    .type-list {
        grid-template-columns: 1fr;
    }
    
    .bottom-images {
        gap: 20px;
        flex-wrap: wrap;
    }
    
    .bottom-image {
        width: 380px;
        height: 380px;
    }
}
