/* ========================================
   YESHENG Communication - Main Stylesheet
   Dark Theme with Orange Accent
   ======================================== */

/* === CSS Variables / Design Tokens === */
:root {
    --primary: #FF9500;
    --primary-dark: #E68600;
    --primary-light: #FFAB33;
    --primary-bg: rgba(255, 149, 0, 0.1);
    --accent: #00C9A7;
    --text-primary: #FFFFFF;
    --text-secondary: #B8B8B8;
    --text-muted: #6E6E6E;
    --bg-white: #1A1A1A;
    --bg-light: #0D0D0D;
    --bg-dark: #000000;
    --bg-darker: #050505;
    --border: #2A2A2A;
    --border-light: #1F1F1F;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.6);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Microsoft YaHei', sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font);
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-dark);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

ul, ol {
    list-style: none;
}

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

/* === Navigation === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(13, 13, 13, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all var(--transition);
}

.navbar.scrolled {
    background: rgba(13, 13, 13, 0.98);
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 72px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-left: 12px;
    letter-spacing: 0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 14px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    position: relative;
}

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

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-switch {
    display: flex;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    padding: 3px;
    border: 1px solid var(--border);
}

.lang-btn {
    padding: 6px 14px;
    border: none;
    background: transparent;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 4px;
    transition: all var(--transition);
    font-family: var(--font);
}

.lang-btn.active {
    background: var(--bg-white);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition);
    transform-origin: center;
}

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

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

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

/* === Hero Section === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #0D0D0D 0%, #1A1A1A 50%, #0D0D0D 100%);
    color: #fff;
    overflow: hidden;
    padding-top: 72px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,149,0,0.15), transparent 70%);
    animation: float 8s ease-in-out infinite;
}

.hero-particle:nth-child(1) {
    width: 400px;
    height: 400px;
    top: 10%;
    right: -5%;
    animation-delay: 0s;
}

.hero-particle:nth-child(2) {
    width: 300px;
    height: 300px;
    bottom: 10%;
    left: -5%;
    background: radial-gradient(circle, rgba(255,149,0,0.1), transparent 70%);
    animation-delay: -3s;
}

.hero-particle:nth-child(3) {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 40%;
    animation-delay: -5s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

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

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255,149,0,0.1);
    border: 1px solid rgba(255,149,0,0.3);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary-light);
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    color: #fff;
}

.hero-desc {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 36px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 60px;
}

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

.btn-primary {
    background: var(--primary);
    color: #000;
    box-shadow: 0 4px 16px rgba(255,149,0,0.3);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255,149,0,0.4);
}

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

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
    display: inline;
}

.stat-suffix {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: var(--text-muted);
    animation: bounce 2s ease-in-out infinite;
}

.hero-scroll svg {
    width: 28px;
    height: 28px;
}

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

/* === Section Headers === */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-bg);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 100px;
    margin-bottom: 16px;
    letter-spacing: 0.02em;
    border: 1px solid rgba(255,149,0,0.2);
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 16px;
}

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

/* === Services Section === */
.services {
    background: var(--bg-light);
}

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

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

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

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

.service-icon {
    width: 52px;
    height: 52px;
    background: var(--primary-bg);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 20px;
    transition: all var(--transition);
}

.service-icon svg {
    width: 24px;
    height: 24px;
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: #000;
}

.service-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-capacity {
    position: relative;
}

.capacity-bar {
    display: block;
    height: 4px;
    background: var(--bg-light);
    border-radius: 2px;
    margin-bottom: 8px;
    position: relative;
    overflow: hidden;
}

.capacity-bar::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 2px;
    transition: width 1s ease;
}

.capacity-bar.animated::after {
    width: var(--bar-width);
}

.capacity-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* === About Section === */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.about-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all var(--transition);
}

.about-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-bg);
}

.about-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-bg);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 20px;
}

.about-icon svg {
    width: 22px;
    height: 22px;
}

.about-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.about-list li:last-child {
    border-bottom: none;
}

.about-list li svg {
    width: 16px;
    height: 16px;
    color: var(--primary);
    flex-shrink: 0;
}

/* === Why Us Section === */
.why-us {
    background: var(--bg-light);
}

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

.why-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all var(--transition);
    position: relative;
}

.why-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(255,149,0,0.3);
}

.why-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--border);
    line-height: 1;
    margin-bottom: 12px;
    transition: color var(--transition);
}

.why-card:hover .why-number {
    color: var(--primary);
    opacity: 0.15;
}

.why-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-bg);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 16px;
}

.why-icon svg {
    width: 20px;
    height: 20px;
}

.why-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.why-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* === Process Section === */
.process-timeline {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.process-step {
    flex: 1;
    min-width: 200px;
    max-width: 260px;
    text-align: center;
    padding: 24px 16px;
    position: relative;
}

.step-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    margin: 0 auto 16px;
    box-shadow: 0 8px 24px rgba(255,149,0,0.25);
    position: relative;
    z-index: 2;
}

