/* General Body Styling */
body {
    background: #0f172a; /* Dark sleek background */
    background-image: radial-gradient(circle at top right, #1e293b, #0f172a);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #e2e8f0;
    margin: 0;
    padding: 0;
}

/* Header/Nav Adjustments */
header {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 255, 204, 0.2);
}

#sec {
    background: transparent;
    padding: 15px 0;
}

#nav a {
    color: #94a3b8;
    margin: 0 15px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    text-transform: capitalize;
}

#nav a:hover {
    color: #00ffcc;
    text-shadow: 0 0 8px rgba(0, 255, 204, 0.5);
}

/* Gallery Header */
.gallery-header {
    text-align: center;
    padding: 60px 20px;
}

.gallery-header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    background: linear-gradient(to right, #00ffcc, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

.gallery-header p {
    font-size: 1.2rem;
    color: #94a3b8;
}

/* Gallery Container - Grid Layout */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Gallery Item Styling */
.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    background: #1e293b;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    aspect-ratio: 1 / 1; /* Keep them square */
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 255, 204, 0.3);
    z-index: 10;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.4s ease;
}

.gallery-item:hover img {
    filter: brightness(0.7) blur(2px);
}

/* Hover Overlay */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 255, 204, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.overlay span {
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    padding: 10px 25px;
    border: 2px solid #fff;
    border-radius: 30px;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.gallery-item:hover .overlay span {
    transform: translateY(0);
}

/* Footer Section Overlaying */
#foot {
    margin-top: 80px;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    border-top: 1px solid rgba(0, 255, 204, 0.3);
}

.footer-content {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Lightbox Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.modal-content {
    max-width: 80%;
    max-height: 80%;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 255, 204, 0.4);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {transform: scale(0.5); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

.close-modal {
    position: absolute;
    top: 30px;
    right: 50px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #00ffcc;
}

#caption {
    margin-top: 20px;
    color: #00ffcc;
    font-size: 1.5rem;
    font-weight: 500;
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
}

/* Responsive Tweaks */
@media (max-width: 768px) {
    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        padding: 20px;
    }
    
    .gallery-header h1 {
        font-size: 2.2rem;
    }
}
