.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #161b22;
    padding: 15px 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 1px solid #30363d;
}

.nav-brand a {
    color: #58a6ff;
    text-decoration: none;
    font-size: 1.5em;
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: #f0f6fc;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    background: #58a6ff;
    color: #0d1117;
}

.gallery-header {
    text-align: center;
    padding: 40px 0;
    margin-bottom: 40px;
}

.gallery-header h1 {
    font-size: 3em;
    color: #f0f6fc;
    margin-bottom: 10px;
}

.gallery-header p {
    font-size: 1.2em;
    color: #8b949e;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.gallery-item {
    position: relative;
    background: #161b22;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #30363d;
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    border-color: #58a6ff;
}

.gallery-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .overlay {
    transform: translateY(0);
}

.overlay h3 {
    font-size: 1.2em;
    margin-bottom: 5px;
    color: #58a6ff;
}

.overlay p {
    font-size: 0.9em;
    color: #c9d1d9;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 600px;
    max-height: 80%;
    object-fit: contain;
    margin-top: 5%;
    border-radius: 10px;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #58a6ff;
}

.modal-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 600px;
    text-align: center;
    color: #ccc;
    padding: 20px 0;
}

.modal-caption h3 {
    color: #58a6ff;
    margin-bottom: 10px;
}

.footer {
    text-align: center;
    padding: 30px;
    color: #8b949e;
    border-top: 1px solid #30363d;
    margin-top: 50px;
}

.footer a {
    color: #58a6ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #1f6feb;
    text-decoration: underline;
}

.navbar p{
    color: #8b949e;
}

.navbar a {
    color: #58a6ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #1f6feb;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }
    
    .gallery-header h1 {
        font-size: 2em;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 15px;
    }
    
    .gallery-item img {
        height: 210px;
    }
    
    .modal-content {
        width: 95%;
        margin-top: 10%;
    }
}

@media (max-width: 480px) {
    .gallery-header {
        padding: 20px 0;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .gallery-item img {
        height: 200px;
    }
}
