:root {
    --primary-white: #ffffff;
    --bg-white: #f8f9fa;
    --tech-blue: #00d4ff;
    --tech-cyan: #00f5d4;
    --tech-blue-dark: #0077ff;
    --text-dark: #1a1a2e;
    --text-gray: #666688;
    --gradient-tech: linear-gradient(135deg, #00d4ff 0%, #0077ff 50%, #00f5d4 100%);
    --gradient-glass: rgba(255, 255, 255, 0.15);
    --shadow-soft: 0 8px 32px rgba(0, 119, 255, 0.1);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--primary-white);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 119, 255, 0.08);
    transition: var(--transition-smooth);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    background: var(--gradient-tech);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    position: relative;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-gray);
    padding: 8px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-tech);
    transition: var(--transition-smooth);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--tech-blue-dark);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    transition: var(--transition-smooth);
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--primary-white);
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-line {
    position: absolute;
    background: var(--gradient-tech);
    opacity: 0.15;
    animation: lineMove 8s ease-in-out infinite;
}

.hero-line:nth-child(1) {
    width: 2px;
    height: 200px;
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.hero-line:nth-child(2) {
    width: 100px;
    height: 2px;
    top: 35%;
    right: 20%;
    animation-delay: 1s;
}

.hero-line:nth-child(3) {
    width: 2px;
    height: 150px;
    bottom: 30%;
    left: 25%;
    animation-delay: 2s;
}

.hero-line:nth-child(4) {
    width: 60px;
    height: 2px;
    bottom: 25%;
    right: 15%;
    animation-delay: 3s;
}

@keyframes lineMove {
    0%, 100% { opacity: 0.1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(1.1); }
}

.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.08) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: glowPulse 6s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

.hero-content {
    text-align: center;
    z-index: 1;
    padding: 0 24px;
}

.hero-subtitle {
    font-size: 16px;
    font-weight: 500;
    color: var(--tech-blue);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards 0.3s;
}

.hero-title {
    font-size: clamp(48px, 10vw, 80px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards 0.5s;
}

.hero-title .highlight {
    background: var(--gradient-tech);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 18px;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto 40px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards 0.7s;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards 0.9s;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

.btn-primary {
    background: var(--gradient-tech);
    color: white;
    box-shadow: 0 4px 20px rgba(0, 119, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 119, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid rgba(0, 119, 255, 0.2);
}

.btn-secondary:hover {
    border-color: var(--tech-blue);
    background: rgba(0, 212, 255, 0.05);
}

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 1.2s;
}

.scroll-indicator span {
    font-size: 12px;
    color: var(--text-gray);
    letter-spacing: 2px;
}

.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid rgba(0, 119, 255, 0.3);
    border-radius: 12px;
    position: relative;
}

.scroll-mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--tech-blue);
    border-radius: 2px;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { transform: translateX(-50%) translateY(12px); opacity: 0.3; }
}

.section {
    padding: 120px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--tech-blue);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 16px;
    padding: 8px 20px;
    background: rgba(0, 212, 255, 0.08);
    border-radius: 20px;
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.section-desc {
    font-size: 17px;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 24px;
    background: linear-gradient(135deg, #f0f4f8 0%, #e8ecf0 100%);
    overflow: hidden;
}

.about-image-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-tech);
    opacity: 0.1;
}

.about-avatar {
    position: absolute;
    inset: 40px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--tech-blue) 0%, var(--tech-blue-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 120px;
    color: white;
    font-weight: 700;
}

.about-decoration {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--gradient-tech);
    opacity: 0.15;
    filter: blur(40px);
}

.about-decoration:nth-child(2) {
    top: -20px;
    right: -20px;
}

.about-decoration:nth-child(3) {
    bottom: -20px;
    left: -20px;
    width: 80px;
    height: 80px;
}

.about-content h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.about-content p {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-white);
    border-radius: 12px;
    transition: var(--transition-smooth);
}

.info-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-card);
}

.info-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-tech);
    border-radius: 10px;
    color: white;
    font-size: 18px;
}

.info-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.skill-card {
    background: white;
    border-radius: 20px;
    padding: 40px 32px;
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 119, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-tech);
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-soft);
}

.skill-card:hover::before {
    transform: scaleX(1);
}

.skill-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 119, 255, 0.1) 100%);
    border-radius: 16px;
    margin-bottom: 24px;
    font-size: 28px;
}

.skill-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.skill-card p {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.7;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.skill-tag {
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    background: rgba(0, 212, 255, 0.08);
    color: var(--tech-blue-dark);
    border-radius: 20px;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.work-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: white;
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.work-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(0, 119, 255, 0.15);
}

.work-image {
    position: relative;
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, #f0f4f8 0%, #e8ecf0 100%);
    overflow: hidden;
}

.work-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-tech);
    opacity: 0.05;
}

