/* =============================================
   IRAN BASTAN GALLERY — Complete Stylesheet
   Mobile-first · Luxury · Animated
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Nunito:wght@300;400;500;600&display=swap');

/* ---- CSS VARIABLES ---- */
:root {
    --navy:        #0b1a33;
    --navy-light:  #122040;
    --gold:        #d4af37;
    --gold-dark:   #b9972f;
    --gold-soft:   rgba(212,175,55,0.12);
    --gold-border: rgba(212,175,55,0.3);
    --cream:       #f9f6f0;
    --white:       #ffffff;
    --text:        #0b1a33;
    --text-light:  #f2f2f2;
    --text-muted:  #5a6a82;
    --shadow-sm:   0 2px 12px rgba(11,26,51,0.10);
    --shadow-md:   0 6px 24px rgba(11,26,51,0.15);
    --shadow-lg:   0 16px 48px rgba(11,26,51,0.22);
    --radius:      16px;
    --radius-sm:   10px;
    --ease:        cubic-bezier(.4,0,.2,1);
    --header-h:    72px;
}

/* ---- RESET ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img  { max-width: 100%; display: block; }

/* ---- BASE ---- */
body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--cream);
    color: var(--text);
    padding-top: var(--header-h);
    overflow-x: hidden;
}

/* =============================================
   HEADER & NAV
   ============================================= */
.fixed-header {
    width: 100%;
    position: fixed;
    top: 0; left: 0;
    height: var(--header-h);
    background-color: var(--navy);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    z-index: 1000;
    box-shadow: 0 2px 24px rgba(0,0,0,0.35);
    border-bottom: 1px solid var(--gold-border);
}

.fixed-header .logo {
    height: 50px;
    width: 50px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
}

.fixed-header h1 {
    font-family: 'Playfair Display', serif;
    color: var(--gold);
    font-size: clamp(0.95rem, 2.5vw, 1.4rem);
    font-weight: 600;
    letter-spacing: 0.04em;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    pointer-events: none;
}

/* ---- Hamburger ---- */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
    z-index: 1010;
}
.hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
    transition: all 0.35s var(--ease);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Nav ---- */
nav ul { list-style: none; display: flex; gap: 4px; align-items: center; }
nav a {
    text-decoration: none;
    color: #d8d8d8;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 7px 14px;
    border-radius: 20px;
    transition: all 0.25s var(--ease);
    white-space: nowrap;
}
nav a:hover,
nav li.active a {
    color: var(--navy);
    background: var(--gold);
}

/* =============================================
   HERO
   ============================================= */
.hero {
    position: relative;
    background: url('../image/foto2.webp') center/cover no-repeat;
    height: 100svh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    backdrop-filter: blur(4px);
    background: linear-gradient(160deg, rgba(11,26,51,0.75) 0%, rgba(11,26,51,0.45) 60%, rgba(11,26,51,0.65) 100%);
}

.hero-text {
    position: relative;
    z-index: 1;
    color: var(--white);
    max-width: 680px;
    padding: 24px 20px;
    animation: heroFadeUp 1s var(--ease) both;
}

.hero-ornament {
    display: block;
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin: 0 auto 20px;
    animation: heroFadeUp 1s 0.1s var(--ease) both;
}

.hero-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.9rem, 6vw, 3.2rem);
    line-height: 1.2;
    margin-bottom: 16px;
    text-shadow: 0 2px 16px rgba(0,0,0,0.5);
}

.hero-text p {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    opacity: 0.92;
    margin-bottom: 32px;
    line-height: 1.7;
    animation: heroFadeUp 1s 0.2s var(--ease) both;
}

.hero-buttons { animation: heroFadeUp 1s 0.35s var(--ease) both; }

@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
    display: inline-block;
    background-color: var(--gold);
    color: var(--navy);
    padding: 13px 30px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    transition: all 0.28s var(--ease);
    box-shadow: 0 4px 16px rgba(212,175,55,0.35);
}
.btn:hover {
    background-color: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212,175,55,0.45);
}
.btn:active { transform: translateY(0); }

.btn-outline {
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
    box-shadow: none;
    margin-left: 12px;
}
.btn-outline:hover {
    background: var(--gold);
    color: var(--navy);
    box-shadow: 0 8px 24px rgba(212,175,55,0.35);
}

/* =============================================
   ABOUT
   ============================================= */
.about {
    text-align: center;
    padding: clamp(60px, 10vw, 100px) 24px;
    background: var(--white);
    position: relative;
    overflow: hidden;
}
.about::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.about-inner {
    max-width: 760px;
    margin: 0 auto;
}

.about h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 5vw, 2.4rem);
    margin-bottom: 12px;
    color: var(--navy);
}

.about-divider {
    width: 50px;
    height: 2px;
    background: var(--gold);
    margin: 14px auto 24px;
    border-radius: 2px;
}

.about p {
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    margin-top: 48px;
    text-align: center;
}
.feature-card {
    background: var(--cream);
    border-radius: var(--radius-sm);
    padding: 24px 16px;
    border: 1px solid var(--gold-border);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-icon { font-size: 2rem; margin-bottom: 10px; }
.feature-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 0.98rem;
    color: var(--navy);
    margin-bottom: 6px;
}
.feature-card p { font-size: 0.84rem; margin-bottom: 0; }

/* =============================================
   GALLERY PAGE
   ============================================= */
.gallery {
    padding: 48px 16px 0;
    background: var(--cream);
}
.gallery > h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 5vw, 2.4rem);
    color: var(--navy);
    text-align: center;
    margin-bottom: 8px;
}
.gallery-page-divider {
    width: 50px; height: 2px;
    background: var(--gold);
    margin: 12px auto 36px;
    border-radius: 2px;
}

