:root {
    --gh-red: #EF3340;
    --gh-yellow: #FFD700;
    --gh-green: #006B3D;
    --white: #ffffff;
    --black: #000000;
    --transition: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--white);
    background: #121212;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.gallery-section {
    max-width: 100%;
    padding: 0;
}

.gallery-section .gallery-card {
    width: 100%;
    max-width: none;
    margin: 0;
    border-radius: 0;
}

#fav {
    width: 32px;
    height: 32px;
    border-radius: 1000px;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 0;
    background: rgba(18, 18, 18, 0.95);
    z-index: 1000;
    transition: var(--transition);
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--white);
    text-decoration: none;
}

.logo span {
    color: var(--gh-yellow);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 400;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--gh-yellow);
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('/images/Indio\ pictures\ -\ Get\ premium\ free\ images\ _\ Freepik.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    padding-top: 60px;
}

.page-header {
    padding: 8rem 0 4rem;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('/images/Independence\ Square\,\ Ghana_.jpg');
    background-size: cover;
    background-position: center;
    width: 100%;
    max-width: 100%;
}

.page-header h1 {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 900;
}

.page-header .tag {
    text-align: center;
    display: block;
}

.gallery-page .page-header {
    padding: 9rem 0 5rem;
}

.gallery-page .header-subtitle {
    max-width: 760px;
    margin: 1.5rem auto 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.05rem;
    line-height: 1.8;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.eyebrow {
    display: block;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gh-yellow);
    margin-bottom: 1rem;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero p {
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 4px;
    transition: var(--transition);
}

.btn-primary {
    background: var(--gh-yellow);
    color: var(--black);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-primary:hover {
    background: var(--gh-red);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(239, 51, 64, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    margin-left: 1rem;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--black);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.section {
    padding: 4rem 0 3rem;
    max-width: 100%;
}

.section.container {
    padding-left: 0;
    padding-right: 0;
}

.section-alt {
    padding: 6rem 0 5rem;
    background: #1a1a1a;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.content-grid.reverse .text-side {
    order: 2;
}

.content-grid.reverse .image-side {
    order: 1;
}

.text-side h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--gh-yellow);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.text-side p {
    opacity: 0.8;
    line-height: 1.8;
}

.image-side img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 8px;
}

.gallery-card {
    position: relative;
    min-height: 500px;
    width: 100%;
    margin: 0;
    overflow: hidden;
    border-radius: 0;
}

.gallery-section .gallery-card {
    border-radius: 0;
}

.gallery-card .image-side {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-wrap: nowrap;
}

.gallery-card .image-side img {
    flex: 1;
    width: auto;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: transform 0.5s ease;
}

.gallery-card.reverse .image-side img {
    flex: 1;
}

.gallery-card:hover .image-side img {
    transform: scale(1.05);
}

.gallery-card .text-side {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    background: linear-gradient(135deg, rgba(0,107,61,0.95) 0%, rgba(0,80,45,0.9) 100%);
    padding: 2rem;
    border-radius: 0;
    border-left: 4px solid var(--gh-yellow);
    max-width: 500px;
    z-index: 2;
}

.gallery-card.reverse .text-side {
    left: auto;
    right: 30px;
    border-left: none;
    border-right: 4px solid var(--gh-yellow);
}

.gallery-card .text-side h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
}

.gallery-card .text-side p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

@media (max-width: 768px) {
    .gallery-card {
        min-height: 350px;
    }

    .gallery-card .text-side {
        left: 15px;
        right: 15px;
        bottom: 15px;
        padding: 1.5rem;
    }

    .gallery-card.reverse .text-side {
        right: 15px;
    }

    .gallery-card .text-side h2 {
        font-size: 1.4rem;
    }
}

.tag {
    display: inline-block;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gh-yellow);
    margin-bottom: 1rem;
}

.intro-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--gh-yellow);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
}

.intro-text p {
    margin-bottom: 1rem;
    opacity: 0.8;
}

.culture-section {
    text-align: center;
}

.culture-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--gh-yellow);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
}

.craft-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    text-align: left;
}