.step-icon svg {
    width: 26px;
    height: 26px;
}

.step-number {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-bg);
    padding: 4px 10px;
    border-radius: 100px;
    display: inline-block;
    margin-bottom: 12px;
    border: 1px solid rgba(255,149,0,0.2);
}

.process-step h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.process-step p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.process-connector {
    display: flex;
    align-items: center;
    padding-top: 44px;
    color: var(--border);
}

.process-connector svg {
    width: 24px;
    height: 24px;
}

/* === Partners Section === */
.partners {
    background: var(--bg-white);
    overflow: hidden;
    padding: 80px 0;
}

.partners-marquee {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.partners-track {
    display: flex;
    gap: 48px;
    animation: marquee 30s linear infinite;
    width: max-content;
}

.partners-track:hover {
    animation-play-state: paused;
}

.partner-logo {
    flex-shrink: 0;
    width: 200px;
    height: 100px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    transition: all var(--transition);
}

.partner-logo:hover {
    border-color: var(--primary);
    transform: scale(1.05);
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.partners-note {
    text-align: center;
    margin-top: 32px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

/* === Locations Section === */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

.locations-centered {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.locations-centered .location-card {
    flex: 0 0 calc(25% - 18px);
    max-width: 280px;
}

.location-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    text-align: center;
    transition: all var(--transition);
    position: relative;
}

.location-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(255,149,0,0.3);
}

.location-main {
    border-color: var(--primary);
    background: linear-gradient(180deg, rgba(255,149,0,0.08) 0%, var(--bg-white) 100%);
}

.location-new {
    border-style: dashed;
    border-color: var(--primary);
}

.location-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 3px 10px;
    background: var(--primary);
    color: #000;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 100px;
}

.badge-new {
    background: var(--accent);
}

.location-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin: 0 auto 14px;
}

.location-icon svg {
    width: 22px;
    height: 22px;
}

.location-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.location-card > p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.location-detail {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* === Contact Section === */
.contact {
    background: var(--bg-darker);
    color: var(--text-primary);
}

.contact .section-tag {
    background: var(--primary-bg);
    color: var(--primary);
    border-color: rgba(255,149,0,0.2);
}

.contact .section-title {
    color: var(--text-primary);
}

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

.contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
}

.contact-icon {
    width: 44px;
    height: 44px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.contact-icon svg {
    width: 20px;
    height: 20px;
}

.contact-item h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.contact-item p,
.contact-item a {
    font-size: 0.95rem;
    color: var(--text-primary);
}

.contact-item a:hover {
    color: var(--primary);
}

.contact-certs {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.cert-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
}

.cert-badge svg {
    width: 14px;
    height: 14px;
}

/* Contact Form */
.contact-form-wrap {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
}

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

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: var(--font);
    transition: all var(--transition);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    background: var(--bg-darker);
}

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

.form-error {
    display: none;
    font-size: 0.75rem;
    color: #FF6B6B;
    margin-top: 6px;
}

.form-group.error input,
.form-group.error textarea {
    border-color: #FF6B6B;
}

.form-group.error .form-error {
    display: block;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: #000;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition);
    font-family: var(--font);
}

.btn-submit svg {
    width: 18px;
    height: 18px;
}

.btn-submit:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255,149,0,0.3);
}

/* === Footer === */
.footer {
    background: var(--bg-darker);
    color: var(--text-muted);
    padding: 64px 0 0;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border);
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.footer-logo-img {
    height: 63px;
    width: auto;
    object-fit: contain;
}

.footer-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-left: 10px;
    letter-spacing: 0.02em;
}

.footer-brand p {
    font-size: 0.875rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.footer-certs {
    display: flex;
    gap: 8px;
}

.footer-certs span {
    padding: 4px 12px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
}

.footer-links h4,
.footer-services h4,
.footer-contact h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.footer-links ul li,
.footer-services ul li {
    margin-bottom: 10px;
}

.footer-links a,
.footer-services li {
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: color var(--transition);
}

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

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.85rem;
}

.footer-contact svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--primary);
}

.footer-contact a {
    color: var(--text-muted);
}

