:root {
    --bg-black: #000000;
    --cm-bg: rgba(12, 12, 12, 0.98);
    --gradient-line: linear-gradient(90deg, #ff0080, #ff8c00);
    --glass-border: rgba(255, 255, 255, 0.08);
    --accent-pink: #ff2d7d;
}

body {
    background-color: var(--bg-black);
    color: white;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    width: 100%;
}

.serif { font-family: 'Playfair Display', serif; }

/* Background Noise Effect */
.noise {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    opacity: 0.03;
    z-index: 9998;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Circular Faded Background Glow */
.bg-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140vw;
    height: 140vh;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.07) 0%, transparent 55%);
    pointer-events: none;
    z-index: -1;
    filter: blur(60px);
}

/* Nav Wrapper - Starts at Right */
#nav-wrapper {
    position: fixed;
    top: 24px;
    right: 20px;
    z-index: 5000;
    transform-origin: right center;
}
@media (min-width: 768px) {
    #nav-wrapper {
        top: 32px;
        right: 48px;
    }
}

/* Snappy Nav Pill Animation */
.nav-pill-bg {
    transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    background: #ffffff;
    box-shadow: 0 10px 20px -5px rgba(0,0,0,0.5);
}

/* Refined Liquid Glass Container */
.liquid-glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid var(--glass-border);
    box-shadow: 
        0 4px 30px rgba(0, 0, 0, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 0.05);
    padding: 3px;
}

::-webkit-scrollbar { width: 0px; background: transparent; }

.reveal-text {
    display: inline-block;
    filter: blur(20px);
    transform: translateY(100px);
    opacity: 0;
}

.bento-card {
    background: rgba(8, 8, 8, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: inset 0 0 40px rgba(255, 255, 255, 0.02), inset 0 0 1px rgba(255, 255, 255, 0.1);
}
@media (min-width: 768px) {
    .bento-card {
        border-radius: 2.5rem;
        padding: 2.5rem;
    }
}

.bento-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(11, 11, 11, 0.8);
}

/* Marquee System */
@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes scroll-right {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.marquee-container {
    overflow: hidden;
    display: flex;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    padding: 10px 0;
}

.marquee-inner {
    display: flex;
    gap: 1rem;
    width: max-content;
}
@media (min-width: 768px) {
    .marquee-inner { gap: 1.5rem; }
}

.animate-scroll-left { animation: scroll-left 50s linear infinite; }
.animate-scroll-right { animation: scroll-right 50s linear infinite; }

.marquee-container:hover .marquee-inner {
    animation-play-state: paused;
}

.voice-card {
    width: 280px;
    max-width: 85vw;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.25rem;
    padding: 1.25rem;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.01);
}
@media (min-width: 768px) {
    .voice-card {
        width: 400px;
        padding: 2rem;
        border-radius: 1.5rem;
        gap: 1.5rem;
    }
}

.voice-card h4 { font-size: 10px; font-weight: 800; letter-spacing: 0.1em; color: white; text-transform: uppercase; }
.voice-card p { 
    font-size: 12px; 
    font-weight: 700; 
    line-height: 1.5; 
    color: rgba(255, 255, 255, 0.9); 
    white-space: normal; 
    text-transform: uppercase;
    letter-spacing: -0.01em;
}
@media (min-width: 768px) {
    .voice-card h4 { font-size: 11px; }
    .voice-card p { font-size: 14px; }
}

/* CTA Glow Effect */
.glowing-orb {
    width: 120px; height: 120px;
    background: radial-gradient(circle, var(--accent-pink) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(30px);
    opacity: 0.6;
    animation: orb-pulse 3s infinite alternate ease-in-out;
}
@media (min-width: 768px) {
    .glowing-orb {
        width: 180px; height: 180px;
        filter: blur(40px);
    }
}

@keyframes orb-pulse {
    from { transform: scale(1); opacity: 0.4; }
    to { transform: scale(1.3); opacity: 0.8; }
}

/* Command Menu Modal */
#command-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999; 
    opacity: 0;
}

.cm-overlay {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.cm-box {
    width: 100%;
    max-width: 600px;
    background: var(--cm-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(40px);
}

.cm-search-container {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 12px;
}

.cm-input {
    background: transparent;
    border: none;
    color: white;
    width: 100%;
    font-size: 14px;
    outline: none;
    font-weight: 400;
}
@media (min-width: 768px) {
    .cm-input { font-size: 16px; }
    .cm-search-container { padding: 20px 24px; gap: 16px; }
}

.cm-input::placeholder { color: rgba(255, 255, 255, 0.2); }

.cm-scroll-area {
    max-height: 60vh;
    overflow-y: auto;
    padding: 12px 0;
}

.cm-section-label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.2);
    padding: 10px 20px 8px;
    font-weight: 700;
}

.cm-item {
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    margin: 2px 8px;
    border-radius: 10px;
    position: relative;
}

.cm-item:hover, .cm-item.active {
    background: rgba(255, 255, 255, 0.05);
}

.cm-item-title { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.9); }
.cm-item-desc { font-size: 11px; color: rgba(255,255,255,0.3); }

.cm-enter-icon {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.cm-item:hover .cm-enter-icon, .cm-item.active .cm-enter-icon {
    opacity: 0.5;
    transform: translateX(0);
}

.cm-footer {
    padding: 12px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 9px;
    color: rgba(255, 255, 255, 0.2);
}

/* Email Interaction */
.email-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.email-line {
    position: absolute;
    bottom: -8px;
    left: 50%;
    height: 2px;
    width: 0%;
    background: var(--gradient-line);
    transform: translateX(-50%);
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 99px;
}

.email-container:hover .email-line { width: 100%; }

#message-box {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(255, 255, 255, 0.9);
    color: black;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    z-index: 100000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    width: fit-content;
    white-space: nowrap;
}
#message-box.visible { transform: translateX(-50%) translateY(0); opacity: 1; }

.pill-tag {
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 4px 8px;
    border-radius: 99px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s;
}
@media (min-width: 768px) {
    .pill-tag { font-size: 9px; padding: 6px 12px; }
}

.project-tag {
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 0.5rem;
    display: block;
}