.craft-content p {
    margin-bottom: 1rem;
    opacity: 0.8;
}

.craft-content img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

.intro-image {
    position: relative;
}

.intro-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 8px;
}

.image-border {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 3px solid var(--gh-yellow);
    border-radius: 8px;
    z-index: -1;
}

@media (max-width: 900px) {
    .intro-grid,
    .content-grid,
    .craft-content {
        grid-template-columns: 1fr;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: #121212;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
}

.card-body {
    padding: 2rem;
}

.card-body img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card p {
    opacity: 0.8;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    padding: 0;
    grid-auto-rows: 1fr;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    min-height: 360px;
    display: flex;
    align-items: flex-end;
    background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.32);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.07);
}

.gallery-item .caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.25rem 1rem;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.9) 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.75px;
    text-transform: uppercase;
}

.gallery-page .gallery-section {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0;
    padding: 3rem 2rem 2.5rem;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
    margin-bottom: 2.5rem;
}

.gallery-page .section-header {
    display: grid;
    gap: 0.85rem;
    text-align: left;
    margin-bottom: 2.25rem;
}

.gallery-page .section-header .tag {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 2.2px;
    color: rgba(255, 215, 0, 0.95);
    font-weight: 600;
}

.gallery-page .section-header h2 {
    font-size: 2.75rem;
    line-height: 1.05;
    letter-spacing: 0.5px;
    margin-bottom: 0;
    max-width: 780px;
}

.gallery-page .section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    margin: 1rem 0 0;
    background: var(--gh-yellow);
    border-radius: 999px;
}

.gallery-page .section-header p {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.95;
    font-size: 1rem;
}

@media (max-width: 900px) {
    .gallery-page .page-header {
        padding: 6.5rem 0 4rem;
    }

    .gallery-page .header-subtitle {
        font-size: 0.98rem;
    }
}

.accent-line {
    width: 80px;
    height: 3px;
    background: var(--gh-yellow);
    margin: 1rem auto;
}

.footer {
    background: #0a0a0a;
    padding: 3rem 0;
    text-align: center;
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.footer-logo span {
    color: var(--gh-yellow);
}

.flag-line {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: 2rem 0;
}

.flag-line div {
    width: 50px;
    height: 30px;
    border-radius: 3px;
}

.red { background: var(--gh-red); }
.yellow { background: var(--gh-yellow); }
.green { background: var(--gh-green); }

.copy {
    font-size: 0.875rem;
    opacity: 0.6;
}

.section-desc {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    opacity: 0.8;
}

.gold-icon {
    font-size: 2.5rem;
    color: var(--gh-yellow);
    margin-bottom: 1.5rem;
    display: block;
}

.food-list {
    list-style: none;
    margin-top: 2rem;
}

.food-list li {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    border-left: 3px solid var(--gh-red);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: var(--white);
    transition: var(--transition);
}

@media (max-width: 768px) {
    .hamburger { display: flex; z-index: 2001; }
    
    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 70%;
        background: var(--black);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s ease-in-out;
    }

    .nav-links.active { right: 0; }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .craft-content {
        grid-template-columns: 1fr;
    }

    .intro-grid {
        grid-template-columns: 1fr;
    }

    .intro-image {
        order: -1;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .content-grid.reverse .text-side,
    .content-grid.reverse .image-side {
        order: 0;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .gallery-item:hover {
        transform: translateY(-4px);
    }
}

/* Animation class for JS */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: 1s all ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Home Page Sections */
.deep-section {
    padding: 5rem 0;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.content-wrapper.centered {
    text-align: center;
}

.content-wrapper h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin: 1rem 0 1.5rem;
    color: var(--gh-yellow);
}

.content-wrapper p {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.editorial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.editorial-text {
    text-align: left;
}

.bg-dark {
    background: #121212;
}

.bg-grey {
    background: #1a1a1a;
}

.editorial-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.btn-dark {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-dark:hover {
    background: var(--white);
    color: var(--black);
}

/* Food Page Specific Styles */
#roots, #exchange, #preservation, #migration {
    padding: 5rem 0;
    margin: 0;
}

.content-wrapper strong {
    color: var(--gh-yellow);
    font-weight: 600;
}

.content-wrapper em {
    color: var(--gh-red);
    font-style: normal;
}

.editorial-text strong {
    color: var(--gh-yellow);
}

.tag {
    display: block;
    margin-bottom: 0.75rem;
}

.card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #0f0f0f;
    padding: 0;
}

.card-body {
    padding: 0;
}

.card-body img {
    border-radius: 0;
    margin: 0;
}

.card-body h3,
.card-body p {
    padding: 1.5rem 1.5rem 0;
}

.card-body p {
    padding-bottom: 1.5rem;
    margin-bottom: 0;
}

.features-grid {
    gap: 1.5rem;
}

.section-alt {
    padding: 5rem 0;
    background: #0f0f0f;
}

#migration {
    text-align: center;
}

#migration .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.gallery-card-image {
    display: flex;
    gap: 0;
    height: 100%;
}

