/* ==============================
   FALCON SHOWCASE
============================== */

.falcon-showcase {
    position: relative;
    min-height: 680px;
    height: 100vh;
    max-height: 850px;
    background-position: center;
    background-size: cover;
    overflow: hidden;
    background-image:var(--cms-falcon-showcase-background, url('https://astrodynamicsus.com/falcon-heavy.png'));
    font-family: 'Rajdhani', sans-serif;
    isolation: isolate;
}

/* Stars */

.falcon-stars {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        radial-gradient(1px 1px at 20% 30%, #fff 99%, transparent),
        radial-gradient(1px 1px at 80% 20%, #6cbaff 99%, transparent),
        radial-gradient(2px 2px at 60% 70%, #fff 99%, transparent),
        radial-gradient(1px 1px at 40% 80%, #fff 99%, transparent);
    background-size: 180px 180px, 230px 230px,
                     270px 270px, 150px 150px;
    animation: starDrift 45s linear infinite;
}

@keyframes starDrift {
    from { transform: translateY(0); }
    to { transform: translateY(-180px); }
}

.falcon-glow {
    position: absolute;
    width: 550px;
    height: 350px;
    right: 5%;
    bottom: -150px;
    background: #007bff;
    filter: blur(150px);
    opacity: .3;
    z-index: -1;
}

/* Rocket */

.falcon-visual {
    position: absolute;
    width: 67%;
    height: 100%;
    right: -5%;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.falcon-rocket {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 0 35px rgba(30, 133, 255, .3));
    animation: rocketFloat 6s ease-in-out infinite;
}

@keyframes rocketFloat {
    0%, 100% {
        transform: translateY(0) rotate(-3deg);
    }
    50% {
        transform: translateY(-18px) rotate(-1deg);
    }
}

/* Content */

.falcon-content {
    position: absolute;
    top: 23%;
    left: 5%;
    width: 43%;
    z-index: 3;
}

.falcon-tabs {
    display: flex;
    gap: 30px;
    margin-bottom: 35px;
}

.falcon-tabs button {
    border: 0;
    background: none;
    color: #78879e;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 0;
    transition: .3s;
}

.falcon-tabs button:hover,
.falcon-tabs button.active {
    color: #fff;
}

.falcon-subtitle {
    font-size: clamp(14px, 1.4vw, 20px);
    letter-spacing: 1px;
    margin-bottom: 5px;
    color:#ddd;
}

.falcon-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(55px, 7vw, 100px);
    font-weight: 900;
    line-height: .88;
    letter-spacing: -4px;
    margin: 15px 0 25px;
    text-transform: uppercase;
    color:white;
}

.falcon-title span {
    font-size: 1.25em;
}

.falcon-description {
    max-width: 510px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    line-height: 1.8;
    color: #fff;
}

.second-description {
    margin-top: 15px;
}

/* Read More */

/* =====================================
   PREMIUM NEON READ MORE BUTTON
===================================== */

.falcon-readmore {
    position: absolute;
    right: 7%;
    bottom: 19%;
    z-index: 10;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;

    padding: 13px 23px;

    color: #ffffff;
    background: rgba(5, 25, 48, .75);

    border: 1px solid rgba(56, 200, 255, .65);
    border-radius: 3px;

    font-family: 'Barlow Condensed', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;

    cursor: pointer;
    overflow: hidden;

    box-shadow:
        0 0 12px rgba(56, 200, 255, .12),
        inset 0 0 12px rgba(56, 200, 255, .05);

    transition:
        color .35s ease,
        background .35s ease,
        border-color .35s ease,
        box-shadow .35s ease,
        transform .35s ease;

    animation: falconButtonPulse 2.8s ease-in-out infinite;
}

/* Moving light sweep */

.falcon-readmore::before {
    content: "";
    position: absolute;
    top: 0;
    left: -130%;

    width: 65%;
    height: 100%;

    background: linear-gradient(
        110deg,
        transparent,
        rgba(255,255,255,.08),
        rgba(56,200,255,.55),
        rgba(255,255,255,.15),
        transparent
    );

    transform: skewX(-20deg);
    animation: falconButtonSweep 3.5s ease-in-out infinite;

    pointer-events: none;
}

/* Arrow */

.falcon-readmore i {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 29px;
    height: 29px;

    border: 1px solid rgba(56,200,255,.7);
    border-radius: 50%;

    color: #38c8ff;
    font-size: 12px;

    transition: all .35s ease;
}

/* Hover */

.falcon-readmore:hover {
    color: #00101e;
    background: #38c8ff;
    border-color: #38c8ff;

    transform: translateY(-5px);

    box-shadow:
        0 0 15px rgba(56,200,255,.6),
        0 0 35px rgba(56,200,255,.35);
}

.falcon-readmore:hover i {
    color: #00101e;
    border-color: #00101e;
    transform: translateX(6px);
}

.falcon-readmore:hover::before {
    animation: none;
}

/* Gentle neon pulse */

@keyframes falconButtonPulse {
    0%, 100% {
        box-shadow:
            0 0 8px rgba(56,200,255,.12),
            inset 0 0 10px rgba(56,200,255,.04);
    }

    50% {
        box-shadow:
            0 0 16px rgba(56,200,255,.3),
            0 0 28px rgba(56,200,255,.12),
            inset 0 0 12px rgba(56,200,255,.08);
    }
}

/* Light sweep animation */

@keyframes falconButtonSweep {
    0%, 15% {
        left: -130%;
    }

    65%, 100% {
        left: 150%;
    }
}

/* Mobile */

@media(max-width: 768px) {
    .falcon-readmore {
        right: 7%;
        bottom: 125px;
        padding: 10px 15px;
        font-size: 13px;
        gap: 10px;
    }

    .falcon-readmore i {
        width: 25px;
        height: 25px;
    }
}

/* Accessibility */

@media(prefers-reduced-motion: reduce) {
    .falcon-readmore,
    .falcon-readmore::before {
        animation: none !important;
    }
}

/* Navigation */

.falcon-navigation {
    position: absolute;
    right: 3%;
    top: 33%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 5;
}

.falcon-navigation button {
    width: 40px;
    height: 40px;
    border: 2px solid white;
    background: transparent;
    border-radius: 50%;
    color: white;
    transition: .3s;
}

.falcon-navigation button:hover {
    background: white;
    color: #00152c;
}

/* Statistics */

.falcon-stats {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    min-height: 105px;
    border-top: 1px solid rgba(255,255,255,.55);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(transparent, rgba(0,15,35,.55));
    z-index: 4;
}

.falcon-stat {
    min-width: 155px;
    text-align: center;
    padding: 0 35px;
    border-right: 1px solid rgba(255,255,255,.5);
}

.falcon-stat:last-child {
    border: 0;
}

.falcon-stat h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 35px;
    font-weight: 900;
    margin: 0;
}

.falcon-stat span {
    font-size: 12px;
    letter-spacing: .5px;
}

/* Modal */

.falcon-modal {
    background: #06172c;
    color: white;
    border: 1px solid rgba(80,160,255,.3);
    border-radius: 4px;
}

.falcon-modal .modal-body {
    padding: 35px;
}

.falcon-modal h2 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 800;
}

.falcon-modal h3 {
    font-family: 'Orbitron', sans-serif;
    color: #48aaff;
    font-size: 25px;
}

/* Mobile */

@media (max-width: 768px) {

    .falcon-showcase {
        height: auto;
        min-height: 850px;
        max-height: none;
    }

    .falcon-visual {
        top: 0;
        right: -12%;
        width: 100%;
        height: 440px;
        opacity: .85;
    }

    .falcon-content {
        top: 340px;
        left: 7%;
        width: 86%;
    }

    .falcon-tabs {
        gap: 18px;
        margin-bottom: 20px;
    }

    .falcon-tabs button {
        font-size: 10px;
    }

    .falcon-title {
        font-size: clamp(48px, 13vw, 75px);
        letter-spacing: -2px;
        margin: 10px 0 15px;
    }

    .falcon-subtitle {
        font-size: 13px;
    }

    .falcon-description {
        font-size: 12px;
        line-height: 1.6;
    }

    .second-description {
        display: none;
    }

    .falcon-navigation {
        top: 30px;
        right: 6%;
    }

    .falcon-navigation button {
        width: 35px;
        height: 35px;
    }

    .falcon-readmore {
        right: 7%;
        bottom: 125px;
        font-size: 11px;
    }

    .falcon-stats {
        min-height: 90px;
    }

    .falcon-stat {
        min-width: 0;
        flex: 1;
        padding: 0 5px;
    }

    .falcon-stat h2 {
        font-size: 23px;
    }

    .falcon-stat span {
        font-size: 8px;
    }
}

@media (max-width: 380px) {
    .falcon-showcase {
        min-height: 820px;
    }

    .falcon-content {
        top: 320px;
    }

    .falcon-visual {
        height: 400px;
    }

    .falcon-tabs {
        gap: 12px;
    }
}
/* ==================================
   FULLSCREEN TECHNICAL OVERVIEW
================================== */

.falcon-details-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;

    display: flex;
    justify-content: center;
    align-items: center;

    background: rgba(0, 5, 15, 0.97);
    backdrop-filter: blur(12px);

    opacity: 0;
    visibility: hidden;

    transition: opacity .45s ease,
                visibility .45s ease;
}

