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

body {
    font-family: 'Inter', sans-serif;
    background-color: #000000;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

#matrixCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.4;
    /* Slightly reduced opacity to make text pop */
    pointer-events: none;
}

.container {
    width: 100%;
    max-width: 1000px;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.glass-card {
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 5rem 4rem;
    border-radius: 24px;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.2),
        0 20px 50px rgba(0, 0, 0, 0.4),
        inset 0 0 60px rgba(0, 0, 0, 0.5);
    text-align: center;
    width: 100%;
    transform: translateZ(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 30px 60px rgba(0, 0, 0, 0.5),
        inset 0 0 60px rgba(0, 0, 0, 0.5);
}

.content {
    animation: fadeIn 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.title {
    font-family: 'Share Tech Mono', monospace;
    font-size: clamp(3.5rem, 8vw, 7rem);
    font-weight: 400;
    letter-spacing: -0.05em;
    margin-bottom: 1.5rem;
    line-height: 1;
    display: block;
    color: #fff;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: text-shadow 0.3s ease;
}

.title:hover {
    text-shadow: 0 0 50px rgba(255, 255, 255, 0.4);
}

.separator {
    height: 1px;
    width: 60px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    margin: 2rem auto;
}

.slogan {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 600;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    display: block;
}

/* Split Flap Character Styles */
.split-flap-char {
    display: inline-block;
    position: relative;
    margin: 0 1px;
    perspective: 1000px;
    perspective-origin: center center;
}

.split-flap-inner {
    display: inline-block;
    position: relative;
    width: 1ch;
    text-align: center;
    transform-style: preserve-3d;
    transform-origin: center center;
    font-family: 'Share Tech Mono', monospace;
    color: #ffffff;
}

.split-flap-char.flipping .split-flap-inner {
    animation: flip 0.08s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.split-flap-char.stopping .split-flap-inner {
    animation: flip 0.12s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-iteration-count: 1;
}

.split-flap-face {
    display: inline-block;
    width: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.split-flap-face.back {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotateX(180deg);
    opacity: 0;
}

.split-flap-shadow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.1s;
}

.split-flap-char.flipping .split-flap-shadow {
    opacity: 0.6;
}

@keyframes flip {
    0% {
        transform: rotateX(0deg);
    }

    50% {
        transform: rotateX(90deg);
    }

    100% {
        transform: rotateX(0deg);
    }
}

/* Text shadow for depth */
.split-flap-face {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile-first responsive adjustments */
@media (min-width: 768px) {
    .title {
        margin-bottom: 1.5rem;
    }

    .slogan {
        letter-spacing: 0.08em;
    }
}