:root {
    --primary: #041139;
    --accent: #d7a100;

    --bg-light: #f4f1ea;
    --text-light: #222;

    --bg-dark: #121826;
    --text-dark: #f5f5f5;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: var(--bg-light);
    color: var(--text-light);
    transition: background 0.3s ease, color 0.3s ease;
}

body.dark-mode {
    background: var(--bg-dark);
    color: var(--text-dark);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 40px;
    background: var(--bg-light);
}

body.dark-mode header {
    background: var(--bg-dark);
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.logo-container:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.logo-image {
    height: 28px;
    width: auto;
    max-width: 28px;
    margin-right: 10px;
}

.logo-text {
    color: var(--primary);
    font-size: 18px;
    font-weight: bold;
    transition: color 0.3s ease;
}

body.dark-mode .logo-text {
    color: var(--accent);
}

.logo-container:hover .logo-text {
    color: var(--accent);
}

nav {
    display: flex;
    gap: 22px;
}

nav a {
    text-decoration: none;
    color: var(--primary);
    font-size: 14px;
    transition: color 0.3s ease, transform 0.3s ease;
}

body.dark-mode nav a {
    color: white;
}

nav a:hover {
    color: var(--accent);
    transform: translateY(-1px);
}


main {
    min-height: 80vh;
    padding: 90px 50px;
    max-width: 900px;
}

main a,
p a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

main a:hover,
p a:hover {
    color: var(--accent);
}

main a:hover {
    color: var(--accent);
}
h1 {
    color: var(--primary);
}

body.dark-mode h1 {
    color: var(--accent);
}

p {
    line-height: 1.7;
}

.toggle-btn {
    padding: 8px 18px;
    border: 1px solid var(--accent);
    background: transparent;
    color: var(--accent);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.toggle-btn:hover {
    background: var(--accent);
    color: var(--primary);
}

footer {
    text-align: center;
    padding: 20px;
    background: var(--bg-light);
}

body.dark-mode footer {
    background: var(--bg-dark);
}

.social-links {
    margin-bottom: 12px;
}

.social-links a {
    margin: 0 12px;
    color: var(--primary);
    text-decoration: none;
    display: inline-block;
    transition: color 0.3s ease, transform 0.3s ease;
}

body.dark-mode .social-links a {
    color: white;
}

.social-links a:hover {
    color: var(--accent);
    transform: translateY(-1px);
}

input, textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    border: 1px solid rgba(0,0,0,0.08);
    background: rgba(255,255,255,0.6);
}

body.dark-mode input,
body.dark-mode textarea {
    background: rgba(255,255,255,0.05);
    color: white;
    border: 1px solid rgba(255,255,255,0.08);
}

@media(max-width:768px) {
    header {
        flex-direction: column;
        padding: 20px;
    }

    nav {
        margin-top: 10px;
        gap: 12px;
    }

    main {
        padding: 50px 20px;
    }
}
