/* ============================================
   Muhandislik Missiyasi Page
   Ginnes Jahon Rekordi — 1946 Robot
   ============================================ */

.missiya-page {
    --comp-primary: #FFD700;
    --comp-secondary: #FF8C00;
    --comp-accent: #FFA500;
    --comp-success: #22c55e;
    --comp-dark: #78350f;

    --comp-gradient: linear-gradient(135deg, #FFD700, #FF8C00);
    --comp-gradient-gold: linear-gradient(135deg, #FFD700, #FFA500, #FF8C00);
}

/* ============ Hero ============ */
.missiya-hero {
    min-height: auto;
    padding: max(90px, 12vh) 0 60px;
}

.missiya-hero .container {
    align-items: center;
}

.missiya-hero .hero-content {
    text-align: left;
    align-items: flex-start;
}

.hero-record-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 140, 0, 0.06));
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 30px;
    margin-bottom: 20px;
    font-family: 'Orbitron', monospace;
    font-size: 0.7rem;
    letter-spacing: 2px;
    animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 15px rgba(255, 215, 0, 0.08); }
    50% { box-shadow: 0 0 30px rgba(255, 215, 0, 0.18); }
}

.missiya-hero .hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 12px;
    line-height: 1.2;
}

.missiya-hero .hero-title .title-accent {
    margin: 0 0 4px;
    padding: 0;
}

.missiya-hero .hero-title .title-main {
    margin: 0;
    padding: 0;
}

.record-number-inline {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    background: var(--comp-gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.missiya-hero .hero-subtitle {
    max-width: 480px;
    margin: 0 0 28px;
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-secondary);
}

.hero-mini-stats {
    display: flex;
    gap: 0;
}

.hero-mini-stat {
    text-align: center;
    padding: 12px 24px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-mini-stat:first-child {
    padding-left: 0;
}

.hero-mini-stat:last-child {
    border-right: none;
}

.hero-mini-stat .mini-val {
    display: block;
    font-family: 'Orbitron', monospace;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--comp-primary);
    margin-bottom: 2px;
}

.hero-mini-stat .mini-label {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hero SVG visual */
.missiya-hero-svg {
    width: 100%;
    max-width: 560px;
    height: auto;
    filter: drop-shadow(0 0 40px rgba(255, 215, 0, 0.08));
}

.missiya-hero .hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ============ Story ============ */
.missiya-story {
    padding: 80px 0;
}

/* Story intro: images + lead */
.story-intro {
    margin-bottom: 64px;
}

.story-intro-images {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 12px;
    margin-bottom: 32px;
    border-radius: 16px;
    overflow: hidden;
}

.intro-img {
    overflow: hidden;
    position: relative;
}

.intro-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.intro-img:hover img {
    transform: scale(1.04);
}

.intro-img--main {
    height: 320px;
    border-radius: 16px 0 0 16px;
}

.intro-img--side {
    height: 320px;
    border-radius: 0 16px 16px 0;
}

.intro-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.4));
    pointer-events: none;
}

.story-lead {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    padding: 0 20px;
}

.story-lead::before {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--comp-gradient-gold);
    border-radius: 2px;
    margin: 0 auto 20px;
}

/* Timeline */
.story-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, transparent, rgba(255, 215, 0, 0.2) 10%, rgba(255, 215, 0, 0.15) 90%, transparent);
    transform: translateX(-50%);
}

/* Timeline block */
.timeline-block {
    position: relative;
    margin-bottom: 60px;
}

.timeline-block:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    top: 24px;
    transform: translateX(-50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-primary, #0a0e17);
    border: 2px solid rgba(255, 215, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.1);
}

.marker-num {
    font-family: 'Orbitron', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--comp-primary);
    letter-spacing: 1px;
}

.timeline-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.timeline-text {
    padding-right: 20px;
}

.timeline-block--reverse .timeline-text {
    order: 2;
    padding-right: 0;
    padding-left: 20px;
}

