/* Genesis Portfolio - Theme Setup Styles */

* {
    font-family: 'Space Grotesk', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(to bottom right, #0f172a, #581c87, #0f172a);
    color: #ffffff;
}

main {
    min-height: 100vh;
}

section {
    position: relative;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

/* Links */
a {
    transition: color 0.3s ease;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
}

/* Buttons */
button {
    font-family: inherit;
}

/* Forms */
input,
textarea {
    font-family: inherit;
}

/* Prose content */
.prose {
    color: inherit;
}

.prose a {
    color: #a855f7;
}

.prose strong {
    font-weight: 700;
}

/* Utility classes */
.overflow-x-hidden {
    overflow-x: hidden;
}

.pointer-events-none {
    pointer-events: none;
}

.pointer-events-auto {
    pointer-events: auto;
}

/* Fix for Tailwind + custom styles */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.gradient-text {
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 50%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-btn {
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gradient-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(168, 85, 247, 0.3);
}

.form-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: white;
    transition: all 0.3s ease;
}

.form-input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(168, 85, 247, 0.8);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Message class for animations */
.message {
    display: flex;
    margin-bottom: 12px;
    animation: slideUp 0.3s ease;
}

.message-user {
    justify-content: flex-end;
}

.message-user > * {
    background: linear-gradient(135deg, #a855f7, #ec4899);
    padding: 12px 16px;
    border-radius: 12px;
    max-width: 80%;
    word-wrap: break-word;
}

.message-bot > * {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 16px;
    border-radius: 12px;
    max-width: 80%;
    word-wrap: break-word;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Typing indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #a855f7;
    animation: bounce 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: translateY(0);
        opacity: 0.5;
    }
    40% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Project cards */
.project-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-8px);
}

/* Ensure proper stacking */
.fixed {
    position: fixed;
}

.absolute {
    position: absolute;
}

.relative {
    position: relative;
}

/* Z-index management */
.z-40 {
    z-index: 40;
}

.z-50 {
    z-index: 50;
}

.z-10 {
    z-index: 10;
}
