:root {
    --color-primary: #4A90D9;
    --color-primary-light: #6BA3E0;
    --color-primary-dark: #3A7BC8;
    --color-secondary: #FFFFFF;
    --color-accent: #5DB89D;
    --color-accent-light: #7BC4AD;
    --color-surface: #F8FBFD;
    --color-surface-dark: #F1F6FA;
    --color-text: #2D3748;
    --color-text-muted: #718096;
    --color-border: #E2E8F0;
    --color-success: #48BB78;
}

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

body {
    font-family: 'Noto Sans SC', sans-serif;
    background-color: var(--color-secondary);
    color: var(--color-text);
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--color-surface);
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 3px;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(74, 144, 217, 0.1);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 15px rgba(74, 144, 217, 0.08);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 30px;
    width: 100%;
    position: relative;
}

.logo {
    flex-shrink: 0;
    width: 120px;
}

.logo img {
    width: 100%;
    height: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
    margin-left: auto;
}

.mobile-contact-btn {
    display: none;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 50px;
    justify-content: flex-end;
}

.contact-btn {
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    padding: 10px 22px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: white !important;
    text-decoration: none !important;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 217, 0.3);
}

.nav-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transition: width 0.3s ease;
}

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

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

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 1px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(7px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-7px);
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    background: linear-gradient(135deg, #FFFFFF 0%, #F0F7FF 40%, #EDF7F5 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 50%;
    height: 60%;
    background: radial-gradient(ellipse at center, rgba(74, 144, 217, 0.08) 0%, transparent 60%);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 40%;
    height: 50%;
    background: radial-gradient(ellipse at center, rgba(93, 184, 157, 0.06) 0%, transparent 60%);
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    position: relative;
    z-index: 1;
    padding: 0 40px;
    max-width: 1400px;
    width: 100%;
}

.hero-left {
    flex: 1;
    text-align: left;
}

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

.logo-large {
    width: 100%;
    max-width: 450px;
    animation: gentleFloat 6s ease-in-out infinite;
}

.logo-large img {
    width: 100%;
    height: auto;
}

@keyframes gentleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(74, 144, 217, 0.1);
    color: var(--color-primary);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
}

.tagline {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.tagline span {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.description {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    max-width: 550px;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 14px 32px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(74, 144, 217, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border: 1.5px solid var(--color-border);
}

.btn-secondary:hover {
    border-color: var(--color-primary);
    background: rgba(74, 144, 217, 0.05);
    transform: translateY(-3px);
}

.section-header {
    text-align: center;
    padding: 40px 20px 40px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    border-radius: 2px;
}

.section-header p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}

.about {
    padding: 80px 20px;
    background: var(--color-secondary);
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
}

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

.about-text {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-title {
    color: var(--color-text);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 32px;
}

.about-desc {
    color: var(--color-text-muted);
    line-height: 1.8;
    font-size: 1.05rem;
}

.about-image {
    border-radius: 16px;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 900px) {
    .about-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-image {
        order: -1;
    }
    
    .about-text {
        text-align: center;
    }
}

.projects {
    padding: 80px 20px 120px;
    background: var(--color-surface-dark);
}

.project-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.project-content {
    padding-right: 20px;
}

.project-content .project-tag {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 16px;
    background: rgba(74, 144, 217, 0.1);
    color: var(--color-primary);
}

.project-content h3 {
    color: var(--color-text);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

.project-content p {
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 28px;
}

.project-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.project-buttons .btn-primary,
.project-buttons .btn-secondary {
    padding: 12px 28px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.project-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(74, 144, 217, 0.15);
}

.project-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

@media (max-width: 768px) {
    .project-showcase {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .project-content {
        padding-right: 0;
        order: 2;
    }
    
    .project-image {
        order: 1;
    }
    
    .project-content h3 {
        font-size: 1.8rem;
    }
}

.contact {
    padding: 0 20px 80px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #3A7BC8 100%);
}

.contact .section-header h2 {
    color: white;
}

.contact .section-header p {
    color: rgba(255, 255, 255, 0.7);
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-4px);
}

.contact-card i {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.5rem;
    color: white;
}

.contact-card h4 {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.contact-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.contact-card a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.contact-card a:hover {
    color: white;
}

footer {
    background: var(--color-text);
    padding: 50px 20px 30px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    width: 200px;
    margin: 0 auto 20px;
}

.footer-logo img {
    width: 100%;
    height: auto;
}

.footer-text {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 30px;
}

.footer-social a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: rgba(74, 144, 217, 0.8);
    color: white;
    transform: translateY(-2px);
}

.copyright {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

.page-section {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s ease-out;
}

.page-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-layout.visible,
.project-showcase.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 65px;
        left: -100%;
        transform: none;
        width: 100%;
        flex-direction: column;
        background: var(--color-secondary);
        border-bottom: 1px solid var(--color-border);
        padding: 30px 0;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
        transition: left 0.3s ease;
        z-index: 999;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-right .contact-btn {
        display: none;
    }

    .mobile-contact-btn {
        display: block;
        margin-top: 20px;
    }

    .hamburger {
        display: flex;
    }

    .hero-content {
        flex-direction: column;
        gap: 40px;
        padding: 0 20px;
        text-align: center;
    }

    .hero-left {
        text-align: center;
    }

    .logo-large {
        max-width: 350px;
    }

    .tagline {
        font-size: 2.2rem;
    }

    .description {
        margin: 0 auto 30px;
    }

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

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

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

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

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

    .section-header h2 {
        font-size: 2rem;
    }
}