/* ============================================
   NexOra - Corporate Website Stylesheet
   Design: Minimal & Elegant
   ============================================ */

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --color-primary: #0B1F3A;
    --color-primary-light: #1A3A5C;
    --color-primary-lighter: #2A5680;
    --color-accent: #FF6B2C;
    --color-accent-light: #FF8A4C;
    --color-accent-dark: #E5561A;
    --color-bg: #FFFFFF;
    --color-bg-alt: #F7F9FC;
    --color-bg-dark: #0B1F3A;
    --color-text: #1A2332;
    --color-text-light: #5A6B7E;
    --color-text-muted: #8A9BAA;
    --color-border: #E4E9F0;
    --color-white: #FFFFFF;
    --color-success: #2ECC71;
    --color-overlay: rgba(11, 31, 58, 0.85);

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    --space-2xl: 8rem;

    /* Layout */
    --container-max: 1200px;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(11, 31, 58, 0.06);
    --shadow-md: 0 8px 30px rgba(11, 31, 58, 0.08);
    --shadow-lg: 0 20px 60px rgba(11, 31, 58, 0.12);
    --shadow-accent: 0 8px 30px rgba(255, 107, 44, 0.25);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-primary);
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }

p {
    color: var(--color-text-light);
    line-height: 1.8;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ===== Layout Utilities ===== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--space-2xl) 0;
}

.section-sm {
    padding: var(--space-xl) 0;
}

.text-center { text-align: center; }
.text-white { color: var(--color-white) !important; }
.text-white-muted { color: rgba(255, 255, 255, 0.7) !important; }

/* ===== Section Headers ===== */
.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto var(--space-xl);
}

.section-header .eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
}

.section-header h2 {
    margin-bottom: var(--space-sm);
}

.section-header p {
    font-size: 1.05rem;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 14px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    font-family: var(--font-sans);
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-white);
    box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
    background: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(255, 107, 44, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--color-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline-dark {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-border);
}

.btn-outline-dark:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1rem;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 14px 0;
    box-shadow: var(--shadow-sm);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Navbar on dark hero (not scrolled) */
.navbar:not(.scrolled) .nav-link {
    color: rgba(255, 255, 255, 0.85);
}

.navbar:not(.scrolled) .nav-link:hover,
.navbar:not(.scrolled) .nav-link.active {
    color: var(--color-white);
}

.navbar:not(.scrolled) .logo-text {
    color: var(--color-white);
}

.navbar:not(.scrolled) .logo-icon {
    background: rgba(255, 255, 255, 0.15);
}

.navbar:not(.scrolled) .nav-toggle span {
    background: var(--color-white);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: var(--color-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--color-white);
    transition: var(--transition);
    flex-shrink: 0;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: -0.02em;
    transition: var(--transition);
}

.logo-text span {
    color: var(--color-accent);
}

/* Nav Links */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-light);
    position: relative;
    padding: 4px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: var(--transition);
}

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

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

.nav-cta {
    margin-left: 16px;
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: var(--transition);
}

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

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

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

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0B1F3A 0%, #15315A 50%, #0B1F3A 100%);
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 107, 44, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(42, 86, 128, 0.4) 0%, transparent 70%);
    border-radius: 50%;
}

.hero .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    max-width: 560px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(255, 107, 44, 0.15);
    border: 1px solid rgba(255, 107, 44, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-accent-light);
    margin-bottom: var(--space-md);
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.hero h1 {
    color: var(--color-white);
    margin-bottom: var(--space-md);
    line-height: 1.15;
}

.hero h1 .highlight {
    color: var(--color-accent);
    position: relative;
}

.hero p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    margin-bottom: var(--space-lg);
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat .number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-white);
    line-height: 1;
}

.hero-stat .number span {
    color: var(--color-accent);
}

.hero-stat .label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 6px;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 480px;
}

.hero-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: var(--transition);
}

.hero-card-1 {
    top: 0;
    right: 0;
    width: 320px;
    animation: float 6s ease-in-out infinite;
}

.hero-card-2 {
    bottom: 40px;
    left: 0;
    width: 280px;
    animation: float 6s ease-in-out infinite 2s;
}

.hero-card-3 {
    top: 50%;
    right: 60px;
    transform: translateY(-50%);
    width: 200px;
    animation: float 6s ease-in-out infinite 4s;
}

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

.hero-card-3 {
    animation: float-center 6s ease-in-out infinite 3s;
}

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

.hero-card .card-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 107, 44, 0.2);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.hero-card .card-icon svg {
    width: 26px;
    height: 26px;
    color: var(--color-accent);
}

