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

body.light-mode {
    background-color: #f9f9f9;
    color: #333;
}

body.dark-mode {
    background-color: #1e1e1e;
    color: #f1f1f1;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    padding: 0 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

header {
    text-align: center;
    padding: 20px 0;
    position: relative;
}

header h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

#menu-toggle {
    display: none;
    background-color: transparent;
    color: inherit;
    font-size: 1.5rem;
    border: none;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 20px;
}

#theme-toggle {
    position: absolute;
    right: 60px;
    top: 20px;
    background-color: transparent;
    color: inherit;
    font-size: 1.2rem;
    border: none;
    cursor: pointer;
    z-index: 10;
}

.menu {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    transition: all 0.3s ease;
}

.menu li a {
    color: inherit;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.menu li a:hover {
    opacity: 0.8;
}

main {
    max-width: 900px;
    margin: auto;
    padding: 40px 20px;
}

.content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.content.active {
    display: block;
}

.content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 20px;
}

footer {
    text-align: center;
    padding: 20px 0;
    clear: both;
    margin-top: 40px;
}

/* Light Mode Styles */
body.light-mode header,
body.light-mode footer {
    background-color: #0d1b2a;
    color: white;
}

body.light-mode .content {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Dark Mode Styles */
body.dark-mode header,
body.dark-mode footer {
    background-color: #2a2a2a;
    color: #f1f1f1;
}

body.dark-mode .content {
    background-color: #2c2c2c;
    box-shadow: 0 2px 10px rgba(255,255,255,0.05);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 768px) {
    #menu-toggle {
        display: block;
    }

    .menu {
        flex-direction: column;
        background-color: #1b263b;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        display: none;
    }

    .menu.active {
        display: flex;
    }

    #theme-toggle {
        right: 80px;
    }
}