/* Load Junicode font */
@font-face {
    font-family: 'Junicode';
    src: url('Junicode.ttf') format('truetype');
}

/* Global */
body {
    margin: 0;
    padding: 0;
    background-color: #ece8df;
    min-height: 100vh;
    font-family: 'Junicode', serif;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Header */
.header-field {
    width: 100%;
    height: 140px;
    background-color: #2e2e2e;
    display: flex;
    align-items: center;
    justify-content: space-between; /* ← forces right alignment */
    padding: 0 30px;
    box-sizing: border-box;
    border-bottom: 3px solid #000;
}

.header-left {
    display: flex;
    align-items: center;
}

.header-left img {
    width: 80px;
    margin-right: 15px;
    border-radius: 6px;
}

.header-left h1 {
    margin: 0;
    color: #ece8df;
    font-size: 40px;
}

/* Header actions (right side) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Light/Dark toggle field */
.theme-toggle {
    width: 48px;
    height: 48px;
    font-size: 20px;
    background-color: transparent;
    color: #ece8df;
    border: 2px solid #ece8df;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.theme-toggle:hover {
    background-color: #ece8df;
    color: #2e2e2e;
}


/* Navigation bar */
.main-nav {
    width: 100%;
    background-color: #3a3a3a;
    border-bottom: 2px solid #000;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0 20px;
    display: flex;
    justify-content: center;   /* ← centers navigation items */
    gap: 30px;
}

.main-nav li {
    display: inline-block;
}

.main-nav a {
    display: block;
    padding: 14px 0;
    text-decoration: none;
    color: #ece8df;
    font-size: 18px;
    transition: color 0.2s, border-bottom 0.2s;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover {
    color: #ffffff;
    border-bottom: 2px solid #ece8df;
}

/* Main content */
.content {
    flex: 1;
    width: 100%;
}

/* Brand logos footer */
.brand-row {
    margin-bottom: 40px;
    display: flex;
    gap: 20px;
}

.brand-row img {
    width: 120px;
    height: auto;
    border-radius: 6px;
}

/* Contact button */
.contact-btn {
    padding: 12px 22px;
    font-size: 18px;
    color: #ece8df;
    text-decoration: none;
    border: 2px solid #ece8df;
    border-radius: 6px;
    display: flex;
    align-items: right;
    gap: 8px;
}

.contact-btn:hover {
    background-color: #ece8df;
    color: #2e2e2e;
}
/* Language switch container */
.lang-switch {
    display: flex;
    gap: 6px;
}

/* Flag buttons */
.lang-btn {
    width: 48px;
    height: 48px;
    padding: 0;
    background-color: transparent;
    border: 2px solid #ece8df;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, transform 0.2s;
}

.lang-btn img {
    width: 28px;
    height: auto;
    border-radius: 2px;
}

/* Hover */
.lang-btn:hover {
    background-color: #ece8df;
    transform: scale(1.05);
}

/* Active language */
.lang-btn.active {
    background-color: #ece8df;
}

/* Header appearance animation */
.animate-header {
    display: flex;
    align-items: center;
}

/* Logo animation */
.logo-animate {
    opacity: 0;
    transform: translateX(-20px);
    animation: logoFadeIn 0.8s ease-out forwards;
}

/* Title animation */
.title-animate {
    opacity: 0;
    transform: translateX(-10px);
    animation: titleFadeIn 0.8s ease-out forwards;
    animation-delay: 0.3s;
}

/* Keyframes */
@keyframes logoFadeIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes titleFadeIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
