:root {
    /* --primary: #293c51; */
    --primary: #022658;
    --accent: #067fca;
    --light: #f5f7fa;
    --text: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Tahoma", sans-serif;
}

body {
    background: var(--light);
    color: var(--text);
    line-height: 1.6;
}

header {
    background: white;
    padding: 5px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.logo {
    height: 100px;
    width: auto;
}

.hero h1 {
    font-size: 55px;
    color: var(--light);
}

nav a {
    margin-left: 20px;
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
}

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

section {
    scroll-margin-top: 100px;
    padding: 80px 8%;
}

.hero {
    background: var(--primary);
    color: white;
    text-align: center;
    height: 90vh;
    padding: 180px 8%;
}

.hero h2 {
    font-size: 30px;
    margin-bottom: 20px;
}

.hero p {
    max-width: 700px;
    margin: 0 auto 30px;
}

.button {
    background: var(--accent);
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.button:hover {
    opacity: 0.9;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.card h3 {
    margin-bottom: 15px;
    color: var(--primary);
}


.lightbox {
    display: none;
}

.lightbox:target {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.lightbox img {
    max-width: 90vw;
    /* max 90% of viewport width */
    max-height: 90vh;
    /* max 90% of viewport height */
    width: auto;
    height: auto;
    object-fit: contain;
    /* ensures full image is visible */
    border-radius: 10px;
}

.skills {
    margin: 15px;
}

.skills span {
    display: inline-block;
    background: #e9eef7;
    padding: 8px 12px;
    margin: 5px;
    border-radius: 20px;
    font-size: 14px;
}

footer {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 30px;
}

.hidden {
    display: none;
}

.toggle-btn {
    margin-top: 20px;
    cursor: pointer;
    color: var(--accent);
    font-weight: bold;
}

.language-switch {
    display: flex;
    align-items: center;
}

.lang-btn {
    margin-left: 10px;
    padding: 6px 10px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.lang-btn:hover {
    color: var(--accent);
}

.language-switch button {
    margin-left: 10px;
    padding: 6px 10px;
    border: none;
    background: var(--accent);
    color: white;
    cursor: pointer;
    border-radius: 4px;
    font-size: 12px;
}

.language-switch button:hover {
    opacity: 0.8;
}

/* kbs images */

.portfolio-images {
    display: flex;
    justify-content: flex-start;
    /* align images to the left, change to center if you want them centered */
    gap: 15px;
    /* space between images */
    margin-top: 15px;
    flex-wrap: wrap;
    /* allows wrapping on very small screens */
}

.portfolio-images img {
    width: 200px;
    /* small size */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

/* Hover effect */
.portfolio-images img:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.close {
    font-size: 40px;
    color: white;
    position: fixed;
    top: 50px;
    right: 50px;

}

/* Responsive for very small screens */
@media (max-width: 500px) {
    .portfolio-images img {
        width: 100%;
        /* slightly smaller */
    }
}
