body {
    background-color: #020617;
    color: #e2e8f0;
    overflow-x: hidden;
}

/* Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

main {
    position: relative;
    z-index: 10;
}

section {
    background-color: transparent !important;
}

/* Utility Classes */
.glass {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 10px 30px -10px rgba(59, 130, 246, 0.3);
}

.text-gradient {
    background: linear-gradient(to right, #60a5fa, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.photo-enhancer {
    filter: brightness(1.05) contrast(1.05) saturate(1.1);
    box-shadow: 0 0 50px rgba(59, 130, 246, 0.3);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #020617;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Timeline Dot */
.timeline-dot {
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

/* Chatbot Styles */
#chatbot-trigger {
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

#chatbot-window {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

#chatbot-body {
    scrollbar-width: thin;
    scrollbar-color: #3b82f6 #0f172a;
}

#chatbot-body::-webkit-scrollbar {
    width: 5px;
}

#chatbot-body::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 10px;
}

/* Typewriter Cursor */
.type-writer::after {
    content: '|';
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Video Portfolio Section */
#video-preview video {
    transition: transform 0.5s ease;
}

#video-preview:hover video {
    transform: scale(1.02);
}

/* Video Modal */
#video-modal {
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Chat input focus */
#chat-input:focus {
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* Social link hover */
.social-link:hover {
    transform: translateY(-2px);
}
