:root {
    --color-primary: #e65137;
    --color-secondary: #2fdaf5;
    --color-white: #ffffff;
    --color-text: #333333; /* Darker text for contrast */
}

/* Basic Reset & Body Styling */
body {
    margin: 0;
    font-family: Arial, sans-serif; /* A simple sans-serif font */
    background-color: var(--color-white);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll due to transformations */
}

/* Cubist-inspired sections */
.cubist-section {
    position: relative;
    padding: 2rem;
    margin-bottom: 1rem;
    overflow: hidden;
    background-color: var(--color-white); /* Default background */
    border: 2px solid var(--color-text); /* Define clear borders */
}

.cubist-section:nth-child(odd) {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.cubist-section:nth-child(even) {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

/* Header Styling */
header.cubist-section {
    text-align: center;
    padding: 4rem 2rem;
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: skewY(-3deg); /* Cubist angle */
    margin-bottom: 2rem;
    border: none;
}

header.cubist-section h1 {
    font-size: 3em;
    margin: 0;
    transform: skewY(3deg); /* Counter-skew to keep text straight */
    display: inline-block;
}

/* Main content layout */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Specific section styling */
.description-section, .expositors-section {
    padding: 3rem;
    transform: rotate(-2deg); /* Slight rotation for cubist feel */
    margin-left: 5%;
    margin-right: 5%;
    margin-bottom: 3rem;
}

.expositors-section ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.expositors-section li {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-text);
    transform: rotate(5deg); /* Individual item rotation */
    color: var(--color-text);
}

/* Gallery Section */
.gallery-section {
    background-color: var(--color-text);
    color: var(--color-text);
    padding: 3rem 1rem;
    transform: rotate(3deg); /* Another angle */
    margin-left: -2%;
    margin-right: -2%;
    margin-bottom: 4rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    padding: 20px;
    background-color: var(--color-secondary);
    border: 2px solid var(--color-primary);
    transform: rotate(-5deg); /* Rotate the entire grid */
}

.gallery-grid img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    border: 3px solid var(--color-white);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.gallery-grid img:nth-child(odd) {
    transform: rotate(7deg) scale(1.05); /* Different transformations */
    margin-bottom: -20px;
    margin-right: -20px;
}

.gallery-grid img:nth-child(even) {
    transform: rotate(-10deg) scale(1.03);
    margin-top: -15px;
    margin-left: -15px;
}

.gallery-grid img:hover {
    transform: scale(1.1) rotate(0deg);
    border-color: var(--color-primary);
    z-index: 10;
}

/* Footer Styling */
footer.cubist-section {
    text-align: center;
    padding: 2rem;
    background-color: var(--color-text);
    color: var(--color-white);
    transform: skewY(2deg);
    margin-top: 2rem;
    border: none;
}

footer.cubist-section p {
    margin: 0;
    transform: skewY(-2deg);
    display: inline-block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    header.cubist-section {
        padding: 2rem 1rem;
    }

    header.cubist-section h1 {
        font-size: 2.5em;
    }

    .description-section, .expositors-section, .gallery-section {
        margin-left: 0;
        margin-right: 0;
        transform: none; /* Remove rotations on smaller screens for better readability */
    }

    .expositors-section li {
        transform: none;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        transform: none;
    }

    .gallery-grid img:nth-child(odd),
    .gallery-grid img:nth-child(even) {
        transform: none;
        margin: 0;
    }
}