* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: rgba(12, 253, 221, 0.3) transparent;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.6);
}

body {
    background-color: rgb(0, 1, 7);
    padding: 20px;
    min-height: 100vh;
    overflow-x: hidden;
}

body::before,
body::after {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    pointer-events: none;
    z-index: 0;
}

body::before {
    background-image: radial-gradient(white 1px, transparent 1px), radial-gradient(white 1px, transparent 1px);
    background-size: 100px 100px, 150px 150px;
    background-position: 0 0, 50px 50px;
    opacity: 0.5;
}

body::after {
    background-image: radial-gradient(rgb(238, 238, 236) 1.5px, transparent 1.5px), radial-gradient(rgba(255,255,255,0.8) 2px, transparent 2px);
    background-size: 200px 200px, 300px 300px;
    background-position: 25px 25px, 100px 100px;
    opacity: 0.8;
}

header {
    text-align: center;
    padding: 40px 20px 50px;
}

h1 {
    font-family: "VT323", monospace;
    font-size: 4rem;
    color: #160303;
    text-shadow: 2px 2px #ff00ff, 0 0 20px #00ffcc;
    animation: headerGlow 3s ease-in-out infinite alternate;
}

@keyframes headerGlow {
    from { text-shadow: 2px 2px #ff00ff, 0 0 10px #00ffcc; }
    to   { text-shadow: 2px 2px #ff00ff, 0 0 40px #00ffcc, 0 0 60px #00ffcc; }
}

header p {
    font-family: "Silkscreen", sans-serif;
    font-size: 1rem;
    color: rgb(196, 255, 230);
    margin-top: 10px;
    opacity: 0.8;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.art-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(0, 255, 204, 0.25);
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.art-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color:#00ffcc;
    box-shadow: 0 0 30px rgba(0, 255, 204, 0.3);
}

.card-canvas {
    width: 100%;
    height: 200px;
    display: block;
}

.art-info {
    padding: 16px 20px 20px;
}

h2 {
    font-family: "Pixelify Sans", sans-serif;
    color: rgb(21, 134, 116);
    text-shadow: 2px 2px 2px rgb(4, 38, 43);
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.art-info p {
    font-family: "Silkscreen", sans-serif;
    font-size: 0.75rem;
    color: rgb(196, 255, 230);
    opacity: 0.8;
    line-height: 1.5;
    margin-bottom: 12px;
}

.view-btn {
    font-family: "Pixelify Sans", sans-serif;
    color:rgb(21, 134, 116);;
    font-size: 0.9rem;
    border: 1px solid #105e4d;
    padding: 6px 14px;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.art-card:hover .view-btn {
    background: rgb(21, 134, 116);;
    color: rgb(5, 7, 46);
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.88);
    justify-content: center;
    text-align: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.modal-content {
    background: rgb(15, 1, 26);;
    border: 1px solid rgba(0, 255, 204, 0.4);
    border-radius: 20px;
    width: 100%;
    max-width: 820px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(40px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.modal-canvas {
    width: 100%;
    height: 320px;
    border-radius: 20px 20px 0 0;
}

.close-btn {
    position:absolute;
    top: 14px;
    right: 18px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    font-size: 1.2rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
}

.close-btn:hover {
    background: rgba(255, 0, 255, 0.4);
}

.modal-text {
    padding: 24px 28px 32px;
}

.modal-text h2 {
    font-size: 2rem;
    margin-bottom: 4px;
}

.modal-subtitle {
    font-family: "Silkscreen", sans-serif;
    font-size: 0.8rem;
    color: #00ffcc;
    margin-bottom: 20px;
    opacity: 0.9;
}

.facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.fact-card {
    font-family: "Silkscreen", sans-serif;
    font-size: 0.72rem;
    color: rgb(196, 255, 230);
    background: rgba(0, 255, 204, 0.07);
    border: 1px solid rgba(0, 255, 204, 0.2);
    border-radius: 10px;
    margin-left: 15px;
    margin-right: 15px;
    padding: 12px;
    line-height: 1.6;
}

blockquote {
    font-family: "VT323", monospace;
    font-size: 1.2rem;
    color: #ff00ff;
    border-left: 3px solid #ff00ff;
    padding-left: 16px;
    margin-top: 16px;
    opacity: 0.9;
    font-style: italic;
}

@media (max-width: 600px) {
    h1 { font-size: 2.5rem; }
    .facts { grid-template-columns: 1fr; }
    .modal-canvas { height: 220px; }
}