.hero-card h4 {
    color: var(--color-white);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.hero-card p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0;
}

/* ===== Trust Bar ===== */
.trust-bar {
    padding: var(--space-md) 0;
    background: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.trust-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 32px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-text-light);
    font-size: 0.95rem;
    font-weight: 500;
}

.trust-item svg {
    width: 24px;
    height: 24px;
    color: var(--color-accent);
    flex-shrink: 0;
}

/* ===== Features / Services Grid ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.service-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

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

.service-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-lighter) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
}

.service-icon svg {
    width: 32px;
    height: 32px;
    color: var(--color-white);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: var(--space-sm);
}

.service-card p {
    font-size: 0.95rem;
    margin-bottom: var(--space-md);
}

.service-card .learn-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-accent);
}

.service-card .learn-more svg {
    width: 16px;
    height: 16px;
    transition: var(--transition);
}

.service-card:hover .learn-more svg {
    transform: translateX(4px);
}

/* ===== About Preview ===== */
.about-preview {
    background: var(--color-bg-alt);
}

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

.about-visual {
    position: relative;
}

.about-visual .image-block {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-lighter) 100%);
    position: relative;
    box-shadow: var(--shadow-lg);
}

.about-visual .image-block::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 60 60"><path d="M30 0L37 23H60L41 37L48 60L30 46L12 60L19 37L0 23H23Z" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: 80px;
}

.about-visual .floating-badge {
    position: absolute;
    bottom: -30px;
    right: -20px;
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 24px 32px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.about-visual .floating-badge .number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-accent);
    line-height: 1;
}

.about-visual .floating-badge .label {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-top: 4px;
}

.about-content .eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
}

.about-content h2 {
    margin-bottom: var(--space-md);
}

.about-content > p {
    margin-bottom: var(--space-md);
}

.about-features {
    display: grid;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.about-feature .check {
    width: 24px;
    height: 24px;
    background: rgba(255, 107, 44, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.about-feature .check svg {
    width: 14px;
    height: 14px;
    color: var(--color-accent);
}

.about-feature p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--color-text);
    font-weight: 500;
}

/* ===== Stats Section ===== */
.stats {
    background: var(--color-primary);
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 107, 44, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.stats .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.stat-item .stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-white);
    line-height: 1;
}

.stat-item .stat-number span {
    color: var(--color-accent);
}

.stat-item .stat-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-top: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ===== CTA Section ===== */
.cta-section {
    padding: var(--space-xl) 0;
}

.cta-box {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    border-radius: var(--radius-lg);
    padding: 64px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 107, 44, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-box::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(42, 86, 128, 0.5) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-box .container-inner {
    position: relative;
    z-index: 2;
}

.cta-box h2 {
    color: var(--color-white);
    margin-bottom: var(--space-sm);
}

.cta-box p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    margin-bottom: var(--space-lg);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Page Hero (inner pages) ===== */
.page-hero {
    background: linear-gradient(135deg, #0B1F3A 0%, #15315A 50%, #0B1F3A 100%);
    padding: 180px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 107, 44, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(42, 86, 128, 0.4) 0%, transparent 70%);
    border-radius: 50%;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero .eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
}

.page-hero h1 {
    color: var(--color-white);
    margin-bottom: var(--space-sm);
}

.page-hero p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    max-width: 620px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: var(--space-md);
    font-size: 0.9rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.6);
}

.breadcrumb a:hover {
    color: var(--color-white);
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.3);
}

.breadcrumb .current {
    color: var(--color-accent);
}

/* ===== About Page - Story ===== */
.story-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.story-content p {
    margin-bottom: var(--space-md);
}

/* ===== Mission & Vision ===== */
.mv-section {
    background: var(--color-bg-alt);
}

.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.mv-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.mv-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.mv-card .mv-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
}

.mv-card .mv-icon svg {
    width: 28px;
    height: 28px;
    color: var(--color-white);
}

.mv-card h3 {
    margin-bottom: var(--space-sm);
}

/* ===== Values Section ===== */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
}

.value-card {
    text-align: center;
    padding: 40px 28px;
    border-radius: var(--radius-lg);
    background: var(--color-bg-alt);
    transition: var(--transition);
}

.value-card:hover {
    background: var(--color-white);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.value-card .value-num {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-accent);
    letter-spacing: 0.1em;
    margin-bottom: var(--space-sm);
}

.value-card .value-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-md);
    background: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.value-card .value-icon svg {
    width: 28px;
    height: 28px;
    color: var(--color-primary);
}

.value-card h4 {
    margin-bottom: var(--space-xs);
    font-size: 1.1rem;
}

.value-card p {
    font-size: 0.9rem;
    margin: 0;
}

