/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #0f0518;
}
::-webkit-scrollbar-thumb {
    background: #ec4899;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #db2777;
}

/* Glassmorphism utils */
.glass-card {
    background: rgba(10, 5, 16, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    width: 100%;
    margin-bottom: 1rem;
    border-radius: 1rem;
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease-out;
    position: relative;
    overflow: hidden;
}

.social-link:hover {
    transform: scale(1.03);
}

.social-link:active {
    transform: scale(0.98);
}

/* Background Animations */
.blob {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    mix-blend-mode: screen;
    filter: blur(100px);
}

.overlay {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' 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)' opacity='1'/%3E%3C/svg%3E");
    filter: contrast(150%) brightness(125%);
}

@keyframes blob {
    0% { transform: translate(0px, 0px) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0px, 0px) scale(1); }
}

.animate-blob {
    animation: blob 10s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

/* Fade In Animation */
@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.animate-fadeUp {
    animation: fadeUp 0.8s ease-out forwards;
}

/* Modal Transitions */
#ai-modal.show {
    display: flex;
    opacity: 1;
}

#ai-modal.show > div {
    transform: scale(1);
}

/* Terminal Window Styles */
.terminal-window {
    width: 800px;
    height: 500px;
    max-width: 90vw;
    max-height: 80vh;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: width, height, border-radius, transform;
}

.terminal-fullscreen {
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    max-height: none !important;
    border-radius: 0 !important;
    position: fixed;
    top: 0;
    left: 0;
    margin: 0;
    z-index: 50;
}

/* Popup Animation */
@keyframes popup {
    0% { transform: scale(0.9) translateY(20px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

.animate-popup {
    animation: popup 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Typing Effect for Console */
.typing-char {
    display: inline-block;
    opacity: 0;
    animation: typeIn 0.1s forwards;
}

@keyframes typeIn {
    to { opacity: 1; }
}