.timeline-block--reverse .timeline-media {
    order: 1;
}

.timeline-heading {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    position: relative;
    padding-bottom: 10px;
}

.timeline-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--comp-gradient-gold);
    border-radius: 1px;
}

.timeline-block--reverse .timeline-heading::after {
    left: auto;
    right: 0;
}

.timeline-block--reverse .timeline-text {
    text-align: right;
}

.timeline-text p {
    font-size: 0.9rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 0.8em;
}

.timeline-text p:last-child {
    margin-bottom: 0;
}

.timeline-media {
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    height: 240px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
}

.timeline-media:hover {
    border-color: rgba(255, 215, 0, 0.2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 215, 0, 0.06);
    transform: translateY(-4px);
}

.timeline-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.timeline-media:hover img {
    transform: scale(1.05);
}

/* Central quote */
.story-central-quote {
    text-align: center;
    padding: 48px 40px;
    margin: 20px auto 60px;
    max-width: 700px;
    position: relative;
}

.story-central-quote::before,
.story-central-quote::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3), transparent);
}

.story-central-quote::before { top: 0; }
.story-central-quote::after { bottom: 0; }

.central-quote-decor {
    color: var(--comp-primary);
    opacity: 0.2;
    margin-bottom: 16px;
}

.story-central-quote blockquote {
    font-size: 1.2rem;
    font-style: italic;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    border: none;
    background: var(--comp-gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Highlights */
.highlight-number {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--comp-primary);
    font-style: normal;
}

.highlight-text {
    color: var(--text-primary);
    font-weight: 600;
}

/* ============ Stats ============ */
.missiya-stats {
    padding: 100px 0;
}

.m-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.m-stat-card {
    text-align: center;
    padding: 40px 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.m-stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(255, 215, 0, 0.08), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.m-stat-card:hover {
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(255, 215, 0, 0.1);
}

.m-stat-card:hover::before {
    opacity: 1;
}

.m-stat-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 215, 0, 0.08);
    border-radius: 16px;
    position: relative;
    z-index: 1;
}

.m-stat-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--comp-primary);
}

.m-stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    background: var(--comp-gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.m-stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    z-index: 1;
}

/* ============ Gallery ============ */
.missiya-gallery {
    padding: 100px 0;
}

.gallery-masonry {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 16px;
}

.gallery-masonry .gallery-item:nth-child(1) {
    grid-column: 1 / 3;
    grid-row: span 2;
}

.gallery-masonry .gallery-item:nth-child(2) {
    grid-column: 3;
    grid-row: span 2;
}

.gallery-masonry .gallery-item:nth-child(5) {
    grid-column: 1 / 3;
}

.gallery-masonry .gallery-item:nth-child(9) {
    grid-column: 2 / 4;
    grid-row: span 2;
}

.gallery-masonry .gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
}

.gallery-masonry .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-masonry .gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-masonry .gallery-item:hover {
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.15);
}

.gallery-masonry .gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.6) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-masonry .gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-masonry .gallery-overlay i {
    font-size: 1.5rem;
    color: var(--comp-primary);
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 215, 0, 0.4);
}

/* ============ Video ============ */
.missiya-video {
    padding: 100px 0;
}

.video-wrapper {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.video-wrapper video {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    background: #000;
}

.video-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.video-play-overlay:hover {
    background: rgba(0, 0, 0, 0.2);
}

.video-play-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.play-btn-circle {
    width: 88px;
    height: 88px;
    background: var(--comp-gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 50px rgba(255, 215, 0, 0.35);
    transition: transform 0.3s ease;
}

.play-btn-circle:hover {
    transform: scale(1.12);
}

.play-btn-circle svg {
    width: 32px;
    height: 32px;
    fill: #0a0e17;
    margin-left: 4px;
}

/* ============ CTA ============ */
.missiya-cta {
    padding: 100px 0;
    text-align: center;
    position: relative;
}

.missiya-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.06), transparent 70%);
    pointer-events: none;
}

