@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #F1F3EA;
    --accent-color: #9CE784;
    --bg-color: #1D1A18;
    --card-bg: #3F3B3A;
    --text-color: #F1F3EA;
    --light-text: rgba(241, 243, 234, 0.75);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    --hover-shadow: 0 10px 15px rgba(0, 0, 0, 0.4);
    --transition: all 0.3s ease;

    /* Badges section removed */
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Inter', sans-serif;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Navigation */
nav {
    background: rgba(29, 26, 24, 0.9); /* 90% opacity dark brown */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: none;
    margin: 0;
    padding: 1rem 2rem 1rem 1.1rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
}

.logo {
    order: 2;
    margin-left: 0.3rem;
    display: flex;
    align-items: center;
}

.logo img {
    height: 79px;
    width: auto;
    display: block;
}

.nav-links {
    order: 3;
    margin-left: auto;
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-weight: 600;
    color: #F1F3EA; /* Off-white from image */
    font-size: 0.95rem;
    padding: 0.5rem 0.75rem; /* Add padding for the box */
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: #9CE784; /* Bright green from image */
}

.nav-links a.active {
    color: #F1F3EA; /* Keep the text white */
    background-color: #3F3B3A; /* Light dark brown box */
}

.review-btn {
    background-color: #4a4645;
    color: #F1F3EA !important;
    border-radius: 0;
    font-weight: 700 !important;
    padding: 0.5rem 1rem !important;
    transition: background-color 0.3s ease, transform 0.2s ease !important;
}

.review-btn:hover {
    background-color: #333130 !important;
    color: #9CE784 !important;
    transform: translateY(-1px);
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--card-bg);
    min-width: 200px;
    box-shadow: 8px 8px 0px #31302C;
    z-index: 101;
    list-style: none;
    padding: 0;
    margin-top: 10px;
    left: 0;
    flex-direction: column;
}

.dropdown-content li {
    border-bottom: 1px solid rgba(241, 243, 234, 0.1);
}

.dropdown-content li:last-child {
    border-bottom: none;
}

.dropdown-content a {
    color: var(--text-color);
    padding: 12px 16px;
    display: block;
    font-size: 0.9rem;
}

.dropdown-content a:hover {
    background-color: #31302C;
    color: var(--accent-color);
}

.dropdown-content.show {
    display: flex;
}

.dropbtn i {
    transition: transform 0.3s ease;
    margin-left: 4px;
    font-size: 0.8em;
}

.dropbtn.active i {
    transform: rotate(180deg);
}

.hamburger {
    order: 1;
    display: block;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #F1F3EA;
    padding: 0.25rem;
}

/* Side panel menu */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 999;
}

.menu-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.side-panel {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: min(320px, 85vw);
    background: rgba(46, 43, 41, 0.9);
    box-shadow: 6px 0 16px rgba(0, 0, 0, 0.4);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1rem;
}

.side-panel.open {
    transform: translateX(0);
}

.side-panel-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.side-panel-close {
    background: transparent;
    border: none;
    color: #F1F3EA;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0.25rem;
}

.side-panel-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.side-panel-links a {
    display: block;
    padding: 0.65rem 0.75rem;
    color: #F1F3EA;
    border-radius: 0;
    font-weight: 600;
}

.panel-heading-wrap {
    padding-top: 0.25rem;
}

.panel-toggle {
    width: 100%;
    border: none;
    background: transparent;
    color: #F1F3EA;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 0.75rem;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    text-align: left;
}

.panel-toggle i {
    transition: transform 0.25s ease;
}

.panel-toggle:hover {
    color: #9CE784;
}

.panel-toggle.open i {
    transform: rotate(180deg);
}

.panel-sub-links {
    list-style: none;
    background: #1D1A18;
    margin: 0;
    padding: 0.35rem 0;
    display: none;
}

.panel-sub-links.open {
    display: block;
}

.panel-sub-link {
    margin-left: 0;
    padding-left: 1.35rem !important;
}

.side-panel-links a:hover {
    background: rgba(241, 243, 234, 0.12);
    color: #9CE784;
}

body.menu-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0.9rem 1rem 0.9rem 1.1rem;
    }

    .logo img {
        height: 34px;
    }

    .nav-links {
        display: none;
    }
}

/* Global scroll reveal: only text, images, and buttons */
.reveal-text,
.reveal-image,
.reveal-button {
    opacity: 0;
}

.reveal-text {
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: 0.3s;
}

