html {
    color-scheme: only dark !important;
    filter: none !important;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #000 !important;
    color: #e0e0e0 !important;
    overflow-x: hidden;
    filter: none !important;
}

*, *::before, *::after {
    filter: none !important;
    /* background-color: inherit !important; */
}

img, video, iframe, canvas, svg {
    filter: none !important;
}

main {
    position: relative;
    z-index: 2;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3;
    padding: 1rem;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    pointer-events: none;
}

.accent-text {
    color: #ffffff !important;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.accent-border {
    border-color: rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

.accent-button {
    background-color: transparent !important;
    border: 2px solid rgba(255, 255, 255, 0.8) !important;
    color: #ffffff !important;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.accent-button:hover {
    background-color: #ffffff !important;
    color: #000000 !important;
    box-shadow: 0 0 15px #ffffff, 0 0 25px #ffffff;
    text-shadow: none;
}

.content-container {
    background-color: rgba(5, 2, 10, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 0.75rem;
    z-index: 1;
}

.commission-card {
    text-align: left;
    position: relative;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.2) !important;
    border: 1px rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.commission-card h1 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff !important;
    margin-bottom: 1rem;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.commission-card p {
    margin-bottom: 0.75rem;
    line-height: 1.6;
    color: #cccccc !important;
}

.commission-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
    display: inline-block;
    text-align: left;
}

.commission-card li {
    color: #cccccc !important;
    position: relative;
    padding-left: 1.2em;
    margin-bottom: 0.25rem;
}

.commission-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
    color: #ffffff;
    font-weight: bold;
}

.commission-card strong {
    color: #ffffff !important;
}

.commission-card.text-left {
    text-align: left !important;
}

.commission-card.text-center {
    text-align: center !important;
}

.commission-card.text-right {
    text-align: right !important;
}

.commission-card.image-left {
    flex-direction: row;
}

.commission-card.image-right {
    flex-direction: row-reverse;
}

@media (min-width: 768px) {
    .commission-card {
        align-items: center;
    }
}

.masonry-grid {
    column-count: 4;
    column-gap: 1rem;
}

.masonry-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 1rem;
    break-inside: avoid;
    overflow: hidden;
    border-radius: 0.5rem;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    background-color: rgba(5, 2, 10, 0.2) !important;
}

.masonry-item:hover {
    border-color: rgba(255, 255, 255, 0.5) !important;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.masonry-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: block;
}

.masonry-item img:hover {
    transform: scale(1.03);
}

@media (max-width: 1200px) {
    .masonry-grid {
        column-count: 3;
    }
}

@media (max-width: 768px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media (max-width: 480px) {
    .masonry-grid {
        column-count: 1;
    }
}

#banner-container {
    background-color: rgba(0, 0, 0, 0) !important;
    position: relative;
    z-index: 1;
}

.banner-image {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

#image-modal {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(0, 0, 0, 0.9) !important;
    z-index: 1000;
}

#image-modal .relative {
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
}

section {
    position: relative;
    z-index: 1;
    transition: opacity 0.4s ease-in-out;
}

section.hidden {
    display: none;
}

#modal-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    opacity: 1;
}

#modal-image.loading {
    opacity: 0;
    transform: scale(0.95);
}

#modal-image.slide-out {
    transform: translateX(-100%);
    opacity: 0;
}

#modal-image.slide-in {
    transform: translateX(0);
    opacity: 1;
}

#close-modal {
    position: fixed;
    top: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.7) !important;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    color: #ffffff !important;
    font-size: 1.5rem;
    z-index: 1001;
    transition: all 0.3s ease;
}

#close-modal:hover {
    background-color: rgba(0, 0, 0, 0.9) !important;
    transform: scale(1.1);
}

.modal-nav-button {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: transparent !important;
    border: none !important;
    color: white !important;
    font-size: 5rem;
    cursor: pointer;
    user-select: none;
    z-index: 1002;
    font-weight: lighter;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
    transition: transform 0.2s ease;
}

.modal-nav-button:hover {
    transform: translateY(-50%) scale(1.1);
}

#prev-image {
    left: 1.5rem;
}

#next-image {
    right: 1.5rem;
}

.loading {
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.loaded {
    opacity: 1;
}

@media (max-width: 768px) {
    .masonry-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .main-title {
        font-size: 3rem !important;
    }
    
    .content-container {
        padding: 1rem;
    }
    
    .commission-card {
        flex-direction: column !important;
    }
    
    .commission-card.image-left,
    .commission-card.image-right {
        flex-direction: column !important;
    }
    
    #modal-image {
        max-height: 90vh;
        max-width: 95vw;
    }
    
    #close-modal {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .masonry-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .main-title {
        font-size: 2.5rem !important;
    }
    
    #modal-image {
        max-height: 85vh;
        max-width: 90vw;
    }
}

.lang-button {
    font-size: 1.125rem !important;
    line-height: 1.5 !important;
}

.lang-button.accent-text {
    font-size: 1.125rem !important;
}

.text-gray-300 {
    color: #d1d5db !important;
}

.text-gray-400 {
    color: #9ca3af !important;
}

.text-gray-500 {
    color: #6b7280 !important;
}

.text-gray-600 {
    color: #4b5563 !important;
}

.bg-black {
    background-color: #000000 !important;
}

section {
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

.masonry-item, .commission-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.masonry-item.visible, .commission-card.visible {
    opacity: 1;
    transform: translateY(0);
}

footer {
    position: relative;
    z-index: 1;
}


body.light-theme {
    background-color: #f4f4f5 !important;
    color: #18181b !important;
}

body.light-theme .accent-text {
    color: #90ee90 !important;
    text-shadow: none;
}

body.light-theme .accent-border {
    border-color: rgba(144, 238, 144, 0.5) !important;
    box-shadow: 0 0 8px rgba(144, 238, 144, 0.2);
}

body.light-theme .accent-button {
    border-color: #90ee90 !important;
    color: #90ee90 !important;
    text-shadow: none;
}

body.light-theme .accent-button:hover {
    background-color: #90ee90 !important;
    color: #ffffff !important;
    box-shadow: 0 0 15px #90ee90, 0 0 25px #90ee90;
}

body.light-theme .content-container {
    background-color: rgba(255, 255, 255, 0.7) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

body.light-theme .commission-card {
    background-color: rgba(255, 255, 255, 0.5) !important;
    border-color: rgba(0, 0, 0, 0.15) !important;
}

body.light-theme .commission-card h1,
body.light-theme .commission-card strong {
    color: #18181b !important;
    text-shadow: none;
}

body.light-theme .commission-card p,
body.light-theme .commission-card li {
    color: #3f3f46 !important;
}

body.light-theme .commission-card li::before {
    color: #90ee90;
}

body.light-theme .text-gray-300 { color: #a1a1aa !important; }
body.light-theme .text-gray-400 { color: #71717a !important; }
body.light-theme .text-gray-500 { color: #52525b !important; }
body.light-theme .text-gray-600 { color: #3f3f46 !important; }

body.light-theme #bg-canvas {
    opacity: 0.3;
}

body.light-theme .modal-nav-button {
    color: #18181b !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}
