:root {
    --primary: 217.2 91.2% 59.8%;
    --foreground: 0 0% 100%;
}

body {
    background-color: #0a0a0a;
    color: #e5e5e5;
    -webkit-font-smoothing: antialiased;
}

.glass-nav {
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #222;
}

.secondary-pill {
    background: rgba(139,92,246,.15);
}

.gradient-text {
    background: linear-gradient(to right, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card {
    background: #111;
    border: 1px solid #222;
    border-radius: 0.75rem;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.card:hover {
    border-color: #3b82f6;
}

.hero-blob {
    position: absolute;
    width: 300px;
    height: 300px;
    background: linear-gradient(to right, #3b82f6, #8b5cf6);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.2;
    z-index: -1;
    animation: float 6s ease-in-out infinite;
}

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

/* Animation system */
[data-animate] {
    opacity: 0;
}

[data-animate="fade-up"] {
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

[data-animate="fade-up"].is-visible {
    opacity: 1;
    transform: translateY(0);
}

[data-animate="fade-in"] {
    transition: opacity 1s ease-out;
}

[data-animate="fade-in"].is-visible {
    opacity: 1;
}

[data-animate="fade-left"] {
    transform: translateX(-30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

[data-animate="fade-left"].is-visible {
    opacity: 1;
    transform: translateX(0);
}

[data-animate="fade-right"] {
    transform: translateX(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

[data-animate="fade-right"].is-visible {
    opacity: 1;
    transform: translateX(0);
}

[data-animate="scale-in"] {
    transform: scale(0.92);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

[data-animate="scale-in"].is-visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger children */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.stagger-children.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children.is-visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.is-visible > *:nth-child(3) { transition-delay: 0.15s; }
.stagger-children.is-visible > *:nth-child(4) { transition-delay: 0.2s; }
.stagger-children.is-visible > *:nth-child(5) { transition-delay: 0.25s; }
.stagger-children.is-visible > *:nth-child(6) { transition-delay: 0.3s; }
.stagger-children.is-visible > *:nth-child(7) { transition-delay: 0.35s; }
.stagger-children.is-visible > *:nth-child(8) { transition-delay: 0.4s; }
.stagger-children.is-visible > *:nth-child(9) { transition-delay: 0.45s; }
.stagger-children.is-visible > *:nth-child(10) { transition-delay: 0.5s; }
.stagger-children.is-visible > *:nth-child(11) { transition-delay: 0.55s; }
.stagger-children.is-visible > *:nth-child(12) { transition-delay: 0.6s; }

.stagger-children.is-visible > * {
    opacity: 1;
    transform: translateY(0);
}

.stagger-children.is-visible > *:nth-child(12) { transition-delay: 0.6s; }

.stagger-children.is-visible > * {
    opacity: 1;
    transform: translateY(0);
}

.hero-avatar {
    width: 140px;
    height: 140px;
    border-radius: 9999px;
    object-fit: cover;
    border: 4px solid transparent;
    background: linear-gradient(#0a0a0a, #0a0a0a) padding-box,
                linear-gradient(135deg, #3b82f6, #8b5cf6) border-box;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.25), 0 0 60px rgba(139, 92, 246, 0.15);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.6s ease;
    animation: avatar-float 5s ease-in-out infinite;
    display: block;
}

.hero-avatar:hover {
    transform: rotateY(180deg) scale(1.08);
    box-shadow: 0 0 50px rgba(59, 130, 246, 0.5), 0 0 90px rgba(139, 92, 246, 0.35);
    animation-play-state: paused;
}

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

.hero-skills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}
.hero-skills span {
    padding: .35rem .75rem;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    border: 1px solid #333;
    background: #1a1a1a;
    color: #e5e5e5;
    white-space: nowrap;
    transition: border-color 0.2s, background 0.2s;
}
.hero-skills span:hover {
    border-color: #3b82f6;
    background: #222;
}

/* Animation system */
[data-animate] {
    opacity: 0;
}

[data-animate="fade-up"] {
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

[data-animate="fade-up"].is-visible {
    opacity: 1;
    transform: translateY(0);
}

[data-animate="fade-in"] {
    transition: opacity 1s ease-out;
}

[data-animate="fade-in"].is-visible {
    opacity: 1;
}

[data-animate="fade-left"] {
    transform: translateX(-30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

[data-animate="fade-left"].is-visible {
    opacity: 1;
    transform: translateX(0);
}

[data-animate="fade-right"] {
    transform: translateX(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

[data-animate="fade-right"].is-visible {
    opacity: 1;
    transform: translateX(0);
}

[data-animate="scale-in"] {
    transform: scale(0.92);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

[data-animate="scale-in"].is-visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger children */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.stagger-children.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children.is-visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.is-visible > *:nth-child(3) { transition-delay: 0.15s; }
.stagger-children.is-visible > *:nth-child(4) { transition-delay: 0.2s; }
.stagger-children.is-visible > *:nth-child(5) { transition-delay: 0.25s; }
.stagger-children.is-visible > *:nth-child(6) { transition-delay: 0.3s; }
.stagger-children.is-visible > *:nth-child(7) { transition-delay: 0.35s; }
.stagger-children.is-visible > *:nth-child(8) { transition-delay: 0.4s; }
.stagger-children.is-visible > *:nth-child(9) { transition-delay: 0.45s; }
.stagger-children.is-visible > *:nth-child(10) { transition-delay: 0.5s; }
.stagger-children.is-visible > *:nth-child(11) { transition-delay: 0.55s; }
.stagger-children.is-visible > *:nth-child(12) { transition-delay: 0.6s; }

.stagger-children.is-visible > * {
    opacity: 1;
    transform: translateY(0);
}


.avatar-wrapper {
    display: inline-block;
    animation: avatar-float 5s ease-in-out infinite;
}

.hero-avatar {
    width: 110px;
    height: 110px;
    border-radius: 9999px;
    object-fit: cover;
    border: 4px solid transparent;
    background: linear-gradient(#0a0a0a, #0a0a0a) padding-box,
                linear-gradient(135deg, #3b82f6, #8b5cf6) border-box;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.25), 0 0 60px rgba(139, 92, 246, 0.15);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.6s ease;
    display: block;
}

.hero-avatar:hover {
    transform: rotateY(180deg) scale(1.08);
    box-shadow: 0 0 50px rgba(59, 130, 246, 0.5), 0 0 90px rgba(139, 92, 246, 0.35);
}

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

.testimonial-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.testimonial-track::-webkit-scrollbar { display: none; }
.testimonial-item {
    scroll-snap-align: start;
    flex: 0 0 auto;
    min-width: 320px;
    max-width: 380px;
}
