/* root */
:root {
    --primary-color: #1e293b;
    --secondary-color: #2563eb;
    --secondary-hover: #1d4ed8;

    --background-color: #f8fafc;
    --surface-color: #ffffff;

    --text-color: #f8fafc;
    --content-text-color: #1e293b;
    --muted-text-color: #64748b;

    --logo-color: #ffffff;
    --footer-background-color: #0f172a;

    --border-color: #e2e8f0;


    --font-family: Arial, sans-serif;

    --sidebar-width: 260px;
    --content-gap: 40px;
}
* {
    box-sizing: border-box;
}
/* body */
body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
}
/* header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;    
    padding: 20px;
    min-height: 80px;
    background-color: var(--primary-color);
}
/* site title */
.site-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--logo-color);
}
/* navigation */
.navbar ul {
    display: flex;
    gap: 30px;
    list-style-type: none;
    margin: 0;
    padding: 0;
}
.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    padding: 10px;
}
.nav-links a:hover {
    background-color: var(--secondary-color);
    border-radius: 5px;
}
/* main content */
.main-content {
    margin-left: calc(var(--sidebar-width) + var(--content-gap));
    padding: 20px;
    
}
/* gallery */
.gallery-test {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;    
}
.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    cursor: pointer;
    transition: transform 0.3s ease, 
                box-shadow 0.3s ease;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.gallery-item:hover {
     transform: translateY(-5px); 
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}
.gallery-item:hover img {
    transform: scale(1.05);   
}





/* footer */
.footer {
    width: 100%;
    background-color: var(--footer-background-color);
    color: var(--text-color);
    text-align: center;
    padding: 10px;
}
/* test */
.test {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 400px;
    gap: 30px;
    margin-top: 20px;
    padding: 20px;
    margin-left: calc(var(--sidebar-width) + var(--content-gap));
    border: 10px solid var(--primary-color);
}
.test-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: var(--text-color);
    height: 100px;
    width: 120px;   
    border-radius: 10px;
}
/* Responsive design */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 10px;}
    .navbar ul {
        flex-direction: column;
        gap: 10px;
    }
    .main-content {
        margin-left: 0;
    }
    .test {
        margin-left: 0;
    }
}




/* old code*/
/* .navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background-color: var(--primary-color);
    overflow: hidden;
}
.nav-links a {
    display: block;
    color: var(--text-color);
    text-decoration: none;
    padding: 10px;
}
.nav-links a:hover {
    background-color: var(--secondary-color);
}
.navbar ul   {
    list-style-type: none;
    margin: 0;
    padding: 0;
} */