/* Hero Section */
.hero {
    margin-top: 20px;
    margin-bottom: 8px;
    position: relative;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-bottom: 36px;
    position: relative;
}

.avatar-container {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.avatar-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.avatar-container:hover img {
    transform: scale(1.03);
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.profile-info h1 {
    font-size: 1.6rem;
    font-weight: 400;
    letter-spacing: -0.04em;
    color: #fff;
    line-height: 1.3;
    margin: 0;
    position: relative;
    display: inline-block;
    z-index: 1;
}

/* Knight Icon & Animation */
.knight-icon {
    display: inline-block;
    margin-left: 8px;
    position: relative;
    vertical-align: middle;
    cursor: pointer;
    z-index: 1000;
}

/* Subtle shadow that follows the knight with blur effect */
.knight-icon::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 4px;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 40%, transparent 70%);
    border-radius: 50%;
    opacity: 0.8;
    animation: knightShadow 1.6s cubic-bezier(0.34, 0, 0.2, 1) infinite;
    pointer-events: none;
    z-index: -1;
    filter: blur(3px);
    transition: opacity 0.3s ease;
}

.knight-svg {
    width: 24px;
    height: 24px;
    display: block;
    stroke: #fff;
    fill: #fff;
    cursor: pointer;
    transform-origin: center bottom;
    animation: knightJump 1.6s cubic-bezier(0.34, 0, 0.2, 1) infinite, knightGlowPulse 4s ease-in-out infinite;
    filter: brightness(0) invert(1);
    will-change: transform, filter;
    position: relative;
    transition: filter 0.3s ease, transform 0.2s ease;
}

/* Breathing idle animation when not jumping and not hovered */
.knight-svg.knight-idle:not(:hover) {
    animation: knightIdle 3s ease-in-out infinite !important;
}

.knight-icon:hover .knight-svg {
    animation: knightHover 0.6s ease-in-out 2 !important;
    filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255, 255, 255, 0.6)) !important;
    transform: scale(1.1);
}

/* Click animation */
.knight-icon:active .knight-svg {
    animation: knightClick 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
}

/* Tooltip */
.knight-icon::after {
    content: '♟️ click to play chess against me';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 12px;
    background-color: rgba(15, 15, 15, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.85);
    padding: 8px 12px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    letter-spacing: -0.01em;
    z-index: 10000;
    border-radius: 4px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.knight-icon:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(2px);
}


/* Landing ripple effect - using box-shadow on the icon container */
.knight-icon {
    position: relative;
    z-index: 1000;
}

/* Particle trail effect - using multiple box-shadows on the SVG */
.knight-svg {
    /* Particle trail will be handled via the glow in the animation */
}

/* Tagline */
.tagline {
    font-size: 1.1em;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.3;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tagline-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgb(25, 190, 25);
    display: inline-block;
    flex-shrink: 0;
}

.reach-out {
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95em;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
    touch-action: manipulation;
    min-height: 44px;
    padding: 4px 0;
}

.reach-out:hover {
    color: #fff;
    letter-spacing: 0.02em;
}

.send-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    fill: none;
    stroke: #fff;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    position: relative;
    vertical-align: middle;
}

.reach-out:hover .send-icon {
    opacity: 1;
    animation: sendAnimation 1.2s ease-in-out;
}

/* Bio */
.bio {
    margin-bottom: 8px;
    position: relative;
}

.bio p {
    font-size: 1.1em;
    color: #fff;
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.05em;
    position: relative;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.bio p::first-letter {
    font-size: 1.15em;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
}

/* Inline Social Links */
.social-links-inline {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 32px;
    margin-bottom: 40px;
}

.social-link-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background-color: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
    touch-action: manipulation;
}

.social-link-icon i {
    font-size: 1.5rem;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.social-link-icon:hover {
    background-color: #1f1f1f;
    border-color: rgba(255, 255, 255, 0.15);
}

.social-link-icon.linkedin:hover {
    background-color: rgba(10, 102, 194, 0.08);
    border-color: rgba(10, 102, 194, 0.2);
}

.social-link-icon.linkedin:hover i {
    color: rgba(10, 102, 194, 0.9);
}

.social-link-icon.github:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.social-link-icon.github:hover i {
    color: rgba(255, 255, 255, 0.95);
}

.social-link-icon.email:hover {
    background-color: rgba(234, 67, 53, 0.08);
    border-color: rgba(234, 67, 53, 0.2);
}

.social-link-icon.email:hover i {
    color: rgba(234, 67, 53, 0.9);
}

