:root {
    --primary: #1a4d8c;
    --secondary: #f4b942;
}

body {
    margin: 0;
    background-color: #0f172a; /* Dark sleek background */
    font-family: 'Inter', sans-serif;
    color: white;
    overflow-x: hidden;
}

.gallery-wrapper {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.gallery-header {
    text-align: center;
    margin-bottom: 50px;
}

.gallery-header h1 span { color: var(--secondary); }

/* Slider Logic */
.slider-container {
    position: relative;
    width: 100%;
    height: 600px;
    perspective: 2000px;
    display: flex;
    align-items: center;
}

.slider {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    transition: 0.5s;
}

.item {
    position: absolute;
    width: 700px;
    height: 400px;
    top: 0;
    left: 50%;
    transform: translateY(-50%);
    margin-left: -350px;
    border-radius: 12px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: 0.8s cubic-bezier(0.4, 0, 0.2, 0.1);
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
}

.item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
    transition: 0.5s;
}
/* Brighten the active image */
.item.active img {
    filter: brightness(1.1);
}


/* Navigation */
.nav-buttons {
    position: absolute;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 30px;
}

button {
    background: var(--secondary);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    transform: scale(1.1);
    background: white;
}

.back-home {
    margin-top: 150px;
    color: white;
    text-decoration: none;
    opacity: 0.6;
}
@media (max-width: 768px) {
    .slider-container {
        height: 400px;
    }
    .item {
        width: 280px;
        height: 350px;
        margin-left: -140px;
    }
}