/* ========================================
   CSS Reset & Base Styles
   ======================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --background: #000000;
    --foreground: #171717;
    --brand-primary: #0f172a;
    --brand-accent: #3596D2;
    --brand-purple: #bf00ff;
    --brand-background: #000000;
}

html,
body {
    background: var(--background);
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    max-width: 100vw;
    min-height: 100vh;
    overflow-x: hidden;
}

body.intro-active {
    height: 100vh;
    overflow: hidden;
}

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

/* Hide video controls */
video::-webkit-media-controls {
    display: none !important;
}

video::-webkit-media-controls-enclosure {
    display: none !important;
}

video::-webkit-media-controls-panel {
    display: none !important;
}

video {
    pointer-events: auto;
}

video::-webkit-media-controls-play-button {
    display: none !important;
}

video::-webkit-media-controls-start-playback-button {
    display: none !important;
}

/* ========================================
   Intro Splash Screen
   ======================================== */
.intro-splash {
    align-items: center;
    background: #000;
    display: flex;
    height: 100vh;
    justify-content: center;
    left: 0;
    position: fixed;
    top: 0;
    transition: opacity 0.8s ease-out;
    width: 100vw;
    z-index: 9999;
}

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

.intro-video {
    height: 100%;
    left: 0;
    object-fit: cover;
    position: absolute;
    top: 0;
    transition: opacity 0.8s ease-out;
    width: 100%;
    z-index: 1;
}

.intro-video.fade-out {
    opacity: 0;
}

.intro-video-vertical {
    display: none;
}

.intro-logo-container {
    cursor: default;
    opacity: 0;
    padding: 0rem;
    pointer-events: none;
    position: relative;
    text-align: center;
    transform: scale(0.9);
    transition: opacity 0.6s ease-in, transform 0.6s ease-in;
    z-index: 2;
}

