* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #050d1a;
    --panel: #0c1728;
    --card: #12203a;
    --hover: #162947;

    --accent: #008cff;
    --accent-light: #4dafff;

    --text: #ffffff;
    --text-secondary: #9cb2d1;

    --border: rgba(255,255,255,.08);
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: "Segoe UI", sans-serif;
    min-height: 100vh;
    overflow-x: hidden;

    background-image:
        radial-gradient(circle at 20% 20%, rgba(0,140,255,.12), transparent 35%),
        radial-gradient(circle at 80% 80%, rgba(77,175,255,.08), transparent 35%);
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(
        90deg,
        var(--accent),
        var(--accent-light)
    );
    z-index: 9999;
}

header {
    text-align: center;
    padding: 60px 20px 30px;
}

.logo {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: 2px;
}

.logo span {
    color: var(--accent-light);
}

.logo i {
    margin-right: 10px;
    color: var(--accent);
}

.subtitle {
    margin-top: 10px;
    color: var(--text-secondary);
    font-size: 15px;
}

.container {
    width: min(1400px, 95%);
    margin: auto;
}

.top-panel {
    margin-bottom: 40px;
}

.title-block {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.line {
    width: 70px;
    height: 4px;
    border-radius: 10px;
    background: linear-gradient(
        90deg,
        var(--accent),
        var(--accent-light)
    );
}

.stats {
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.stats span {
    color: var(--accent-light);
    font-weight: bold;
}

.search-box {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--panel);
    color: white;
    outline: none;
    transition: .3s;
}

.search-box:focus {
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(0,140,255,.25);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 25px;
}

.card {
    background: rgba(18,32,58,.85);
    backdrop-filter: blur(14px);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    transition: .35s;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(0,140,255,.4);
    box-shadow: 0 15px 35px rgba(0,140,255,.15);
}

.card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: .5s;
}

.card:hover img {
    transform: scale(1.08);
}

.card-info {
    padding: 18px;
}

.card-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.bus-number {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 10px;
    background: #0b2d4f;
    color: #5db5ff;
    font-size: 14px;
    margin-bottom: 12px;
}

.date {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.date i {
    color: var(--accent);
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.95);
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.modal.active {
    display: flex;
}

.modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 15px;
}

.close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    transition: .3s;
}

.close:hover {
    color: var(--accent-light);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-light);
}

@media (max-width: 768px) {

    .logo {
        font-size: 34px;
    }

    .gallery {
        grid-template-columns: 1fr;
    }

    .card img {
        height: 220px;
    }

    .title-block {
        flex-direction: column;
        align-items: flex-start;
    }
}