.work-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: rgba(0, 119, 255, 0.15);
}

.work-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 119, 255, 0.9) 100%);
    opacity: 0;
    transition: var(--transition-smooth);
    display: flex;
    align-items: flex-end;
    padding: 32px;
}

.work-card:hover .work-overlay {
    opacity: 1;
}

.work-overlay-links {
    display: flex;
    gap: 12px;
}

.work-overlay-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    color: var(--tech-blue-dark);
    font-size: 18px;
    transition: var(--transition-smooth);
}

.work-overlay-link:hover {
    transform: scale(1.1);
}

.work-content {
    padding: 28px;
}

.work-category {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--tech-blue);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.work-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.work-card p {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.6;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info {
    padding-top: 20px;
}

.contact-info h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.contact-info > p {
    font-size: 17px;
    color: var(--text-gray);
    margin-bottom: 40px;
    line-height: 1.8;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: white;
    border-radius: 16px;
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 119, 255, 0.08);
}

.contact-method:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-soft);
    border-color: rgba(0, 212, 255, 0.2);
}

.contact-method-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-tech);
    border-radius: 14px;
    font-size: 24px;
    color: white;
}

.contact-method-text h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.contact-method-text p {
    font-size: 14px;
    color: var(--text-gray);
}

.contact-form {
    background: white;
    border-radius: 24px;
    padding: 48px;
    border: 1px solid rgba(0, 119, 255, 0.08);
    box-shadow: var(--shadow-card);
}

.form-group {
    margin-bottom: 28px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    font-size: 15px;
    font-family: inherit;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    background: var(--bg-white);
    transition: var(--transition-smooth);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--tech-blue);
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form .btn {
    width: 100%;
    justify-content: center;
    padding: 16px 32px;
    font-size: 16px;
}

.footer {
    background: var(--bg-white);
    padding: 80px 0 40px;
    margin-top: 80px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.footer-logo {
    font-size: 28px;
    font-weight: 700;
    background: var(--gradient-tech);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 12px;
    color: var(--text-gray);
    font-size: 18px;
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.footer-social a:hover {
    background: var(--gradient-tech);
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 119, 255, 0.3);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding-top: 40px;
    font-size: 14px;
    color: var(--text-gray);
    text-align: center;
}

.filing-numbers {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.filing-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.filing-item a {
    color: var(--text-gray);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.filing-item a:hover {
    color: var(--tech-blue);
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a:hover {
    color: var(--tech-blue);
}

.floating-shapes {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    background: var(--gradient-tech);
    opacity: 0.05;
    border-radius: 50%;
    animation: floatShape 20s ease-in-out infinite;
}

.shape:nth-child(1) {
    width: 300px;
    height: 300px;
    top: 10%;
    right: -100px;
    animation-delay: 0s;
}

.shape:nth-child(2) {
    width: 200px;
    height: 200px;
    bottom: 20%;
    left: -50px;
    animation-delay: 5s;
}

.shape:nth-child(3) {
    width: 150px;
    height: 150px;
    top: 50%;
    right: 10%;
    animation-delay: 10s;
}

@keyframes floatShape {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(20px, -20px) rotate(90deg); }
    50% { transform: translate(-10px, 30px) rotate(180deg); }
    75% { transform: translate(-30px, -10px) rotate(270deg); }
}

.page-section {
    display: none;
}

.page-section.active {
    display: block;
}

.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: var(--transition-smooth);
}

.mobile-nav-overlay.active {
    opacity: 1;
}

@media (max-width: 992px) {
    .about-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .about-image {
        max-width: 400px;
        margin: 0 auto;
    }

    .section {
        padding: 80px 0;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 24px;
        gap: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 16px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero-content {
        padding-top: 72px;
    }

    .works-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content,
    .footer-bottom {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .about-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .contact-form {
        padding: 32px 24px;
    }
}

.typing-effect {
    display: inline;
}

.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background: var(--tech-blue);
    margin-left: 4px;
    animation: blink 1s step-end infinite;
    vertical-align: text-bottom;
}

@keyframes blink {
    50% { opacity: 0; }
}

.skill-progress {
    margin-top: 16px;
}

.skill-progress-bar {
    height: 6px;
    background: rgba(0, 119, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.skill-progress-fill {
    height: 100%;
    background: var(--gradient-tech);
    border-radius: 3px;
    transform-origin: left;
    animation: progressFill 1.5s ease forwards;
}

@keyframes progressFill {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top: 60px;
    padding-top: 60px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 40px;
    font-weight: 700;
    background: var(--gradient-tech);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.stat-label {
    font-size: 14px;
    color: var(--text-gray);
    margin-top: 8px;
}

@media (max-width: 768px) {
    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
