:root {
    /* Randomizable variables */
    --primary-color: #38bdf8;
    --secondary-color: #8b5cf6;
    --accent-color: #f43f5e;
    --bg-color: #0f172a;
    --text-color: #f8fafc;

    --border-width: 4px;
    --card-shadow: 12px 12px 0px rgba(0, 0, 0, 0.4);
    --font-inter: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-inter);
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 10%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 15%);
    transition: background-color 0.5s ease;
}

/* Bizarre Animated Background */
.background-globes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.globe {
    position: absolute;
    width: 40vw;
    height: 40vw;
    border-radius: 41% 59% 70% 30% / 46% 34% 66% 54%;
    filter: blur(40px);
    opacity: 0.3;
    animation: blob-float 15s infinite alternate ease-in-out;
}

.globe-1 {
    background: var(--primary-color);
    top: -10%;
    left: -10%;
}

.globe-2 {
    background: var(--secondary-color);
    bottom: -10%;
    right: -10%;
    animation-delay: -7s;
}

@keyframes blob-float {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        border-radius: 41% 59% 70% 30% / 46% 34% 66% 54%;
    }

    100% {
        transform: translate(10%, 10%) rotate(90deg) scale(1.2);
        border-radius: 60% 40% 30% 70% / 50% 60% 40% 50%;
    }
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

/* Header */
.main-header {
    text-align: center;
    margin-bottom: 6rem;
}

h1 {
    font-size: 5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: var(--text-color);
    text-shadow:
        6px 6px 0px var(--primary-color),
        12px 12px 0px var(--secondary-color);
    transform: skew(-5deg) rotate(-2deg);
    display: inline-block;
}

.subtitle {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-color);
    margin-top: 1.5rem;
    opacity: 0.9;
    text-decoration: underline wavy var(--accent-color);
}

/* Search Input */
.search-container {
    position: relative;
    max-width: 600px;
    margin: 4rem auto 0;
    transform: rotate(1deg);
}

.search-icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--bg-color);
    z-index: 10;
}

#searchInput {
    width: 100%;
    padding: 1.5rem 1.5rem 1.5rem 4rem;
    background: #000;
    border: var(--border-width) solid #fff;
    border-radius: 0;
    font-size: 1.2rem;
    color: #fff;
    font-family: var(--font-inter);
    font-weight: 700;
    box-shadow: 8px 8px 0px var(--accent-color);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#searchInput:focus {
    outline: none;
    transform: translate(-4px, -4px);
    box-shadow: 12px 12px 0px var(--primary-color);
    border-color: var(--accent-color);
}

/* Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

/* Cards */
.simulation-card {
    background: #000;
    border: var(--border-width) solid #fff;
    border-radius: 0;
    overflow: hidden;
    position: relative;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 12px 12px 0px rgba(0, 0, 0, 0.6);
}

.simulation-card:hover {
    transform: translate(-8px, -8px);
    box-shadow: 20px 20px 0px var(--secondary-color);
    border-color: var(--primary-color);
}

.card-image-placeholder {
    height: 220px;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    border-bottom: var(--border-width) solid #fff;
    position: relative;
}

.card-image-placeholder::after {
    content: '';
    position: absolute;
    top: 5%;
    left: 5%;
    width: 90%;
    height: 90%;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.card-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    color: #fff;
}

.card-title {
    font-size: 1.75rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-transform: uppercase;
    line-height: 1;
    color: var(--primary-color);
}

.card-description {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 2rem;
    line-height: 1.4;
    flex-grow: 1;
}

.launch-btn {
    display: block;
    width: 100%;
    padding: 1.25rem;
    background: var(--accent-color);
    color: #000;
    text-decoration: none;
    font-weight: 900;
    text-transform: uppercase;
    text-align: center;
    border: var(--border-width) solid #000;
    transition: all 0.2s;
    box-shadow: 4px 4px 0px #fff;
}

.launch-btn:hover {
    background: #fff;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px var(--secondary-color);
}

/* Tags in "bizarre" style */
.tags {
    margin-bottom: 1.5rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.tag {
    background: #fff;
    color: #000;
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 900;
    text-transform: uppercase;
}

/* Footer */
.main-footer {
    text-align: center;
    padding: 4rem;
    color: var(--text-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* No Results */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 5rem;
    background: #000;
    border: var(--border-width) solid #fff;
    color: #fff;
    font-weight: 900;
    font-size: 1.5rem;
    box-shadow: 12px 12px 0px var(--secondary-color);
}

.hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }

    .container {
        padding: 3rem 1rem;
    }
}