:root {
    --primary: #ff3333;
    --primary-dark: #cc0000;
    --primary-glow: rgba(255, 51, 51, 0.4);
    --bg-dark: #0f0f0f;
    --text-light: #ffffff;
    --font-main: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

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

.background-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    z-index: -1;
    filter: blur(50px);
    transition: transform 0.1s ease-out;
}

main {
    z-index: 1;
}

.title {
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 2rem;
    letter-spacing: -2px;
    background: linear-gradient(to bottom, #fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.instruction {
    margin-top: 2rem;
    font-size: 1.2rem;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* 3D Button Styles */
.fahh-btn {
    position: relative;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    outline: none;
    user-select: none;
    filter: drop-shadow(0 15px 45px rgba(255, 51, 51, 0.3));
}

.btn-bottom {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    /* Create a dark, shaded side for the button */
    background: linear-gradient(to right, #990000, #ff0000 50%, #990000);
    transform: translateY(12px);
    transition: transform 0.2s cubic-bezier(.3, .7, .4, 1);
    box-shadow: inset 0 -4px 10px rgba(0,0,0,0.5);
}

.btn-top {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ff4d4d, #ff0000);
    color: white;
    font-size: 3.5rem;
    font-weight: 900;
    transform: translateY(-16px);
    transition: transform 0.2s cubic-bezier(.3, .7, .4, 1);
    
    /* Strong outline and bevel effect */
    border: 4px solid #cc0000;
    box-shadow: 
        inset 0 4px 6px rgba(255, 255, 255, 0.4), /* Highlight */
        inset 0 -4px 10px rgba(0, 0, 0, 0.3),     /* Shadow */
        0 4px 8px rgba(0, 0, 0, 0.4);            /* Drop shadow onto the side */
}

.fahh-btn:hover .btn-top {
    transform: translateY(-20px);
    background: radial-gradient(circle at 30% 30%, #ff6666, #ff1a1a);
}

.fahh-btn:hover .btn-bottom {
    transform: translateY(14px);
}

.fahh-btn:active .btn-top {
    transform: translateY(4px);
    transition: transform 0.05s;
    background: radial-gradient(circle at 50% 50%, #ff1a1a, #cc0000);
}

.fahh-btn:active .btn-bottom {
    transform: translateY(8px);
    transition: transform 0.05s;
}

.fahh-btn:focus:not(:focus-visible) {
    outline: none;
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.btn-active-anim {
    animation: pulse 0.1s ease-in-out;
}

/* Nav Styles */
.top-nav {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 100;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 2px;
    padding: 0.8rem 1.5rem;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: rgba(255,255,255,0.2);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Soundboard Specifics */
.container-sb {
    padding: 2rem;
}

.title-small {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 3rem;
    letter-spacing: 4px;
    background: linear-gradient(to bottom, #fff, #555);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sound-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 800px;
    width: 100%;
}

.sound-pad {
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 4px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-light);
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    backdrop-filter: blur(5px);
}

.sound-pad:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.sound-pad:active {
    transform: translateY(2px);
    border-bottom-width: 1px;
    background: var(--primary);
    border-color: var(--primary-dark);
}

.sound-pad.empty {
    opacity: 0.4;
    font-style: italic;
}

@media (max-width: 600px) {
    .sound-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .top-nav {
        top: 1rem;
        right: 1rem;
    }
    
    .title-small {
        font-size: 2rem;
        margin-top: 4rem;
    }
}