.intro-logo-container.visible {
    cursor: pointer;
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.intro-logo-container.visible:hover {
    transform: scale(1.05);
}

.intro-logo {
    filter: drop-shadow(0px 0px 10px rgba(255, 255, 255, 0.5));
    margin-bottom: 1rem;
    max-width: 300px;
    width: 300px;
}

.intro-logo-container .intro-trademark {
    color: #ccc;
    font-size: 1.5rem;
    pointer-events: none;
    position: absolute;
    right: .75rem;
    top: 3.3rem;
    user-select: none;
}

.intro-cta {
    animation: pulse 2s ease-in-out infinite;
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.15em;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.main-content {
    opacity: 0;
    transition: opacity 0.8s ease-in;
}

.main-content.visible {
    opacity: 1;
}

/* ========================================
   Header
   ======================================== */
.header {
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.8);
    left: 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 51;
}

.header-content {
    align-items: baseline;
    display: flex;
    gap: 0.5rem;
    justify-content: space-between;
    padding-bottom: 1rem;
    padding-left: 2vw;
    padding-right: 2vw;
    padding-top: 1rem;
}

.logo-link {
    cursor: pointer;
    display: inline-block;
    position: relative;
}

.logo-link img {
    width: 160px;
}

.logo-trademark {
    color: #ccc;
    font-size: 1.5rem;
    letter-spacing: 0.05em;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 26px;
    user-select: none;
}

.connect-btn {
    align-items: center;
    background: transparent;
    border: none;
    border-radius: 0.25rem;
    bottom: 0.5rem;
    color: white;
    cursor: pointer;
    display: flex;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    gap: 0.9rem;
    letter-spacing: 0.1em;
    padding: 0.5rem 1.5rem 1rem 0.75rem;
    text-transform: uppercase;
    z-index: 30;
}

.connect-btn span {
    transition: transform 0.25s ease;
}

.connect-btn:hover span,
.connect-btn:focus span {
    transform: scale(1.05);
}

/* ========================================
   Video Carousel Section
   ======================================== */
.video-carousel-section {
    background: var(--brand-background);
    padding-bottom: 9rem;
    padding-top: 180px;
    text-align: center;
}

.carousel-wrapper {
    margin: 0 auto;
    max-width: 1280px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    position: relative;
    z-index: 20;
}

.carousel-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.videoSwiper {
    aspect-ratio: 16 / 9;
    background: transparent;
    border-radius: 0.75rem;
    margin: 0 auto;
    max-width: 100%;
    position: relative;
    width: 100%;
}

.swiper-slide {
    align-items: center;
    display: flex;
    justify-content: center;
}

.swiper-slide video {
    border-radius: 0.75rem;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.swiper-button-next,
.swiper-button-prev {
    color: #ffffff;
}

.swiper-pagination-bullet {
    background: #ffffff;
}

.swiper-pagination-bullet-active {
    background: var(--brand-accent);
}

.swiper-button-prev,
.swiper-button-next {
    height: 44px;
    text-shadow: 0px 1px 10px #000;
    width: 44px;
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 2rem;
    font-weight: 700;
}

.swiper-button-prev {
    left: 40px;
}

.swiper-button-next {
    right: 40px;
}


/* ========================================
   About Section
   ======================================== */
.about-section {
    background: black;
    margin-bottom: 7rem;
    text-align: center;
}

.about-content {
    margin-bottom: 1.5rem;
}

.about-title {
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 24px #ccc;
}

.about-title:first-child {
    margin-bottom: 2rem;
}

.trademark {
    font-size: 0.875rem;
}

/* ========================================
   Showcase Section
   ======================================== */
.showcase-section {
    background: black;
    padding-bottom: 4rem;
    padding-top: 4rem;
    position: relative;
}

.showcase-grid {
    align-items: center;
    display: grid;
    gap: 60px;
    grid-template-columns: repeat(3, 1fr);
    margin: 0 auto;
    max-width: 75rem;
    padding: 0 1rem;
    position: relative;
    z-index: 0;
}

.showcase-column {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.showcase-item {
    border-radius: 0.5rem;
    cursor: pointer;
    position: relative;
    transition: opacity 0.3s;
}

.showcase-item::after {
    background-image: url('images/play-button.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: 60px;
    content: '';
    height: 100%;
    left: 0;
    opacity: 0.25;
    pointer-events: none;
    position: absolute;
    top: 0;
    transition: opacity 0.3s;
    width: 100%;
}

.showcase-item:hover {
    opacity: 0.8;
}

.showcase-item:hover::after {
    opacity: 0.4;
}

.showcase-item img {
    border-radius: 0.5rem;
}

.showcase-square {
    aspect-ratio: 1;
    background: black;
    border-radius: 0.5rem;
    cursor: pointer;
    max-width: 408px;
    overflow: hidden;
    position: relative;
    transition: opacity 0.3s;
    width: 100%;
}

.showcase-square::after {
    background-image: url('images/play-button.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: 60px;
    content: '';
    height: 100%;
    left: 0;
    opacity: 0.25;
    pointer-events: none;
    position: absolute;
    top: 0;
    transition: opacity 0.3s;
    width: 100%;
}

.showcase-square.vertical-video {
    width: inherit;
}

.showcase-square:hover {
    opacity: 0.8;
}

.showcase-square:hover::after {
    opacity: 0.4;
}

.showcase-square img {
    border-radius: 0.5rem;
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.showcase-vertical img {
    max-height: 480px;
    max-width: 360px;
    width: 100%;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: black;
    padding-bottom: 4rem;
    padding-top: 1.5rem;
    text-align: center;
}

.footer p {
    color: white;
    font-size: 1.125rem;
    font-weight: 400;
}

/* ========================================
   Modal Styles
   ======================================== */
.modal {
    align-items: center;
    display: none;
    inset: 0;
    justify-content: center;
    position: fixed;
    z-index: 50;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    background: rgba(0, 0, 0, 0.8);
    inset: 0;
    position: absolute;
}

.modal-content {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 56rem;
    position: relative;
    top: 40px;
    width: 100%;
}

.modal-close {
    background: transparent;
    border: none;
    color: black;
    cursor: pointer;
    font-size: 1.75rem;
    position: absolute;
    right: .5rem;
    top: .25rem;
    z-index: 10;
}

.modal-close:hover {
    opacity: 0.7;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr;
}

.modal-video {
    align-items: center;
    background: black;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 400px;
    padding: 1rem;
}

.modal-video video {
    border-radius: 0.5rem;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.modal-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 400px;
    padding: 1.5rem;
    position: relative;
}

#contactForm {
    transition: opacity 0.5s ease-out;
}

.modal-form h2 {
    color: black;
    font-family: Orbitron, sans-serif;
    font-size: 22px;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.modal-form p {
    color: #374151;
    display: block;
    font-family: Orbitron, sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    line-height: 1.5rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 0.8rem;
}

.form-group label {
    color: #374151;
    display: block;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5rem;
    margin-bottom: 0.25rem;
}

.form-group input,
.form-group textarea {
    background-color: rgb(17 24 39 / 1);
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    color: #fff;
    font-size: 1rem;
    padding: 0.75rem 0.75rem;
    width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
    outline: none;
}

.submit-btn {
    background: var(--brand-accent);
    border: none;
    border-radius: 0.375rem;
    color: #000;
    cursor: pointer;
    font-family: Orbitron, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 0.75rem 1.5rem;
    text-transform: uppercase;
    transition: background 0.2s;
    width: 100%;
}

.submit-btn:hover {
    background: #0ea5e9;
}

/* Showcase Modal */
.showcase-modal-content {
    background: black;
    box-shadow: 0px 0px 20px rgba(255, 255, 255, .2);
    /* max-width: 65rem; */
    max-width: 914px;
    padding: 23px;
    position: relative;
    width: 100%;
}

/* Vertical video styling */
.showcase-modal-content.vertical-video {
    align-items: center;
    display: flex;
    justify-content: center;
    max-width: 36rem;
}

.showcase-modal-content.vertical-video video {
    height: 80vh;
    max-height: 800px;
    object-fit: contain;
    width: auto;
}

.showcase-modal-content .modal-close {
    color: white;
    height: 40px;
    position: absolute;
    right: 2.25rem;
    top: 2rem;
    width: 40px;
    z-index: 1;
}

.showcase-modal-content .modal-close:hover {
    opacity: 1;
}

.showcase-modal-content .modal-close:hover:before {
    background: rgba(0, 0, 0, 1);
}

.showcase-modal-content .modal-close::before {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    content: '';
    filter: blur(15px);
    height: 30px;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: background 0.3s ease;
    width: 30px;
    z-index: -1;
}

.showcase-modal-content video {
    border-radius: 0.5rem;
    width: 100%;
}

/* Success Message in Modal */
.form-success-message {
    background-color: #3596d2;
    border-radius: 0.5rem;
    color: white;
    display: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.95rem;
    left: 50%;
    letter-spacing: 0.05em;
    max-width: 400px;
    opacity: 0;
    padding: 1rem;
    position: absolute;
    text-align: center;
    top: 50%;
    transform: translateY(-10px);
    transform: translate(-50%, -50%) translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    width: calc(100% - 3rem);
    z-index: 10;
}

.form-success-message.show {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
}

.form-success-message p {
    color: white;
    margin: 0;
}

/* ========================================
   Responsive Design
   ======================================== */

/* --- min-width: 769px (desktop only) --- */
@media (min-width: 769px) {
    .modal-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- min-width: 768px (desktop carousel) --- */
@media (min-width: 768px) {
    .videoSwiper {
        max-width: 1056px;
        width: 1056px;
    }
}

/* --- max-width: 768px (tablet and below) --- */
@media (max-width: 768px) {

    .intro-video-horizontal {
        display: none;
    }

    .intro-video-vertical {
        display: block;
    }

    .intro-cta {
        font-size: 1.2rem;
    }

    video:fullscreen,
    video:-webkit-full-screen {
        background: black !important;
        border-radius: 0 !important;
        bottom: 0 !important;
        box-shadow: none !important;
        display: block !important;
        height: 90vh !important;
        left: 0 !important;
        margin: 0 !important;
        max-height: 90vh !important;
        max-width: 90vw !important;
        object-fit: contain !important;
        right: 0 !important;
        top: 0 !important;
        width: 90vw !important;
    }

    .connect-btn {
        font-size: 1.25rem;
        padding: 0.375rem 0.5rem;
    }

    .video-carousel-section {
        padding-top: 200px;
    }

    .swiper-button-prev {
        left: 10px;
    }

    .swiper-button-next {
        right: 10px;
    }

    .about-title {
        font-size: 1.25rem;
        padding: 0 1rem;
    }

    .showcase-grid {
        grid-template-columns: 1fr;
    }

    .showcase-square,
    .showcase-square.vertical-video {
        aspect-ratio: 1;
        height: auto;
        max-width: 393px;
        width: 100%;
    }

    .modal-content {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }

    #showcaseModal {
        align-items: flex-start;
        padding-top: 200px;
    }

    .showcase-modal-content {
        aspect-ratio: 16 / 9;
        margin: 0 auto;
        max-width: 1056px;
        padding: 0;
        width: calc(100% - 3rem);
    }

    .showcase-modal-content.vertical-video {
        aspect-ratio: 16 / 9;
        margin: 0 auto;
        max-width: 1056px;
        width: calc(100% - 3rem);
    }

    .showcase-modal-content video {
        border-radius: 0.75rem;
        height: 100%;
        object-fit: cover;
        width: 100%;
    }

    .showcase-modal-content.vertical-video video {
        height: 100%;
        object-fit: cover;
        width: 100%;
    }

    .showcase-modal-content .modal-close {
        right: 0.5rem;
        top: 0.5rem;
    }

    .modal-form {
        justify-content: flex-start;
        min-height: auto;
    }

    #contactForm.hidden {
        display: none;
    }

    .form-success-message.show {
        left: 0;
        max-width: inherit;
        position: relative;
        right: 0;
        top: inherit;
        transform: none;
        width: 100%;
    }

    #contactModal.active {
        align-items: flex-start;
        overflow-y: auto;
        padding: 4rem 0;
    }

    #contactModal .modal-overlay {
        position: fixed;
    }

}

/* --- max-width: 480px (vertical video / mobile intro) --- */
@media (max-width: 480px) {
    .videoSwiper {
        aspect-ratio: 9 / 16;
    }

    .showcase-modal-content,
    .showcase-modal-content.vertical-video {
        aspect-ratio: 9 / 16;
    }

    .intro-logo {
        max-width: 260px;
        width: 260px;
    }

    .intro-cta {
        font-size: 1.15rem;
    }

    .intro-logo-container {
        top: -40px;
    }
}

/* --- max-width: 425px (small mobile) --- */
@media (max-width: 425px) {

    .intro-video {
        top: -40px;
        transform: scale(1.1);
    }

    .intro-logo-container .intro-trademark {
        top: 2.8rem;
    }

    .logo-link img {
        width: 150px;
    }

    .logo-trademark {
        right: -2px;
        top: 24px;
    }

    .connect-btn {
        font-size: 1.1rem;
        gap: 0.4rem;
        padding: 0.375rem 1rem .75rem 0;
    }

    .connect-btn img {
        transform: scale(.8);
    }

    .video-carousel-section {
        padding-bottom: 5rem;
        padding-top: 135px;
    }

    #showcaseModal {
        padding-top: 135px;
    }

    .about-section {
        margin-bottom: 0rem;
    }

    .modal-form {
        padding: 1rem;
    }

    .modal-form .modal-close {
        font-size: 2rem;
        right: 1rem;
    }

    .modal-form p span {
        display: block;
    }

    .swiper-button-prev,
    .swiper-button-next {
        width: 24px;
    }

    .swiper-button-prev::after,
    .swiper-button-next::after {
        font-size: 1.25rem;
    }

    .swiper-button-prev {
        left: 5px;
    }

    .swiper-button-next {
        right: 5px;
    }

    .trademark {
        font-size: 1rem;
        vertical-align: text-top;
    }

    .showcase-section {
        padding-top: 3.25rem;
    }

    .showcase-column {
        gap: 50px;
    }

    .showcase-vertical img {
        max-height: 450px;
    }
}