/* ===== Services Page - Detailed ===== */
.service-detail {
    padding: var(--space-xl) 0;
    border-bottom: 1px solid var(--color-border);
}

.service-detail:last-child {
    border-bottom: none;
}

.service-detail .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.service-detail.reverse .container {
    direction: rtl;
}

.service-detail.reverse .service-detail-content {
    direction: ltr;
}

.service-detail-content .eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
}

.service-detail-content h2 {
    margin-bottom: var(--space-md);
}

.service-detail-content > p {
    margin-bottom: var(--space-md);
}

.service-features-list {
    display: grid;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.service-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 0.95rem;
    color: var(--color-text);
}

.service-features-list li .check {
    width: 22px;
    height: 22px;
    background: rgba(255, 107, 44, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 3px;
}

.service-features-list li .check svg {
    width: 12px;
    height: 12px;
    color: var(--color-accent);
}

.service-visual {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-lighter) 100%);
    box-shadow: var(--shadow-lg);
}

.service-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 60 60"><circle cx="30" cy="30" r="2" fill="rgba(255,255,255,0.08)"/></svg>');
    background-size: 40px;
}

.service-visual .visual-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-visual .visual-icon svg {
    width: 60px;
    height: 60px;
    color: var(--color-accent);
}

.service-visual .visual-tag {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.service-visual .visual-tag span {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: var(--color-white);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Service Category Cards */
.service-cats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: var(--space-lg);
}

.service-cat-card {
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
    padding: 32px 28px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.service-cat-card:hover {
    background: var(--color-white);
    border-color: var(--color-border);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.service-cat-card .cat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: var(--space-sm);
}

.service-cat-card .cat-badge {
    background: var(--color-accent);
    color: var(--color-white);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
}

.service-cat-card h4 {
    font-size: 1.1rem;
}

.service-cat-card .cat-desc {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin: 0;
}

/* Process Section */
.process-section {
    background: var(--color-bg-alt);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}

.process-grid::before {
    content: '';
    position: absolute;
    top: 32px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: var(--color-border);
    z-index: 0;
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.process-step .step-num {
    width: 64px;
    height: 64px;
    background: var(--color-white);
    border: 2px solid var(--color-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-sm);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--color-primary);
    transition: var(--transition);
}

.process-step:hover .step-num {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-white);
    transform: scale(1.1);
}

.process-step h4 {
    font-size: 1.05rem;
    margin-bottom: var(--space-xs);
}

.process-step p {
    font-size: 0.88rem;
    margin: 0;
}

/* ===== Contact Page ===== */
.contact-main .container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    align-items: start;
}

.contact-info-list {
    display: grid;
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.contact-info-item:hover {
    background: var(--color-bg-alt);
}

.contact-info-item .ci-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-lighter) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-item .ci-icon svg {
    width: 24px;
    height: 24px;
    color: var(--color-white);
}

.contact-info-item .ci-content h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.contact-info-item .ci-content p {
    font-size: 0.9rem;
    margin: 0;
}

.contact-form-wrap {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    box-shadow: var(--shadow-md);
}

.contact-form-wrap h3 {
    margin-bottom: var(--space-sm);
}

.contact-form-wrap > p {
    margin-bottom: var(--space-lg);
    font-size: 0.95rem;
}

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

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
}

.form-group label .required {
    color: var(--color-accent);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-bg-alt);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    background: var(--color-white);
    box-shadow: 0 0 0 3px rgba(255, 107, 44, 0.1);
}

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

.form-success {
    display: none;
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    color: #1a7d4a;
    font-size: 0.95rem;
    margin-bottom: var(--space-md);
}

.form-success.show {
    display: block;
}

.form-success svg {
    width: 20px;
    height: 20px;
    display: inline;
    vertical-align: middle;
    margin-right: 8px;
}

/* Map placeholder */
.map-section {
    padding: 0;
}

.map-placeholder {
    width: 100%;
    height: 420px;
    background: var(--color-bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

.map-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40"><path d="M0 20h40M20 0v40" stroke="%23E4E9F0" stroke-width="1"/></svg>');
    opacity: 0.5;
}

.map-placeholder .map-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.map-placeholder .map-pin {
    width: 64px;
    height: 64px;
    background: var(--color-accent);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-accent);
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: rotate(-45deg) translateY(0); }
    50% { transform: rotate(-45deg) translateY(-10px); }
}

.map-placeholder .map-pin svg {
    width: 30px;
    height: 30px;
    color: var(--color-white);
    transform: rotate(45deg);
}

.map-placeholder p {
    color: var(--color-text-light);
}