.falcon-details-overlay.active {
    opacity: 1;
    visibility: visible;
}

.falcon-details-image-wrapper {
    width: 100%;
    height: 100%;
    overflow-y: auto;

    display: flex;
    justify-content: center;
    align-items: flex-start;

    padding: 25px 70px;
}

.falcon-details-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: none;
    object-fit: contain;

    transform: scale(.94);
    opacity: 0;

    transition: transform .55s ease,
                opacity .55s ease;
}

.falcon-details-overlay.active .falcon-details-image {
    transform: scale(1);
    opacity: 1;
}

/* Close button */

.falcon-details-close {
    position: fixed;
    top: 22px;
    right: 28px;

    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255,255,255,.5);
    border-radius: 50%;

    background: rgba(0, 20, 45, .8);
    color: #fff;

    font-size: 34px;
    line-height: 1;

    cursor: pointer;
    z-index: 1000000;

    transition: .3s;
}

.falcon-details-close:hover {
    background: #00aeef;
    border-color: #00aeef;
    color: #00101f;
    transform: rotate(90deg);
}

/* Mobile responsive */

@media(max-width: 768px) {

    .falcon-details-image-wrapper {
        padding: 65px 10px 20px;
        align-items: flex-start;
    }

    .falcon-details-image {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .falcon-details-close {
        width: 42px;
        height: 42px;
        top: 12px;
        right: 15px;
        font-size: 30px;
    }
}

/* ==========================================
   FALCON SHOWCASE - MOBILE HEIGHT OPTIMIZATION
========================================== */

@media (max-width: 768px) {

    .falcon-showcase {
        min-height: 0 !important;
        height: auto !important;
        max-height: none !important;

        /* Remove unwanted top spacing */
        margin-top: 0 !important;
        padding-top: 25px !important;
        padding-bottom: 30px !important;

        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .falcon-content {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .falcon-title {
        margin-top: 8px !important;
        margin-bottom: 15px !important;
        font-size: clamp(42px, 11vw, 65px) !important;
        line-height: .9 !important;
    }

    .falcon-subtitle {
        margin-top: 8px !important;
        margin-bottom: 10px !important;
        font-size: 10px !important;
    }

    .falcon-description {
        margin-bottom: 12px !important;
        font-size: 13px !important;
        line-height: 1.5 !important;
    }

    .falcon-tabs {
        margin-bottom: 15px !important;
    }

    .falcon-readmore {
        margin-top: 15px !important;
    }

    .falcon-stats {
        margin-top: 25px !important;
    }
}

/* Smaller mobile devices */
@media (max-width: 480px) {

    .falcon-showcase {
        padding: 18px 18px 24px !important;
        min-height: 0 !important;
    }

    .falcon-content {
        width: 100%;
    }

    .falcon-title {
        font-size: 43px !important;
        margin: 5px 0 12px !important;
    }

    .falcon-description {
        font-size: 12px !important;
        line-height: 1.45 !important;
    }

    .falcon-stats {
        margin-top: 18px !important;
    }
}

