/* Animation keyframes */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes shimmer {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}

@keyframes glow {
    0% { box-shadow: 0 0 5px rgba(45, 213, 255, 0.3), 0 0 10px rgba(45, 213, 255, 0.2); }
    100% { box-shadow: 0 0 10px rgba(45, 213, 255, 0.5), 0 0 20px rgba(45, 213, 255, 0.3), 0 0 30px rgba(45, 213, 255, 0.1); }
}

@keyframes scan {
    0% { background-position: 0% 0%; }
    100% { background-position: 0% 100%; }
}

/* 添加无缝滚动动画 */
@keyframes scrollX {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Base styles */
body {
    background-color: #0A0A14;
    color: #E6EFFF;
    font-family: 'SF Pro Display', system-ui, sans-serif;
    overflow-x: hidden;
}

/* 自动滚动容器 */
.auto-scroll-container {
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.scrolling-wrapper {
    display: inline-flex;
    animation: scrollX var(--scroll-duration, 30s) linear infinite;
    will-change: transform;
}

/* Glass and background effects */
.glass-effect {
    background: rgba(16, 16, 30, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(45, 213, 255, 0.08);
}

.shimmer-bg {
    background: linear-gradient(90deg,
        rgba(45, 213, 255, 0) 0%,
        rgba(45, 213, 255, 0.05) 20%,
        rgba(45, 213, 255, 0.1) 60%,
        rgba(45, 213, 255, 0) 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* Interactive elements */
.hover-scale {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hover-scale:hover {
    transform: scale(1.02);
}

/* Text styling */
.gradient-text {
    background: linear-gradient(to right, #2DD5FF, #A742FF, #FF2D9A);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.cyber-text {
    background: linear-gradient(to right, #00F7D8, #2DD5FF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 8px rgba(45, 213, 255, 0.5);
}

/* Glow effects */
.glow-blue {
    box-shadow: 0 0 15px rgba(45, 213, 255, 0.5);
}

.glow-purple {
    box-shadow: 0 0 15px rgba(167, 66, 255, 0.5);
}

.glow-pink {
    box-shadow: 0 0 15px rgba(255, 45, 154, 0.5);
}

/* Card styling */
.tech-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(45, 213, 255, 0.3);
}

.tech-card:hover::before {
    opacity: 1;
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(135deg, #2DD5FF, #A742FF, #FF2D9A);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Background grid */
.cyber-grid {
    background-size: 30px 30px;
    background-image:
      linear-gradient(to right, rgba(33, 246, 255, 0.03) 1px, transparent 1px),
      linear-gradient(to bottom, rgba(33, 246, 255, 0.03) 1px, transparent 1px);
}

/* Gradient effects */
.gradient-mask {
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
}

/* Status indicators */
.availability-badge {
    position: relative;
    padding-left: 12px;
}

.availability-badge::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00F7D8;
    box-shadow: 0 0 8px rgba(0, 247, 216, 0.8);
    animation: pulse 2s infinite;
}

.availability-badge.busy::before {
    background: #FF2D9A;
    box-shadow: 0 0 8px rgba(255, 45, 154, 0.8);
    animation: none;
}

/* Scanning effect for images */
.scanning-effect {
    position: relative;
    overflow: hidden;
}

.scanning-effect::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    height: 200%;
    width: 100%;
    background: linear-gradient(transparent 0%, 
                 rgba(45, 213, 255, 0.1) 50%, 
                 transparent 100%);
    animation: scan 2s linear infinite;
}

/* Modern scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #12121F;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #2DD5FF, #A742FF);
    border-radius: 3px;
}

/* Collapsible section animations */
.collapsible-section {
    transition: max-height 0.5s ease-in-out, opacity 0.3s ease-in-out;
    overflow: hidden;
}

.section-toggle {
    transition: transform 0.3s ease;
}

.section-header {
    cursor: pointer;
    user-select: none;
}

/* Floating contact button */
.floating-contact {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 40;
    transition: transform 0.3s ease;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: #8da3b9;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(45, 213, 255, 0.3);
}

.floating-contact:hover {
    transform: scale(1.05);
}

.section-header:hover h2 {
    background: linear-gradient(to right, #00F7D8, #2DD5FF, #A742FF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: all 0.3s ease;
}

/* Section-specific colors */
.featured-section .section-indicator {
    background: #2DD5FF;
}

.front-page-section .section-indicator {
    background: #A742FF;
}

.regular-section .section-indicator {
    background: #00F7D8;
}

.search-results-section .section-indicator {
    background: #FF2D9A;
}

/* Contact notification styling */
.contact-notice {
    background-color: #fff3cd;
    border: 2px solid #ffeeba;
    border-left: 5px solid #ff9800;
    color: #856404;
    padding: 10px 15px;
    margin: 15px 0;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.contact-notice p {
    margin: 5px 0;
    font-weight: bold;
    text-align: left;
    font-size: 16px;
    line-height: 1.4;
    height: auto;
    overflow: visible;
}

.contact-notice p:first-child {
    color: #e65100;
}