/* --- 1. Define Custom Fonts --- */
@font-face {
    font-family: 'BonyadeKoodak';
    src: url('fonts/BonyadeKoodak-Regular.woff') format('woff');
    font-weight: normal; /* 400 */
    font-style: normal;
}

@font-face {
    font-family: 'BonyadeKoodak';
    src: url('fonts/BonyadeKoodak-Bold.woff') format('woff');
    font-weight: bold; /* 700 */
    font-style: normal;
}


/* --- Global Styles & Typography --- */
:root {
    --bg-color: #1A1917;
    --card-bg: #22211F;
    --primary-accent: #EB5321;
    --secondary-accent: #A5B590;
    --text-color: #D6D6D6;
    --border-color: #333;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'BonyadeKoodak', Arial, sans-serif; 
    font-weight: normal;
    margin: 0;
    padding: 0;
    direction: rtl;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

h1, h3 {
    font-weight: bold;
}

h1 {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-accent);
}

h3 {
    font-size: 1.4rem;
    color: var(--primary-accent);
}

p {
    line-height: 1.9;
    text-align: justify;
    color: #b0b0b0;
    font-size: 1.1rem;
}

a {
    text-decoration: none;
    color: var(--secondary-accent);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-accent);
}

/* --- Header and Navigation --- */
.header {
    background-color: rgba(26, 25, 23, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--text-color);
}

.nav a {
    margin-right: 25px;
    font-size: 1.1rem;
    padding-bottom: 8px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease-in-out;
}

.nav a.active, .nav a:hover {
    color: var(--primary-accent);
    border-bottom-color: var(--primary-accent);
}

/* --- Video Gallery & Item Styling --- */
.video-gallery {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 4rem;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.video-item {
    background-color: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.video-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(235, 83, 33, 0.2);
}

.video-player {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-explanation {
    padding: 1rem 2rem 2rem 2rem;
}

.video-explanation h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

/* --- Footer --- */
.footer {
    text-align: center;
    margin-top: 5rem;
    padding: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--secondary-accent);
}

/* --- SCROLL ANIMATION --- */
.video-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.video-item.visible {
    opacity: 1;
    transform: translateY(0);
}


/* --- Artworks Page (with Text Area) --- */
.poster-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 4rem;
}

.poster-item {
    background-color: var(--card-bg); /* Give the whole card a background */
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.poster-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

/* This rule targets ONLY the first poster */
.poster-gallery .poster-item:first-child {
    grid-column: 1 / -1; /* Makes it span the full width */
}

.poster-item img {
    width: 100%;
    height: auto; /* Allow image to determine its height */
    display: block;
}

/* Styling for the new text area */
.poster-info {
    padding: 1rem 1.25rem;
}

.poster-info p {
    margin: 0;
    font-size: 1rem;
    color: var(--text-color);
    text-align: right;
    line-height: 1.6;
}

/* Responsive adjustment for smaller screens */
@media (max-width: 768px) {
    .poster-gallery {
        /* On smaller screens, everything becomes a single column */
        grid-template-columns: 1fr;
    }
}