@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
}

body {
    background: #0a0e27;
    color: #e2e8f0;
}

/* Animated background circuit pattern */
.circuit-bg {
    background-image:
        linear-gradient(90deg, rgba(99, 102, 241, 0.05) 1px, transparent 1px),
        linear-gradient(rgba(99, 102, 241, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: circuitMove 20s linear infinite;
}

@keyframes circuitMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 50px 50px;
    }
}

/* Gradient text effects */
.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Racing stripe accent */
.racing-stripe {
    position: relative;
    overflow: hidden;
}

.racing-stripe::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #667eea, transparent);
    animation: raceStripe 3s ease-in-out infinite;
}

@keyframes raceStripe {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Card hover effects */
.card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.card-hover:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
    border-color: rgba(99, 102, 241, 0.5);
}

/* Floating animation for icons */
.float {
    animation: float 6s ease-in-out infinite;
}

.float:nth-child(2) {
    animation-delay: -2s;
}

.float:nth-child(3) {
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Fade in animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in-delay-1 {
    animation-delay: 0.2s;
}

.fade-in-delay-2 {
    animation-delay: 0.4s;
}

.fade-in-delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Glowing button effect */
.glow-button {
    position: relative;
    overflow: hidden;
}

.glow-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.glow-button:hover::before {
    width: 300px;
    height: 300px;
}

/* Typing indicator animation */
.typing-indicator span {
    animation: typing 1.4s infinite;
}

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

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

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.5;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Headshot container with rotating border */
.headshot-container {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto;
    padding: 4px;
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #667eea);
    border-radius: 50%;
    background-size: 300% 300%;
    animation: gradientRotate 4s linear infinite;
}

.headshot-container::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #667eea);
    border-radius: 50%;
    background-size: 300% 300%;
    animation: gradientRotate 4s linear infinite;
    z-index: -1;
}

@keyframes gradientRotate {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.headshot-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    color: #667eea;
    border: 4px solid #0a0e27;
}

.headshot-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #0a0e27;
    display: block;
    position: relative;
}

/* Particle background */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(99, 102, 241, 0.5);
    border-radius: 50%;
    animation: particleFloat 10s linear infinite;
    will-change: transform, opacity;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

/* Navigation sticky effect */
nav {
    backdrop-filter: blur(10px);
    background: rgba(10, 14, 39, 0.8);
}

/* Chat box styling */
#chatBox {
    max-height: 500px;
    overflow-y: auto;
}

#chatBox::-webkit-scrollbar {
    width: 8px;
}

#chatBox::-webkit-scrollbar-track {
    background: #1e293b;
    border-radius: 10px;
}

#chatBox::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

#chatBox::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

/* Skill tags with tech pattern */
.skill-tag {
    transition: all 0.3s ease;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.skill-tag:hover {
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.8);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

/* Timeline styling */
.timeline-item::before {
    content: '';
    position: absolute;
    left: -21px;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #667eea;
    border: 3px solid #0a0e27;
    z-index: 1;
}

.timeline-line {
    position: absolute;
    left: -16px;
    top: 12px;
    bottom: -12px;
    width: 2px;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.5) 0%, rgba(99, 102, 241, 0.1) 100%);
}

/* Section reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

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