/* 首页/英雄区域样式 */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    background-color: var(--bg-dark);
    padding: 0 clamp(20px, 8vw, 80px);
    overflow: hidden;
}

/* Cleaner background effect */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.02) 0%, transparent 25%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.02) 0%, transparent 25%);
    animation: backgroundPulse 12s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes backgroundPulse {
    0% {
        opacity: 0.7;
        transform: scale(1);
    }
    100% {
        opacity: 1;
        transform: scale(1.1);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1rem, 4vw, 3rem);
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-left {
    padding-right: clamp(1rem, 3vw, 2rem);
}

.hero-text {
    color: var(--text-color);
    position: relative;
    padding: 20px;
    text-align: center;
    width: 100%;
}

/* Removing the glowing border effect */
.hero-text::before {
    display: none;
}

@keyframes borderGlow {
    0%, 100% {
        border-color: transparent;
        box-shadow: none;
    }
    50% {
        border-color: transparent;
        box-shadow: none;
    }
}

.hero-text h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    font-family: 'Orbitron', sans-serif;
    position: relative;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.4) 0%,
        rgba(255, 255, 255, 0.8) 50%,
        rgba(255, 255, 255, 0.4) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient 8s ease infinite;
    display: inline-block;
}

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

h1 span.highlight {
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.8) 0%,
        #ffffff 50%,
        rgba(255, 255, 255, 0.8) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.profession {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    font-weight: 400;
    min-height: 2.5em;
    margin: 10px auto;
    letter-spacing: 1px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.description {
    font-size: clamp(0.875rem, 1.5vw, 1.125rem);
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    text-align: justify;
    max-width: 100%;
}

.description:hover {
    opacity: 0.9;
}

.social-links {
    display: flex;
    gap: clamp(1rem, 3vw, 1.5rem);
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
    position: relative;
}

.social-link {
    color: var(--text-color);
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    transition: all 0.3s ease;
    opacity: 0.7;
    position: relative;
}

.social-link::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.3s ease;
}

.social-link:hover {
    opacity: 1;
    transform: translateY(-3px);
}

.social-link:hover::before {
    transform: scale(2);
}

.hero-buttons {
    display: flex;
    gap: clamp(1rem, 3vw, 1.5rem);
}

.btn-primary, .btn-secondary {
    padding: clamp(0.75rem, 1.5vw, 1rem) clamp(1.5rem, 3vw, 2rem);
    border-radius: 30px;
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.btn-primary::before, .btn-secondary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s ease;
}

.btn-primary:hover::before, .btn-secondary:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.btn-primary {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

.btn-secondary {
    border: 2px solid var(--text-color);
    color: var(--text-color);
}

.btn-secondary:hover {
    background: var(--text-color);
    color: var(--bg-dark);
}

.hero-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-container {
    width: 400px;
    height: 400px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.profile-container::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: rotateGlow 4s linear infinite;
}

@keyframes rotateGlow {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

#profileImage {
    width: clamp(250px, 30vw, 400px);
    height: clamp(250px, 30vw, 400px);
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.1);
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: brightness(0.7);
}

#profileImage:hover {
    transform: scale(2.0);
    filter: brightness(1);  
}

.profile-container:hover {
    transform: perspective(1000px) rotateY(10deg);
}

.scroll-arrows {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.scroll-link {
    text-decoration: none;
    color: var(--text-color);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.scroll-link:hover {
    opacity: 1;
}

.scroll-link i {
    font-size: 2.5rem;
    display: block;
    animation: bounce 2s infinite;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

.scroll-link:hover i {
    color: rgba(255, 255, 255, 0.9);
}

.scroll-link i:nth-child(2) {
    margin-top: -0.5rem;
    opacity: 0.5;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.typing-text {
    display: inline-block;
    text-align: center;
    min-width: 5em;
}

.typing-cursor {
    display: inline-block;
    width: 1px;
    animation: blink 0.7s infinite;
    margin-left: 2px;
    opacity: 0.7;
}

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

/* 图片模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding: 20px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    display: block;
    margin: auto;
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
    animation: modalFadeIn 0.3s ease-out;
}

.modal-close {
    position: absolute;
    right: 35px;
    top: 25px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.modal-close:hover {
    color: var(--accent-color);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: clamp(2rem, 5vw, 3rem);
    }

    .hero-left {
        padding-right: 0;
    }

    .social-links {
        justify-content: center;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .social-links {
        gap: clamp(1rem, 3vw, 1.5rem);
    }
}

@media (max-width: 480px) {
    .hero-text {
        padding: clamp(10px, 3vw, 20px);
    }

    .description {
        text-align: left;
    }
}