/* ===== Footer ===== */
.footer {
    background: var(--color-primary);
    color: rgba(255, 255, 255, 0.7);
    padding: var(--space-xl) 0 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
    margin-bottom: var(--space-md);
}

.footer-brand .logo-text {
    color: var(--color-white);
}

.footer-brand .logo-icon {
    background: rgba(255, 255, 255, 0.1);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    max-width: 320px;
    margin-bottom: var(--space-md);
}

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

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--color-accent);
    transform: translateY(-2px);
}

.footer-social a svg {
    width: 18px;
    height: 18px;
    color: var(--color-white);
}

.footer-col h4 {
    color: var(--color-white);
    font-size: 1rem;
    margin-bottom: var(--space-md);
}

.footer-col ul {
    display: grid;
    gap: 12px;
}

.footer-col ul a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-col ul a:hover {
    color: var(--color-accent);
    padding-left: 4px;
}

.footer-bottom {
    padding: var(--space-md) 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

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

.footer-bottom .footer-links a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom .footer-links a:hover {
    color: var(--color-accent);
}

/* ===== Animations ===== */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero-visual {
        display: none;
    }

    .about-preview .container,
    .story-section .container,
    .service-detail .container {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-visual,
    .service-visual {
        max-width: 500px;
        margin: 0 auto;
    }

    .stats .container {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-grid::before {
        display: none;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 360px;
        height: 100vh;
        background: var(--color-white);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 32px 40px;
        gap: 24px;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu .nav-link {
        color: var(--color-text);
        font-size: 1.1rem;
    }

    .nav-cta {
        margin-left: 0;
        margin-top: 16px;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .navbar:not(.scrolled) .nav-toggle span {
        background: var(--color-white);
    }

    .navbar.scrolled .nav-toggle span {
        background: var(--color-primary);
    }

    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }

    .hero-stats {
        gap: 32px;
    }

    .hero-stat .number {
        font-size: 2rem;
    }

    .section {
        padding: var(--space-xl) 0;
    }

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

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

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

    .cta-box {
        padding: 48px 28px;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .stats .container {
        grid-template-columns: 1fr;
    }

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

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }
}

/* ===== Language Toggle ===== */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    padding: 4px;
    margin-left: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.lang-toggle .lang-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
    color: rgba(255, 255, 255, 0.7);
    background: transparent;
    border: none;
    font-family: var(--font-sans);
}

.lang-toggle .lang-btn.active {
    background: var(--color-accent);
    color: var(--color-white);
}

.lang-toggle .lang-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-white);
}

/* Scrolled navbar language toggle */
.navbar.scrolled .lang-toggle {
    background: var(--color-bg-alt);
    border-color: var(--color-border);
}

.navbar.scrolled .lang-toggle .lang-btn {
    color: var(--color-text-light);
}

.navbar.scrolled .lang-toggle .lang-btn.active {
    background: var(--color-accent);
    color: var(--color-white);
}

.navbar.scrolled .lang-toggle .lang-btn:hover:not(.active) {
    background: var(--color-bg-alt);
    color: var(--color-primary);
}

/* Mobile language toggle */
@media (max-width: 768px) {
    .lang-toggle {
        margin-left: 0;
        margin-top: 16px;
        background: var(--color-bg-alt);
        border-color: var(--color-border);
    }
    .lang-toggle .lang-btn {
        color: var(--color-text-light);
    }
}

/* ===== Bilingual Display Rules ===== */
html[lang="en"] [lang="zh"],
html[lang="zh"] [lang="en"] {
    display: none !important;
}

/* Ensure inline elements toggle properly */
html[lang="en"] span[lang="zh"],
html[lang="zh"] span[lang="en"],
html[lang="en"] p[lang="zh"],
html[lang="zh"] p[lang="en"],
html[lang="en"] h1[lang="zh"],
html[lang="zh"] h1[lang="en"],
html[lang="en"] h2[lang="zh"],
html[lang="zh"] h2[lang="en"],
html[lang="en"] h3[lang="zh"],
html[lang="zh"] h3[lang="en"],
html[lang="en"] h4[lang="zh"],
html[lang="zh"] h4[lang="en"],
html[lang="en"] li[lang="zh"],
html[lang="zh"] li[lang="en"],
html[lang="en"] div[lang="zh"],
html[lang="zh"] div[lang="en"],
html[lang="en"] a[lang="zh"],
html[lang="zh"] a[lang="en"],
html[lang="en"] option[lang="zh"],
html[lang="zh"] option[lang="en"],
html[lang="en"] label[lang="zh"],
html[lang="zh"] label[lang="en"] {
    display: none !important;
}
