/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo .logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #2563eb;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #374151;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: calc(100vh - 70px); /* Adjust for navbar only */
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    padding-top: 20px;
    position: relative;
    overflow: hidden;
}



/* 滚动状态文字 - 充满屏幕滚动 */
.simple-status-text {
    margin-top: 2rem;
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    height: 60px;
    overflow: hidden;
    background: transparent;
}

.scrolling-text {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: scroll-seamless 50s linear infinite;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 600;
    color: #64748b;
    opacity: 0.5;
    letter-spacing: 3px;
    height: 100%;
    width: fit-content;
}

.scrolling-text span {
    margin-right: 0;
    white-space: nowrap;
    flex-shrink: 0;
}

/* 从左到右滚动动画 */
@keyframes scroll-seamless {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll-left-to-right {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #2563eb;
    margin-bottom: 20px;
    font-weight: 500;
}


.hero-description {
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 40px;
    line-height: 1.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #2563eb;
    color: #fff;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #2563eb;
    border: 2px solid #2563eb;
}

.btn-secondary:hover {
    background: #2563eb;
    color: #fff;
    transform: translateY(-2px);
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: #1e293b;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #2563eb;
    border-radius: 2px;
}

/* About Section */
.about {
    background: #f8fafc;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text p {
    color: #64748b;
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.8;
}

.skills-section h3 {
    color: #1e293b;
    margin-bottom: 30px;
    font-size: 1.5rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-2px);
}

.skill-item i {
    font-size: 1.5rem;
    color: #2563eb;
}

.skill-item span {
    font-weight: 500;
    color: #374151;
}

/* Projects Section */
.projects {
    background: #fff;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.project-card h3 {
    color: #1e293b;
    font-size: 1.3rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.project-period {
    color: #2563eb;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.project-card p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tech span {
    background: #eff6ff;
    color: #2563eb;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Experience Section */
.experience {
    background: #f8fafc;
}

.experience-section,
.awards-section {
    margin-bottom: 50px;
}

.experience-section h3,
.awards-section h3 {
    color: #1e293b;
    font-size: 1.8rem;
    margin-bottom: 30px;
    border-bottom: 2px solid #2563eb;
    padding-bottom: 10px;
}

.experience-item {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.experience-item h4 {
    color: #1e293b;
    font-size: 1.2rem;
}

.experience-date {
    color: #2563eb;
    font-weight: 500;
    font-size: 0.9rem;
}

.experience-org {
    color: #2563eb;
    font-weight: 500;
    margin-bottom: 10px;
}

.experience-item p {
    color: #64748b;
    line-height: 1.6;
}

.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.award-item {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.award-item h4 {
    color: #1e293b;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.award-item p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Contact Section */
.contact {
    background: #fff;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-info h3 {
    color: #1e293b;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.contact-info p {
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #374151;
    padding: 15px 25px;
    background: #f8fafc;
    border-radius: 8px;
    min-width: 300px;
    justify-content: center;
}

.contact-method i {
    font-size: 1.2rem;
    color: #2563eb;
}

.contact-method a {
    color: #2563eb;
    text-decoration: none;
}

.contact-method a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: #1e293b;
    padding: 30px 0;
    text-align: center;
}

.footer p {
    color: #94a3b8;
}

/* Mobile responsive optimization for scrolling text */
@media (max-width: 768px) {
    .simple-status-text {
        height: 50px;
        margin-top: 1.5rem;
    }
    
    .scrolling-text {
        font-size: clamp(1.5rem, 4vw, 2.5rem);
        letter-spacing: 2px;
        animation: scroll-seamless-mobile 40s linear infinite;
    }
}

@media (max-width: 480px) {
    .simple-status-text {
        height: 40px;
        margin-top: 1rem;
    }
    
    .scrolling-text {
        font-size: clamp(1.2rem, 3.5vw, 2rem);
        letter-spacing: 1px;
        animation: scroll-seamless-mobile 35s linear infinite;
    }
}

@keyframes scroll-seamless-mobile {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Complete Mobile Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
        max-width: 100%;
    }
    
    .nav-container {
        padding: 0 15px;
        height: 60px;
    }
    
    .nav-logo .logo-text {
        font-size: 18px;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 15px 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
        padding: 0 20px;
    }
    
    .hero {
        padding: 20px 0;
        min-height: calc(100vh - 60px);
    }
    
    /* Force mobile layout */
    * {
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    body {
        font-size: 16px;
        line-height: 1.5;
    }
    
    /* Fix any layout issues */
    .hero-content {
        padding: 0 20px;
        width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem !important;
        margin-bottom: 15px;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
        margin-bottom: 15px;
    }
    
    .hero-description {
        font-size: 0.9rem !important;
        padding: 0 15px;
        line-height: 1.4;
    }
    
    .nav-logo .logo-text {
        font-size: 16px !important;
    }
    
    .container {
        padding: 0 10px;
        max-width: 100%;
    }
    
    .nav-container {
        height: 50px !important;
    }
    
    .nav-menu {
        top: 50px !important;
    }
    
    .hero {
        min-height: calc(100vh - 50px) !important;
        padding: 15px 0;
    }
    
    .hero-content {
        padding: 0 15px !important;
    }
}