.missiya-cta h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 16px;
    background: var(--comp-gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.missiya-cta p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.cta-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.cta-btns .btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--comp-gradient-gold);
    color: #0a0e17;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.2);
}

.cta-btns .btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.35);
}

.cta-btns .btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: transparent;
    color: var(--comp-primary);
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-btns .btn-ghost:hover {
    border-color: var(--comp-primary);
    background: rgba(255, 215, 0, 0.05);
    transform: translateY(-3px);
}

.cta-tags {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-tags span {
    padding: 6px 18px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
    background: rgba(255, 215, 0, 0.1);
    color: var(--comp-primary);
    border: 1px solid rgba(255, 215, 0, 0.2);
    letter-spacing: 0.5px;
}

/* ============ Responsive ============ */
@media (max-width: 1200px) {
    .m-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-masonry {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 180px;
    }
    .gallery-masonry .gallery-item:nth-child(n) {
        grid-column: auto;
        grid-row: auto;
    }
    .gallery-masonry .gallery-item:nth-child(1) {
        grid-column: 1 / 3;
        grid-row: span 2;
    }
}

@media (max-width: 992px) {
    .gallery-masonry {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }
    .gallery-masonry .gallery-item:nth-child(1) {
        grid-column: 1 / 3;
        grid-row: span 1;
    }

    .timeline-content {
        gap: 40px;
    }

    .timeline-media {
        height: 200px;
    }

    .intro-img--main,
    .intro-img--side {
        height: 260px;
    }
}

@media (max-width: 768px) {
    .missiya-story,
    .missiya-stats,
    .missiya-gallery,
    .missiya-video,
    .missiya-cta {
        padding: 60px 0;
    }

    .m-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .m-stat-card {
        padding: 28px 16px;
    }

    .gallery-masonry {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 180px;
    }

    .gallery-masonry .gallery-item:nth-child(n) {
        grid-column: auto;
        grid-row: auto;
    }

    .hero-mini-stats {
        gap: 0;
    }

    .hero-mini-stat {
        padding: 10px 16px;
    }

    .hero-mini-stat .mini-val {
        font-size: 1rem;
    }

    /* Story intro */
    .story-intro-images {
        grid-template-columns: 1fr;
    }

    .intro-img--main,
    .intro-img--side {
        height: 200px;
        border-radius: 12px;
    }

    .story-lead {
        font-size: 0.95rem;
        text-align: left;
        padding: 0;
    }

    /* Timeline mobile: single column */
    .timeline-line {
        left: 20px;
    }

    .timeline-marker {
        left: 20px;
        top: 0;
        width: 38px;
        height: 38px;
    }

    .timeline-content {
        grid-template-columns: 1fr;
        gap: 16px;
        padding-left: 56px;
    }

    .timeline-text,
    .timeline-block--reverse .timeline-text {
        text-align: left;
        padding: 0;
        order: 1;
    }

    .timeline-media,
    .timeline-block--reverse .timeline-media {
        order: 2;
        height: 200px;
    }

    .timeline-heading::after,
    .timeline-block--reverse .timeline-heading::after {
        left: 0;
        right: auto;
    }

    .timeline-block {
        margin-bottom: 48px;
    }

    .story-central-quote {
        padding: 32px 20px;
        margin: 10px auto 48px;
    }

    .story-central-quote blockquote {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .m-stats-grid {
        grid-template-columns: 1fr;
    }

    .gallery-masonry {
        grid-template-columns: 1fr;
        grid-auto-rows: 220px;
    }

    .hero-mini-stats {
        flex-direction: column;
    }

    .hero-mini-stat {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        padding: 8px 0;
    }

    .hero-mini-stat:last-child {
        border-bottom: none;
    }

    .cta-btns {
        flex-direction: column;
        align-items: center;
    }
}
