/* CSS Variables for Brand Colors */
:root {
    --primary-blue: #1e3a8a;
    --clean-white: #ffffff;
    --charcoal-gray: #374151;
    --soft-teal: #0891b2;
    --light-blue: #e0f2fe;
    --warm-gray: #f8fafc;
    --success-green: #059669;
    --warning-amber: #d97706;
    --error-red: #dc2626;
    --gradient-bg: linear-gradient(135deg, var(--primary-blue) 0%, var(--soft-teal) 100%);
    --gradient-text: linear-gradient(135deg, var(--primary-blue) 0%, var(--soft-teal) 100%);
    --gradient-accent: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Global Image Constraints */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--charcoal-gray);
    background: var(--clean-white);
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(30, 58, 138, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    height: 40px;
    width: 40px;
    max-width: 40px;
    max-height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    flex-shrink: 0;
}

.logo-text-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1.2;
}

.logo-chinese {
    font-size: 0.75rem;
    color: var(--soft-teal);
    font-weight: 500;
    margin-top: -2px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--charcoal-gray);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-blue);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--soft-teal);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.lang-toggle {
    background: var(--gradient-bg);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.lang-toggle:hover {
    transform: translateY(-2px);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-blue);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

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

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

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

/* Hero Section */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-bg);
    background-image: url('images/seg6_with_mask.jpg');
    background-size: cover;
    background-position: center;
    background-blend-mode: multiply;
    opacity: 0.1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(30, 58, 138, 0.85) 0%, 
        rgba(8, 145, 178, 0.75) 50%, 
        rgba(30, 58, 138, 0.9) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-logo {
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out;
}

.hero-logo-img {
    height: 120px;
    width: 120px;
    max-width: 120px;
    max-height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
    animation: float 3s ease-in-out infinite;
    flex-shrink: 0;
}

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

.hero-title {
    margin-bottom: 1.5rem;
}

.title-main {
    display: block;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    background: var(--gradient-hero);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    text-shadow: none;
}

.title-sub {
    display: block;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 400;
    color: var(--clean-white);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.hero-description {
    font-size: 1.25rem;
    color: var(--clean-white);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.4) 0%, 
        rgba(30, 58, 138, 0.3) 50%, 
        rgba(8, 145, 178, 0.3) 100%);
    padding: 1.5rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-primary, .cta-secondary {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
}

.cta-primary {
    background: var(--clean-white);
    color: var(--primary-blue);
    border-color: var(--clean-white);
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.cta-secondary {
    background: rgba(255, 255, 255, 0.25);
    color: var(--primary-blue);
    border: 2px solid var(--clean-white);
    backdrop-filter: blur(10px);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.cta-secondary:hover {
    background: var(--clean-white);
    color: var(--primary-blue);
    transform: translateY(-3px);
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    background: var(--gradient-text);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-bg);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--charcoal-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    padding: 6rem 0;
    background: var(--warm-gray);
}

.about-grid {
    display: grid;
    gap: 4rem;
    align-items: center;
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    color: var(--charcoal-gray);
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-item {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--clean-white) 0%, #f8fafc 100%);
    border-radius: 20px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    border: 1px solid rgba(8, 145, 178, 0.1);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    background: linear-gradient(135deg, var(--clean-white) 0%, var(--light-blue) 100%);
    border-color: var(--soft-teal);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    background: var(--gradient-text);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.feature-item p {
    color: var(--charcoal-gray);
    line-height: 1.6;
}

/* Services Section */
.services {
    padding: 6rem 0;
    background: var(--clean-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: linear-gradient(135deg, var(--clean-white) 0%, #f8fafc 100%);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--light-blue);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--soft-teal);
    background: linear-gradient(135deg, var(--clean-white) 0%, var(--light-blue) 100%);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    background: var(--gradient-text);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--charcoal-gray);
    line-height: 1.7;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: var(--warm-gray);
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--clean-white);
    border-radius: 15px;
    box-shadow: var(--shadow-light);
}

.contact-icon {
    font-size: 2rem;
    min-width: 60px;
    text-align: center;
}

.contact-item h4 {
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.contact-item a {
    color: var(--soft-teal);
    text-decoration: none;
    font-weight: 500;
}

.contact-item a:hover {
    text-decoration: underline;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--gradient-bg);
    color: var(--clean-white);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.social-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Footer */
.footer {
    background: var(--primary-blue);
    color: var(--clean-white);
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-text p {
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-container {
        padding: 0 1rem;
        height: 70px;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 2rem 0;
        gap: 2rem;
        transition: left 0.3s ease;
        z-index: 999;
        border-top: 1px solid rgba(30, 58, 138, 0.1);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        font-size: 1.1rem;
        padding: 1rem;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(30, 58, 138, 0.1);
    }
    
    .lang-toggle {
        margin-top: 1rem;
        padding: 0.75rem 1.5rem;
    }
    
    .logo-icon {
        height: 32px;
        width: 32px;
        max-width: 32px;
        max-height: 32px;
    }
    
    .logo-text {
        font-size: 1.25rem;
    }
    
    .logo-chinese {
        font-size: 0.7rem;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-logo-img {
        height: 80px;
        width: 80px;
        max-width: 80px;
        max-height: 80px;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-primary, .cta-secondary {
        width: 100%;
        max-width: 300px;
    }
    
    .showcase-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .showcase-image {
        transform: none;
        order: 2;
        max-height: 400px;
        max-width: 100%;
    }
    
    .xray-image {
        max-height: 400px;
        object-fit: cover;
    }
    
    .showcase-text {
        order: 1;
    }

    .about-features {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .feature-item, .service-card {
        padding: 1.5rem;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .about, .services, .contact {
        padding: 4rem 0;
    }
    
    .hero-logo-img {
        height: 60px;
        width: 60px;
        max-width: 60px;
        max-height: 60px;
    }
    
    .logo-icon {
        height: 28px;
        width: 28px;
        max-width: 28px;
        max-height: 28px;
    }
    
    .xray-image {
        max-height: 300px;
    }
    
    .showcase-image {
        max-height: 300px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-item, .service-card, .contact-item {
    animation: fadeInUp 0.6s ease-out;
}

/* Language transition effects */
.lang-transition {
    transition: opacity 0.3s ease;
}

.lang-transition.changing {
    opacity: 0.7;
}

/* Technology Showcase Section */
.showcase {
    padding: 6rem 0;
    background: var(--charcoal-gray);
    color: var(--clean-white);
    position: relative;
    overflow: hidden;
}

.showcase .section-title {
    color: var(--clean-white);
}

.showcase .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.showcase-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 2rem;
}

.showcase-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.3s ease;
    max-width: 100%;
    max-height: 500px;
    width: 100%;
}

.showcase-image:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

.xray-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 500px;
    display: block;
    object-fit: cover;
    filter: brightness(1.1) contrast(1.2);
}

.showcase-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(30, 58, 138, 0.3) 0%, 
        rgba(8, 145, 178, 0.3) 50%, 
        transparent 100%);
    pointer-events: none;
}

.tech-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--gradient-accent);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.badge-text {
    color: var(--clean-white);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.showcase-text h3 {
    font-size: 2rem;
    color: var(--clean-white);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.showcase-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.tech-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tech-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.tech-feature:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(10px);
}

.feature-bullet {
    font-size: 1.5rem;
    min-width: 40px;
    text-align: center;
}

.tech-feature span {
    color: var(--clean-white);
    font-weight: 500;
} 