:root {
    --bg-color: #ffffff;
    --text-color: #0b4251;
    --accent-color: #87bbd7;
    --highlight-color: #f2c864;
    --header-bg: #0b4251;
    --header-text: #ffffff;
    --footer-bg: #0b4251;
    --footer-text: #ffffff;
}

body.dark {
    --bg-color: #0b4251;
    --text-color: #ffffff;
    --accent-color: #87bbd7;
    --highlight-color: #f2c864;
    --header-bg: #ffffff;
    --header-text: #0b4251;
    --footer-bg: #ffffff;
    --footer-text: #0b4251;
}

body {
    margin: 0;
    font-family: "IBM Plex Mono", monospace;
    background-color: var(--bg-color);
    color: var(--text-color);
}

header {
    background-color: var(--header-bg);
    color: var(--header-text);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    margin: 0;
}

nav {
    display: flex;
    align-items: center;
    position: relative;
}

#menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--highlight-color);
    cursor: pointer;
    margin-left: auto;
}

#nav-links {
    display: flex;
    align-items: center;
}

nav a {
    margin-left: 1rem;
    color: var(--highlight-color);
    text-decoration: none;
}

nav a:hover {
    color: var(--accent-color);
}

#theme-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--highlight-color);
    cursor: pointer;
    margin-left: 1rem;
}

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

    #nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 1rem;
        background-color: var(--header-bg);
        border: 1px solid var(--accent-color);
        padding: 1rem;
        z-index: 999;
    }

    #nav-links.show {
        display: flex;
    }

    #nav-links a,
    #nav-links button {
        margin: 0.5rem 0;
    }
}

#portfolio {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 2rem;
}

#portfolio img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border: 2px solid var(--accent-color);
    border-radius: 0.5rem;
    cursor: pointer;
    opacity: 1;
    transition:
        transform 0.3s ease,
        opacity 0.6s ease;
}

#portfolio img:hover {
    transform: scale(1.03);
}

img.loaded {
    opacity: 1;
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 66, 81, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    display: none;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border: 4px solid var(--highlight-color);
    border-radius: 1rem;
}

.about-section {
    max-width: 800px;
    margin: 3rem auto;
    padding: 1rem;
    text-align: center;
}

.about-section img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 1rem;
    border: 3px solid var(--highlight-color);
    margin-bottom: 2rem;
}

.about-text h2 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.about-text p {
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1rem;
}

footer {
    text-align: center;
    padding: 1rem;
    background-color: var(--footer-bg);
    color: var(--footer-text);
}
