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

/* ProofFont - Custom font with infinity symbol for 'oo' */
@font-face {
    font-family: "ProofFont";
    src: url("fonts/ProofFont.woff2") format("woff2"),
         url("fonts/ProofFont.woff") format("woff"),
         url("fonts/ProofFont.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.jost-animation {
  font-family: "ProofFont", "Jost", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

body {
    background: radial-gradient(
        circle at 40% 50%,
        hsl(270, 15%, 12%) 0%,
        hsl(270, 10%, 5%) 100%
    );
    font-family: 'Jost', sans-serif;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.animation-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-display {
    position: absolute;
    font-size: 5rem;
    font-weight: 400;
    letter-spacing: normal;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    left: 50%;
    transform: translateX(-50%);
    max-width: 1200px;
    text-align: center;
    line-height: 1.2;
}

.prefix-text {
    background: linear-gradient(90deg, 
    #89216B 0%, 
    #89216B 20%, 
    #89216B 30%, 
    #D15ABB 70%, 
    #89216B 95%, 
    #89216B 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
    display: inline;
    vertical-align: baseline;
}

/* White text for "we are" - separate element */
.we-are-text {
    color: white;
    font-size: inherit;
    font-weight: inherit;
    font-family: inherit;
    letter-spacing: normal;
    display: inline;
    word-spacing: -0.15em;
}

/* White text for custom ending (e.g., "+geist") */
.custom-ending-text {
    color: white;
    font-size: inherit;
    font-weight: inherit;
    font-family: inherit;
    letter-spacing: normal;
    display: inline;
}

/* Gradient text for "proof" - separate from prefix styling */
.gradient-text {
    background: linear-gradient(90deg, 
    #89216B 0%, 
    #89216B 20%, 
    #89216B 30%, 
    #D15ABB 70%, 
    #89216B 95%, 
    #89216B 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
}

.suffix-text {
    background: linear-gradient(90deg, 
        #D15ABB 0%, 
        #D15ABB 20%, 
        #D15ABB 50%, 
        #89216B 75%, 
        #89216B 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
    opacity: 1;
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: inline-block;
    white-space: nowrap;
    vertical-align: baseline;
    /* Safari-specific fixes */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    /* Fallback color for Safari */
    color: #D15ABB;
}


/* Animation states */
.suffix-text.fade-out {
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.suffix-text.fade-in {
    opacity: 1;
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.prefix-text.fade-out {
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.prefix-text.fade-in {
    opacity: 1;
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Gradient animation for logo */
@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Bottom controls container */
.bottom-controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 24px;
    z-index: 1000;
    transform: translateX(0px); /* No shift - keep controls at right edge */
}


/* Keyboard shortcuts legend */
.keyboard-shortcuts {
    display: flex;
    flex-direction: row;
    gap: 12px;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.keyboard-shortcuts:hover {
    opacity: 0.8;
}

.shortcut-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Jost', sans-serif;
    font-weight: 300;
}

.shortcut-item kbd {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 3px 8px;
    font-family: 'Jost', monospace;
    font-size: 10px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    text-transform: lowercase;
    min-width: 45px;
    text-align: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.shortcut-item span {
    color: rgba(255, 255, 255, 0.4);
    font-size: 11px;
}

/* Version number */
.version-number {
    font-family: 'Jost', monospace;
    font-size: 9px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.25);
    pointer-events: none;
    user-select: none;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.version-number:hover {
    opacity: 0.8;
}

/* Responsive design */
@media (max-width: 768px) {
    .text-display {
        font-size: 3rem;
    }
    
    .bottom-controls {
        bottom: 16px;
        right: 16px;
        gap: 20px;
        transform: translateX(0px);
    }
    
    
    .keyboard-shortcuts {
        gap: 8px;
    }
    
    .shortcut-item {
        font-size: 10px;
    }
    
    .shortcut-item kbd {
        padding: 2px 6px;
        font-size: 9px;
        min-width: 40px;
    }
    
    .shortcut-item span {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .text-display {
        font-size: 2.5rem;
    }
    
    .bottom-controls {
        bottom: 12px;
        right: 12px;
        gap: 16px;
        transform: translateX(10px);
    }
    
    
    .keyboard-shortcuts {
        gap: 6px;
        opacity: 0.25;
    }
    
    .shortcut-item {
        font-size: 9px;
        gap: 6px;
    }
    
    .shortcut-item kbd {
        padding: 2px 5px;
        font-size: 8px;
        min-width: 35px;
    }
    
    .shortcut-item span {
        font-size: 9px;
    }
    
    .version-number {
        font-size: 8px;
        opacity: 0.25;
    }
}