/* Grid */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1300px;
    margin: 0 auto;
}

/* Cards */
.gallery-item {
    background: var(--white);
    border-radius: var(--radius);
    padding: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(212,175,55,0.15);
    transition: transform 0.32s var(--ease), box-shadow 0.32s var(--ease);
    opacity: 0;
    transform: translateY(20px);
    animation: cardIn 0.6s var(--ease) forwards;
}
.gallery-item:nth-child(1) { animation-delay: 0.05s; }
.gallery-item:nth-child(2) { animation-delay: 0.10s; }
.gallery-item:nth-child(3) { animation-delay: 0.15s; }
.gallery-item:nth-child(4) { animation-delay: 0.20s; }
.gallery-item:nth-child(5) { animation-delay: 0.25s; }
.gallery-item:nth-child(6) { animation-delay: 0.30s; }
.gallery-item:nth-child(7) { animation-delay: 0.35s; }
.gallery-item:nth-child(8) { animation-delay: 0.40s; }

@keyframes cardIn {
    to { opacity: 1; transform: translateY(0); }
}

.gallery-item:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: var(--shadow-lg);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
    padding: 0 2px;
}
.photo-title {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.3;
    flex: 1;
}
.like-btn {
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s var(--ease), color 0.2s;
    flex-shrink: 0;
    line-height: 1;
    padding: 2px;
    user-select: none;
}
.like-btn:hover { transform: scale(1.3); }
.like-btn.liked { color: #e53935; animation: heartPop 0.3s var(--ease); }

@keyframes heartPop {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.45); }
    100% { transform: scale(1); }
}

.gallery-item a { overflow: hidden; border-radius: var(--radius-sm); display: block; }
.gallery-item img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    transition: transform 0.4s var(--ease);
}
.gallery-item:hover img { transform: scale(1.04); }

/* Video section */
.video-title {
    font-family: 'Playfair Display', serif;
    text-align: center;
    margin: 60px 0 28px;
    font-size: clamp(1.4rem, 4vw, 2rem);
    color: var(--navy);
}
.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 1300px;
    margin: 0 auto;
}
.video-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gold-border);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.video-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.video-card video {
    width: 100%;
    display: block;
    aspect-ratio: 9/16;
    object-fit: cover;
    background: #000;
}

/* =============================================
   LIGHTBOX
   ============================================= */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
}
.lightbox:target { display: flex; animation: fadeIn 0.25s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.lightbox img, .lightbox video {
    max-width: 94%;
    max-height: 90vh;
    border-radius: var(--radius-sm);
    box-shadow: 0 0 60px rgba(0,0,0,0.7);
}
.lightbox .close {
    position: fixed;
    top: 16px; right: 20px;
    width: 44px; height: 44px;
    background: white;
    border-radius: 50%;
    opacity: 0.85;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.1rem;
    color: var(--navy);
    font-weight: bold;
    transition: opacity 0.2s, transform 0.2s;
}
.lightbox .close::before { content: '✕'; }
.lightbox .close:hover { opacity: 1; transform: scale(1.1); }

/* =============================================
   FOOTER
   ============================================= */
footer {
    background-color: var(--navy);
    color: var(--text-light);
    position: static;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-bottom: 0;
    padding: 0;
}
footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 52px 24px 32px;
    width: 100%;
}
.footer-section h3 {
    font-family: 'Playfair Display', serif;
    color: var(--gold);
    margin-bottom: 14px;
    font-size: 1.1rem;
}
.footer-section p {
    margin-bottom: 8px;
    font-size: 0.93rem;
    color: rgba(242,242,242,0.82);
    line-height: 1.7;
}
.footer-bottom {
    border-top: 1px solid rgba(212,175,55,0.25);
    text-align: center;
    padding: 18px 20px;
    font-size: 0.83rem;
    color: rgba(242,242,242,0.55);
}
.footer-bottom p { margin: 0; }

/* =============================================
   SCROLL REVEAL
   ============================================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
    .video-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    :root { --header-h: 64px; }

    .fixed-header { padding: 0 16px; }
    .fixed-header h1 { font-size: 1rem; max-width: 46%; overflow: hidden; text-overflow: ellipsis; }

    .hamburger { display: flex; }

    nav {
        position: fixed;
        top: var(--header-h); left: 0;
        width: 100%;
        background: var(--navy-light);
        border-top: 1px solid var(--gold-border);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s var(--ease);
        z-index: 999;
    }
    nav.open { max-height: 400px; padding-bottom: 12px; }
    nav ul { flex-direction: column; gap: 0; padding: 8px 0; }
    nav ul li { width: 100%; }
    nav a { display: block; padding: 14px 24px; border-radius: 0; font-size: 1.05rem; border-bottom: 1px solid rgba(212,175,55,0.1); }
    nav a:hover, nav li.active a { background: var(--gold-soft); color: var(--gold); }

    .gallery-container { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .gallery-item img { height: 180px; }

    .video-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

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

    .btn-outline { margin-left: 0; margin-top: 10px; }
}

@media (max-width: 480px) {
    .fixed-header h1 { display: none; }

    .gallery-container { grid-template-columns: 1fr; }
    .gallery-item img { height: 240px; }
    .video-grid { grid-template-columns: 1fr; }

    .about-features { grid-template-columns: 1fr; }
    .footer-content { flex-direction: column; gap: 24px; padding: 36px 20px 24px; }
}
