/* ========================================
   HAZIM BITAR — Cinematic Editorial Theme
   Mobile-First | SEO-Ready
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,400;0,6..96,500;0,6..96,600;0,6..96,700;0,6..96,800;0,6..96,900;1,6..96,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --bg-primary: #0b0b0f;
    --bg-secondary: #111118;
    --bg-card: #16161e;
    --text-primary: #f0ece2;
    --text-secondary: #a09e97;
    --accent: #c9a84c;
    --accent-dim: rgba(201, 168, 76, 0.15);
    --border: rgba(255, 255, 255, 0.06);
    --font-serif: 'Bodoni Moda', serif;
    --font-sans: 'Inter', -apple-system, sans-serif;
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --container: 1300px;
}

/* === RESET === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

/* Force better rendering on all elements */
*,
*::before,
*::after {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
.hero__title,
.nav__logo {
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* === TYPOGRAPHY === */
h1,
h2,
h3,
h4 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.2;
}

.label {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
}

/* === NAVIGATION === */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.25rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.4s, backdrop-filter 0.4s;
}

.nav.scrolled {
    background: rgba(11, 11, 15, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav__logo {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav__logo span {
    color: var(--accent);
}

.nav__links {
    display: flex;
    gap: 2.5rem;
}

.nav__links a {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-secondary);
    transition: color 0.3s;
    position: relative;
}

.nav__links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s var(--ease);
}

.nav__links a:hover,
.nav__links a.active {
    color: var(--text-primary);
}

.nav__links a:hover::after,
.nav__links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 101;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: 0.3s;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* === HERO === */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 5% 8rem;
    position: relative;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
}

.hero__bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    opacity: 0.35;
}

.hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(11, 11, 15, 0.4) 0%, rgba(11, 11, 15, 0.1) 30%, rgba(11, 11, 15, 0.7) 70%, #0b0b0f 100%),
        radial-gradient(ellipse at 20% 50%, rgba(201, 168, 76, 0.08) 0%, transparent 60%);
}

.hero__grain {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    background-size: 256px;
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 850px;
}

.hero__title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
}

.hero__title em {
    color: var(--accent);
    font-style: italic;
}

.hero__subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 550px;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.2rem;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s var(--ease);
}

.hero__cta:hover {
    background: var(--accent);
    color: var(--bg-primary);
}

.hero__cta svg {
    transition: transform 0.3s;
}

.hero__cta:hover svg {
    transform: translateX(4px);
}

.hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-secondary);
    animation: float 2s ease-in-out infinite;
    transition: opacity 0.3s var(--ease);
}

.hero__scroll.hidden {
    opacity: 0;
    pointer-events: none;
}

@keyframes float {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(8px);
    }
}

/* === SECTIONS === */
.section {
    padding: 6rem 5%;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
}

.section__header {
    margin-bottom: 4rem;
}

.section__title {
    font-size: 2.5rem;
    margin-top: 0.75rem;
}

h2.section__title {
    font-size: 2rem;
}

.section__divider {
    width: 60px;
    height: 2px;
    background: var(--accent);
    margin-top: 1.5rem;
}

/* === FILM GRID === */
.film-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.film-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: border-color 0.4s, transform 0.4s var(--ease);
}

.film-card:hover {
    border-color: rgba(201, 168, 76, 0.3);
    transform: translateY(-4px);
}

.film-card__poster {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.film-card__poster-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.film-card:hover .film-card__poster-bg {
    transform: scale(1.05);
}

.film-card__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, var(--bg-card) 0%, transparent 60%);
}

.film-card__body {
    padding: 1.5rem 2rem 2rem;
}

.film-card__title {
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
}

.film-card__meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.film-card__desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.film-card__festivals {
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.75;
    line-height: 1.6;
    border-top: 1px solid var(--border);
    padding-top: 0.75rem;
    margin-bottom: 1rem;
}

.film-card__festivals strong {
    color: var(--accent);
    font-weight: 600;
}

.film-card__awards {
    border-top: 1px solid var(--border);
    padding-top: 1.25rem;
    margin-top: 1rem;
}

.film-card__awards li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
    padding-left: 1rem;
    position: relative;
}

.film-card__awards li::before {
    content: '★';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 0.7rem;
}

.film-card__links {
    margin-top: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.film-card__link {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.film-card__link:hover {
    border-bottom-color: var(--accent);
}

/* === INITIATIVES (AFC + JSFF) === */
.initiatives-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

.initiative-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden;
}

.initiative-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
}

.initiative-card__title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.initiative-card__subtitle {
    font-size: 0.8rem;
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-family: var(--font-sans);
}

.initiative-logo {
    transition: transform 0.4s var(--ease);
}

.initiative-logo:hover {
    transform: scale(1.05);
}

