@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #080808;
    --text-color: #f1f1f1;
    --accent-color: #c9ab81;
    --border-color: #222222;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Header & Navigation */
header {
    background-color: rgba(8, 8, 8, 0.9);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 5%;
    backdrop-filter: blur(10px);
}

.header {
    max-width: 1600px;
    margin: 0 auto;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

nav > img {
    height: 80px; /* logo size increased */
    filter: invert(1);
    transition: opacity 0.3s ease;
}

nav > img:hover {
    opacity: 0.8;
}

nav ul {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

nav li a {
    color: #888888;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 6px;
}

nav li a:hover,
nav li a#show,
nav li a#genre,
nav li a#land,
nav li a#pot {
    color: var(--text-color);
}

nav li a#show::after,
nav li a#genre::after,
nav li a#land::after,
nav li a#pot::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
}

/* Headings */
h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 400;
    text-align: center;
    margin: 4rem 2rem 2rem;
    letter-spacing: 2px;
}

h2#rowtitle, #category h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 400;
    margin: 5rem 5% 2rem;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    letter-spacing: 1px;
}

/* Showcases / Glossary Masonry Grid */
.bigcont {
    columns: 4 280px;
    column-gap: 1.5rem;
    padding: 3rem 5%;
    max-width: 1600px;
    margin: 0 auto;
}

.bigcont img {
    width: 100%;
    height: auto;
    margin-bottom: 1.5rem;
    display: block;
    border-radius: 2px;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), filter 0.6s ease;
    filter: grayscale(30%) brightness(0.8);
    cursor: pointer;
}

.bigcont:hover img {
    filter: grayscale(100%) brightness(0.3);
}

.bigcont img:hover {
    transform: scale(1.03);
    filter: grayscale(0%) brightness(1.1) !important;
    z-index: 2;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

/* Genre Category Containers */
#category {
    padding: 1rem 0 4rem;
    max-width: 1600px;
    margin: 0 auto;
}

.cont {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    padding: 0 5%;
    margin: 0 auto 3rem;
}

.imgbox {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    aspect-ratio: 4/3;
    display: flex;
    background-color: #111;
}

.imgbox img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), filter 0.8s ease;
    filter: grayscale(20%) brightness(0.9);
}

.imgbox:hover img {
    transform: scale(1.05);
    filter: grayscale(0%) brightness(1.1);
}

/* Footer Section */
.foot {
    background-color: transparent;
    border-top: 1px solid var(--border-color);
    padding: 3rem 5%;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.foot h3 {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: #555;
    letter-spacing: 1px;
    font-weight: 400;
    text-transform: uppercase;
}

.contact {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.contact h2 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #666;
    margin: 0;
    font-weight: 500;
}

.contact-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.contact a img {
    height: 32px;
    width: 32px;
    filter: invert(1) opacity(0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.contact a:hover img {
    filter: invert(1) opacity(1);
    transform: translateY(-5px) scale(1.1);
}

/* Portfolio Button */
.portfolio-btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    margin-top: 1rem;
    background: transparent;
    color: var(--text-color);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.4s ease;
    cursor: pointer;
}

.portfolio-btn:hover {
    background: var(--text-color);
    color: var(--bg-color);
    border-color: var(--text-color);
    box-shadow: 0 0 20px rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

/* Responsive specific */
@media screen and (max-width: 1024px) {
    .bigcont {
        columns: 3 250px;
    }
}

@media screen and (max-width: 768px) {
    header {
        padding: 1.5rem 5%;
    }

    nav {
        flex-direction: column;
        justify-content: center;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
        font-size: 0.75rem;
    }

    h2#rowtitle, #category h2 {
        font-size: 2rem;
        margin: 3rem 5% 1.5rem;
    }
    
    .bigcont {
        columns: 2 150px;
        column-gap: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .bigcont {
        columns: 1;
    }
    .bigcont img {
        margin-bottom: 1rem;
    }
}
/* Upload Modal */
.upload-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}
.modal-content {
    background: var(--bg-color);
    padding: 3rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    width: 90%;
    max-width: 500px;
    position: relative;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}
.close-btn {
    position: absolute;
    top: 1rem; right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: #888;
    transition: color 0.3s;
}
.close-btn:hover {
    color: #fff;
}
.modal-content h2 {
    font-family: var(--font-heading);
    margin-bottom: 2rem;
    letter-spacing: 1px;
    color: var(--text-color);
}
#uploadForm {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
#uploadForm input, #uploadForm select {
    padding: 1rem;
    background: #111;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 1rem;
    border-radius: 2px;
}
#uploadForm button {
    padding: 1rem;
    background: var(--accent-color);
    color: #000;
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: background 0.3s;
}
#uploadForm button:hover {
    background: #e6cdac;
}