.reveal-image {
    transform: translateY(16px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    transition-delay: 0.3s;
}

.reveal-button {
    transform: translateY(14px);
    transition: opacity 0.55s ease, transform 0.55s ease;
    transition-delay: 0.3s;
}

.reveal-text.is-visible,
.reveal-image.is-visible,
.reveal-button.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal-text,
    .reveal-image,
    .reveal-button {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('../images/hero_banner.jpg.png');
    background-size: cover;
    background-position: center;
    color: var(--card-bg);
    text-align: center;
    padding: 14rem 2rem; /* Significantly larger top/bottom for image visibility and perfect vertical center */
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero h1 {
    font-size: 3.5rem;
    color: #F1F3EA; /* Warm off-white */
    margin-bottom: 1rem; /* Reduced to standard spacing to fix off-center weight */
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    font-weight: 800;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0.8;
    color: #F1F3EA;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: #1D1A18;
    color: #F1F3EA;
    border-radius: 4px;
    font-weight: 700;
    box-shadow: var(--shadow);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--hover-shadow);
    background: #3F3B3A; /* Lighter dark brown */
    color: #F1F3EA; /* Warm off-white */
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

/* Home Layout (Zigzag) */
.art-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.art-grid.vertical-zigzag {
    display: flex;
    flex-direction: column;
    gap: 5rem; /* Increased space between each card */
    width: 100%;
    margin-top: 4rem;
}

.vertical-zigzag .art-card {
    width: 100%;
    max-width: 500px;
}

.vertical-zigzag .art-card:nth-of-type(odd) {
    align-self: flex-end; /* Right */
}

.vertical-zigzag .art-card:nth-of-type(even) {
    align-self: flex-start; /* Left */
}

.art-card {
    background: var(--card-bg);
    overflow: hidden;
    box-shadow: 8px 8px 0px #31302C; /* Hard sketch/pixel block shadow */
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.art-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 12px 12px 0px #31302C;
}

.card-content {
    padding: 2.5rem;
    min-height: 250px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.card-content p {
    color: var(--light-text);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
    flex-grow: 1;
}

.read-more {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: auto;
}

.read-more:hover {
    gap: 0.8rem;
    color: var(--accent-color);
}

/* Pagination Buttons */
.page-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(91, 112, 69, 0.1);
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.nav-btn:hover {
    background: var(--primary-color);
    color: var(--card-bg);
}

/* Section specific */
.section-title {
    text-align: left;
    margin-bottom: 3.75rem;
}

.section-title h2 {
    font-size: 2.5rem;
    position: relative;
    display: block;
    color: var(--primary-color);
}

.section-title h2::after {
    content: none;
    display: none;
}

/* Content Page Layout */
.content-wrapper {
    background: var(--card-bg);
    padding: 3.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-top: -3rem;
    /* Overlap hero */
    position: relative;
    z-index: 10;
    border: 1px solid rgba(91, 112, 69, 0.1);
}

.content-wrapper p {
    line-height: 1.95;
    margin-bottom: 1.4rem;
}

.content-wrapper h3 {
    margin-top: 2.6rem;
    margin-bottom: 1.1rem;
}

.content-wrapper ul {
    margin-top: 1rem;
    margin-bottom: 1.8rem;
}

.content-wrapper li {
    margin-bottom: 0.8rem;
}

.art-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2.8rem;
}

.gallery-item {
    height: 300px;
    background-color: var(--bg-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    position: relative;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(91, 112, 69, 0.9);
    color: var(--card-bg);
    padding: 0.5rem;
    text-align: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
}

/* Footer */
footer {
    background: var(--card-bg);
    color: var(--light-text);
    text-align: center;
    padding: 0.75rem 1rem 0.75rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(241, 243, 234, 0.1);
    position: relative;
}

/* Easter Egg GIF */
.easter-egg-container {
    position: absolute;
    bottom: 100%;
    right: 5%;
    z-index: 90;
    margin-bottom: -12px; /* Slight overlap with footer top border */
}

.easter-egg {
    width: 65px;
    opacity: 0.8;
    transition: var(--transition);
}

.easter-egg:hover {
    opacity: 1;
    transform: scale(1.1);
}

footer strong {
    color: #ffffff;
    font-size: 1.2em;
}

footer p {
    opacity: 0.7;
    margin-top: 0;
    margin-bottom: 0;
}

/* Essay Box */
.essay-box {
    background: var(--card-bg);
    color: #FFFFFF;
    padding: 3rem;
    box-shadow: 8px 8px 0px #31302C; /* Matches art cards */
    margin-bottom: 4rem;
}

.essay-box p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.essay-box p:last-child {
    margin-bottom: 0;
}

/* Content Images */
.content-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
    object-fit: cover;
    background-color: #ffffff;
    /* Fallback */
}

@media (min-width: 768px) {
    .content-image.right {
        float: right;
        margin-left: 30px;
        margin-bottom: 20px;
        margin-top: 10px;
    }

    .content-image.left {
        float: left;
        margin-right: 30px;
        margin-bottom: 20px;
        margin-top: 10px;
    }
}