.footer-contact a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* === Back to Top === */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: #000;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition);
    z-index: 999;
    box-shadow: 0 4px 16px rgba(255,149,0,0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

/* === Reveal Animation === */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.services-grid .reveal:nth-child(2),
.about-grid .reveal:nth-child(2),
.why-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.services-grid .reveal:nth-child(3),
.about-grid .reveal:nth-child(3),
.why-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.services-grid .reveal:nth-child(4),
.why-grid .reveal:nth-child(4) { transition-delay: 0.3s; }
.services-grid .reveal:nth-child(5),
.why-grid .reveal:nth-child(5) { transition-delay: 0.4s; }
.services-grid .reveal:nth-child(6),
.why-grid .reveal:nth-child(6) { transition-delay: 0.5s; }
.services-grid .reveal:nth-child(7) { transition-delay: 0.6s; }
.services-grid .reveal:nth-child(8) { transition-delay: 0.7s; }
.services-grid .reveal:nth-child(9) { transition-delay: 0.8s; }
.services-grid .reveal:nth-child(10) { transition-delay: 0.9s; }

/* === Responsive: Tablet === */
@media (max-width: 1024px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(13,13,13,0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all var(--transition);
        border-top: 1px solid var(--border);
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 14px 24px;
    }

    .hamburger {
        display: flex;
    }

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

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

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

    .locations-centered .location-card {
        flex: 0 0 calc(50% - 12px);
        max-width: 100%;
    }

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

    .hero h1 {
        font-size: 2.4rem;
    }

    .partners-track {
        gap: 32px;
    }

    .partner-logo {
        width: 160px;
        height: 80px;
    }
}

/* === Responsive: Mobile === */
@media (max-width: 640px) {
    .section {
        padding: 72px 0;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-desc {
        font-size: 0.95rem;
    }

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

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

    .hero-stats {
        gap: 20px;
    }

    .stat-divider {
        display: none;
    }

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

    .section-title {
        font-size: 1.6rem;
    }

    .services-grid,
    .about-grid,
    .why-grid {
        grid-template-columns: 1fr;
    }

    .locations-grid,
    .locations-centered {
        grid-template-columns: 1fr;
    }

    .locations-centered .location-card {
        flex: 0 0 100%;
        max-width: 100%;
    }

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

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

    .process-timeline {
        flex-direction: column;
        align-items: center;
    }

    .process-connector {
        padding-top: 0;
        transform: rotate(90deg);
        margin: -8px 0;
    }

    .process-step {
        max-width: 100%;
    }

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

    .back-to-top {
        bottom: 20px;
        right: 20px;
    }

    .partners-track {
        gap: 24px;
    }

    .partner-logo {
        width: 120px;
        height: 60px;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .hero-stats {
        flex-wrap: wrap;
    }

    .stat-item {
        min-width: 120px;
    }
}

/* === Print === */
@media print {
    .navbar, .back-to-top, .hero-bg, .hero-scroll, .hamburger, .lang-switch {
        display: none !important;
    }

    .hero {
        min-height: auto;
        padding: 40px 0;
        background: #fff;
        color: #000;
    }

    .section {
        padding: 30px 0;
    }
}

/* === Logo Image Styles === */
.logo-img {
    height: 72px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-left: 12px;
    letter-spacing: 0.02em;
}

.footer-logo-img {
    height: 63px;
    width: auto;
    object-fit: contain;
}

.footer-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-left: 10px;
    letter-spacing: 0.02em;
}

/* === RTL (Right-to-Left) Support for Arabic === */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .nav-links {
    flex-direction: row-reverse;
}

[dir="rtl"] .lang-switch {
    flex-direction: row-reverse;
}

[dir="rtl"] .hero-stats {
    flex-direction: row-reverse;
}

[dir="rtl"] .services-grid,
[dir="rtl"] .about-grid,
[dir="rtl"] .why-grid,
[dir="rtl"] .locations-grid,
[dir="rtl"] .footer-grid {
    direction: rtl;
}

[dir="rtl"] .process-timeline {
    direction: rtl;
}

[dir="rtl"] .process-connector svg {
    transform: scaleX(-1);
}

[dir="rtl"] .about-list li {
    flex-direction: row-reverse;
}

[dir="rtl"] .contact-item {
    flex-direction: row-reverse;
}

[dir="rtl"] .footer-contact ul li {
    flex-direction: row-reverse;
}

[dir="rtl"] .cert-badge {
    flex-direction: row-reverse;
}

[dir="rtl"] .btn-submit {
    flex-direction: row-reverse;
}

[dir="rtl"] .hero-cta {
    flex-direction: row-reverse;
}

[dir="rtl"] .footer-certs {
    flex-direction: row-reverse;
}

[dir="rtl"] .contact-certs {
    flex-direction: row-reverse;
}

[dir="rtl"] .partners-track {
    direction: ltr;
}

/* === Language Switcher Mobile === */
@media (max-width: 1024px) {
    .lang-switch {
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
    }
    
    .lang-btn {
        padding: 4px 10px;
        font-size: 0.75rem;
    }
}

@media (max-width: 640px) {
    .lang-switch {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(13, 13, 13, 0.98);
        border-top: 1px solid var(--border);
        border-radius: 0;
        padding: 12px;
        z-index: 999;
    }
    
    .lang-btn {
        flex: 1;
        text-align: center;
        min-width: 60px;
    }
    
    .nav-right {
        gap: 8px;
    }
    
    .logo-img {
        height: 90px;
    }
}
