/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Page background */
body {
    min-height: 100vh;
    background: #03274b;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Arial, sans-serif;
}

/* Hero container */

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 290px;
    background: rgba(0, 0, 0, 0.55);
    border-radius: 6px;
    z-index: 1;
}

/* Ensure content sits above overlay */
.hero > * {
    position: relative;
    z-index: 2;
}

/* Logo spacing */
.logo-wrapper {
    margin-bottom: 25px;
}

body.loaded .hero {
    opacity: 1;
}

/* Hero text block */
.hero-content {
    margin-bottom: 30px;
    max-width: 900px;
}

/* Force white text */
.hero-content h1,
.hero-content p,
.trust-signals,
.trust-signals li {
    color: #fdc501;
}

/* Headline styling */
.hero-content h1 {
    font-size: 1.9rem;
    font-weight: 500;
    margin-bottom: 8px;
}

/* Subtext */
.hero-content p {
    font-size: 0.95rem;
    margin-bottom: 14px;
    opacity: 0.9;
}

.trust-signals {
    list-style: none;
    padding: 0;
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 0.85rem;
}

.trust-signals li::before {
    content: "✓";
    margin-right: 6px;
    color: #ffffff;
}

/* Image links */
.image-links {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.hero-content {
    max-width: 670px;  /* equals left + right image width */
    margin: 0 auto;
}

/* Logo animation */
.main-logo {
    width: 320px;
    opacity: 0;
    transform: scale(0.4) rotate(0deg);
    border-radius: 6px;
    transform-origin: center;
}

/* Start animation only after preload */
body.loaded .main-logo {
    animation: logoSpinEnlarge 2.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 0.6s;
}

/* Spin + enlarge keyframes */
@keyframes logoSpinEnlarge {
    0% {
        opacity: 0;
        transform: scale(0.4) rotate(0deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(1080deg); /* 3 full spins – upright */
    }
}

/* Close gap between logo & images */
.logo-wrapper {
    margin-bottom: 20px;
}

/* Image row */
.image-links {
    display: flex;
    gap: 24px;
}

/* Image cards */
.image-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    border-radius: 28px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-card img {
    width: 240px;
    height: 150px;
    object-fit: cover;
    display: block;
}

/* Caption text */
.image-caption {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.85;
}

/* Hover effect */
.image-card:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
    opacity: 1;
}

/* Responsive */
@media (max-width: 600px) {
    .image-links {
        flex-direction: column;
        gap: 16px;
    }

    .main-logo {
        width: 260px;
    }
}

/* ==================================================
   Preloader – Circular Spinner
   ================================================== */

#preloader {
    position: fixed;
    inset: 0;
    background: #0F1215;
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

/* Fade out when page is loaded */
body.loaded #preloader {
    opacity: 0;
    visibility: hidden;
}

/* ================================
   Solid Cube Loader
   ================================ */

#loader {
    width: 48px;
    height: 48px;
    background-color: #fdc501; /* brand gold */
    animation: cubeSpin 1.5s linear infinite;
    transform-style: preserve-3d;
}

/* Cube rotation */
@keyframes cubeSpin {
    0% {
        transform: rotateX(0deg) rotateY(0deg);
    }
    50% {
        transform: rotateX(180deg) rotateY(0deg);
    }
    100% {
        transform: rotateX(180deg) rotateY(180deg);
    }
}

/* Disable preloader if JS is off or browser is old */
.no-js #preloader,
.oldie #preloader {
    display: none;
}