.initiative-card__desc {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.initiative-card__stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.stat {
    text-align: center;
}

.stat__number {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    display: block;
}

.stat__label {
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

/* === ABOUT / BIOGRAPHY === */
.bio-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.bio__portrait {
    width: 100%;
    /* height: 400px; Removed to show full image */
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.bio__portrait-initials {
    font-family: var(--font-serif);
    font-size: 5rem;
    font-weight: 900;
    color: var(--accent-dim);
    letter-spacing: 4px;
}

.bio__portrait-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s var(--ease);
}

.bio__portrait:hover .bio__portrait-img {
    transform: scale(1.03);
}

.bio__text h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.bio__text h2:first-child {
    margin-top: 0;
}

.bio__text p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
}

.bio__list {
    margin-top: 1rem;
}

.bio__list li {
    color: var(--text-secondary);
    font-size: 1rem;
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    border-bottom: 1px solid var(--border);
}

.bio__list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* === TIMELINE === */
.timeline {
    position: relative;
    padding-left: 2rem;
    margin-top: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 1px;
    height: 100%;
    background: var(--border);
}

/* === INLINE LINKS === */
.bio__text p a,
.bio__list li a,
.initiative-card__desc a {
    color: var(--accent);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
    font-weight: 500;
}

.bio__text p a:hover,
.bio__list li a:hover,
.initiative-card__desc a:hover {
    border-bottom-color: var(--accent);
}

.timeline__item {
    position: relative;
    padding-bottom: 2rem;
}

.timeline__item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--bg-primary);
}

.timeline__year {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.25rem;
}

.timeline__text {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* === PRESS LINKS === */
.press-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.press-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: border-color 0.3s, background 0.3s;
}

.press-item:hover {
    border-color: rgba(201, 168, 76, 0.3);
    background: var(--bg-secondary);
}

.press-item__source {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    flex-shrink: 0;
    min-width: 80px;
}

.press-item__title {
    font-family: var(--font-serif);
    font-size: 1rem;
    flex: 1;
}

.press-item__arrow {
    color: var(--text-secondary);
    transition: transform 0.3s;
}

.press-item:hover .press-item__arrow {
    transform: translateX(4px);
    color: var(--accent);
}

/* === FOOTER === */
.footer {
    padding: 4rem 5%;
    border-top: 1px solid var(--border);
    margin-top: 2rem;
}

.footer__inner {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    text-align: center;
}

.footer__logo {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 700;
}

.footer__nav {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer__nav a {
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.footer__nav a:hover {
    color: var(--accent);
}

.footer__copy {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* === SCROLL ANIMATIONS === */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
    backface-visibility: hidden;
    will-change: transform, opacity;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/* === ALUMNI GRID === */
.alumni-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.alumna-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: transform 0.3s var(--ease), border-color 0.3s;
}

.alumna-card:hover {
    transform: translateY(-5px);
    border-color: rgba(201, 168, 76, 0.3);
}

.alumna-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
    background-color: var(--bg-secondary);
}

.alumna-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 700;
}

.alumna-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.alumna-name {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--text-primary);
}

.alumna-link {
    font-size: 0.8rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    transition: color 0.3s;
}

.alumna-link:hover {
    color: var(--text-primary);
}

.poster--the-view {
    background: linear-gradient(135deg, #1a2332 0%, #2c1810 50%, #0d1117 100%);
}

.poster--belly-whale {
    background: linear-gradient(135deg, #0d1a2d 0%, #1a1a2e 50%, #0b0b14 100%);
}

.poster--amman-suburbia {
    background: linear-gradient(135deg, #2d1f0d 0%, #1a1510 50%, #0f0d0b 100%);
}

.poster--amman-suburbia .film-card__poster-bg {
    object-position: center top;
}

.poster--sharar {
    background: linear-gradient(135deg, #2d0d0d 0%, #1a1015 50%, #100b0f 100%);
}

.poster--overdose {
    background: linear-gradient(135deg, #121212 0%, #1a1a1a 50%, #0a0a0a 100%);
}

.poster--jerusalem {
    background: linear-gradient(135deg, #1a1f2d 0%, #15101a 50%, #0b0d14 100%);
}

.poster--jerusalem .film-card__poster-bg {
    object-position: center top;
}

.poster--uncivil {
    background: linear-gradient(135deg, #1a2d1a 0%, #10151a 50%, #0b100b 100%);
}

.poster--fish-sea {
    background: linear-gradient(135deg, #0d2d2d 0%, #101a1a 50%, #0b0f14 100%);
}

.poster--fish-sea .film-card__poster-bg {
    object-position: center top;
}

.poster--winds {
    background: linear-gradient(135deg, #2d2a0d 0%, #1a1510 50%, #0f0d0b 100%);
}

.poster__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.08);
    text-transform: uppercase;
    letter-spacing: 4px;
}

/* === MEDIA QUERIES === */

/* Tablet */
@media (min-width: 640px) {
    .film-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .initiatives-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .press-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bio-layout {
        grid-template-columns: 1fr 1.5fr;
        gap: 4rem;
    }
}

/* Desktop */
@media (min-width: 960px) {
    .hero__title {
        font-size: 4.5rem;
    }

    .section {
        padding: 8rem 5%;
    }

    .section__title {
        font-size: 3rem;
    }

    .film-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .nav__links {
        gap: 3rem;
    }

    .hamburger {
        display: none;
    }
}

/* Large Desktop */
@media (min-width: 1200px) {
    .hero__title {
        font-size: 5.5rem;
    }

    .film-card__poster {
        height: 260px;
    }
}

/* Mobile Menu */
@media (max-width: 959px) {
    .nav__links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: right 0.4s var(--ease);
        border-left: 1px solid var(--border);
    }

    .nav__links.open {
        right: 0;
    }

    .nav__links a {
        font-size: 1.2rem;
    }

    .hamburger {
        display: flex;
    }
}