.gallery-card-image img {
    flex: 1;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card-image img:first-child {
    clip-path: polygon(0 0, 100% 0, 92% 100%, 0% 100%);
}

.gallery-card-image img:not(:first-child):not(:last-child) {
    clip-path: polygon(8% 0, 92% 0, 92% 100%, 8% 100%);
}

.gallery-card-image img:last-child {
    clip-path: polygon(8% 0, 100% 0, 100% 100%, 0% 100%);
    margin-left: -2%;
}

.gallery-card:hover .gallery-card-image img:first-child {
    transform: translateX(5%);
}

.gallery-card:hover .gallery-card-image img:last-child {
    transform: translateX(-5%);
}

.gallery-card-content {
    background: linear-gradient(135deg, var(--gh-yellow) 0%, #e6c200 100%);
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
    margin-left: -5%;
}

.gallery-card-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
    font-weight: 900;
}

.gallery-card-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(0, 0, 0, 0.8);
    font-weight: 400;
}

.gallery-card.reverse {
    grid-template-columns: 1fr 2fr;
}

.gallery-card.reverse .gallery-card-image {
    order: 2;
}

.gallery-card.reverse .gallery-card-image img:first-child {
    clip-path: polygon(0 0, 98% 0, 100% 100%, 0% 100%);
}

.gallery-card.reverse .gallery-card-image img:last-child {
    clip-path: polygon(0 0, 100% 0, 92% 100%, 0% 100%);
    margin-left: -2%;
}

.gallery-card.reverse .gallery-card-image img:first-child:last-child {
    clip-path: none;
    margin: 0;
}

.gallery-card.reverse .gallery-card-content {
    order: 1;
    margin-left: 0;
    margin-right: -5%;
    clip-path: polygon(0 0, 85% 0, 100% 100%, 0% 100%);
    background: linear-gradient(135deg, var(--gh-red) 0%, #c42a33 100%);
}

.gallery-card.reverse .gallery-card-content h2 {
    color: var(--white);
}

.gallery-card.reverse .gallery-card-content p {
    color: rgba(255, 255, 255, 0.9);
}

.gallery-card.reverse .gallery-card-image img:first-child {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 10% 100%);
    margin-left: 0;
    margin-right: -5%;
}

.gallery-card.reverse .gallery-card-image img:last-child {
    clip-path: polygon(0 0, 90% 0, 100% 100%, 0% 100%);
    margin-left: 0;
}

@media (max-width: 768px) {
    .gallery-card {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .gallery-card-image {
        flex-direction: column;
        height: 300px;
    }

    .gallery-card-image img {
        width: 100%;
        height: 50%;
        clip-path: none;
        margin: 0;
    }

    .gallery-card-content {
        padding: 2rem;
        clip-path: none;
        margin: 0;
    }

    .gallery-card-content h2 {
        font-size: 1.6rem;
    }

    .gallery-card.reverse {
        grid-template-columns: 1fr;
    }

    .gallery-card.reverse .gallery-card-image {
        order: 1;
    }

    .gallery-card.reverse .gallery-card-content {
        order: 2;
        margin: 0;
    }
}