/* ===== CSS Variables & Reset ===== */
:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --accent: #06b6d4;
    --accent-light: #67e8f9;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-subtle: #f1f5f9;
    --bg-card: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --gradient-1: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
    --gradient-2: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 50%, #cffafe 100%);
    --gradient-hero: linear-gradient(160deg, #eef2ff 0%, #f0fdfa 50%, #f8fafc 100%);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 40px rgba(99, 102, 241, 0.1);
    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.04);
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #0f172a;
    color: #f1f5f9;
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 2px;
}

.logo-accent {
    color: var(--accent-light);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-links a:hover {
    color: #ffffff;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: #ffffff;
    transition: var(--transition);
    border-radius: 2px;
}

/* ===== Language Switch ===== */
.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    font-family: inherit;
    backdrop-filter: blur(8px);
}

.lang-switch:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff;
    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.15);
}

.lang-globe {
    width: 16px;
    height: 16px;
    opacity: 0.8;
    transition: var(--transition);
    pointer-events: none;
}

.lang-switch:hover .lang-globe {
    opacity: 1;
    color: var(--accent-light);
}

.lang-current {
    letter-spacing: 0.5px;
    pointer-events: none;
}

.lang-arrow {
    width: 10px;
    height: 10px;
    opacity: 0.5;
    transition: var(--transition);
    pointer-events: none;
}

.lang-switch:hover .lang-arrow {
    opacity: 0.8;
    transform: translateY(1px);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: url('../images/warrior-armor.jpg') center/cover no-repeat;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.hero-content {
    text-align: center;
    z-index: 2;
    padding: 0 24px;
}

.hero-title {
    margin-bottom: 24px;
}

.title-line {
    display: block;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
}

.title-line.highlight {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: clamp(2.5rem, 6vw, 4.2rem);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    letter-spacing: 2px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

.scroll-arrow {
    width: 16px;
    height: 16px;
    border-right: 2px solid rgba(255, 255, 255, 0.5);
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    transform: rotate(45deg);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.15);
}

.btn-full {
    width: 100%;
}

/* ===== Section Styles ===== */
section {
    padding: 120px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 16px;
    color: #f1f5f9;
}

.section-desc {
    font-size: 1.1rem;
    color: #94a3b8;
}

/* ===== Services ===== */
.services {
    background: #0f172a;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.service-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-1);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-light);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.15);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 52px;
    height: 52px;
    color: var(--accent-light);
    margin-bottom: 24px;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: #f1f5f9;
}

.service-card p {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===== Gallery Section ===== */
.gallery {
    background: var(--bg-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 240px;
    gap: 16px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-wide {
    grid-column: span 2;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-tag {
    display: inline-block;
    background: var(--gradient-1);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
    width: fit-content;
}

.gallery-overlay h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.gallery-overlay p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

/* ===== AI Section ===== */
.ai-section {
    background: #1a1f35;
}

.ai-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.ai-feature {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 32px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: var(--radius-xl);
    transition: var(--transition);
}

.ai-feature:hover {
    border-color: var(--primary-light);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.12);
    background: #1e293b;
}

.ai-feature-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    min-width: 56px;
    opacity: 0.7;
}

.ai-feature-content h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: #f1f5f9;
}

.ai-feature-content p {
    color: #94a3b8;
    font-size: 0.95rem;
}

/* ===== Advantages / Stats ===== */
.advantages {
    background: #0f172a;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.stat-card {
    text-align: center;
    padding: 40px 24px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: var(--radius-xl);
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--accent);
    box-shadow: 0 10px 40px rgba(6, 182, 212, 0.12);
}

.stat-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.8rem;
    font-weight: 900;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline;
}

.stat-unit {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline;
}

.stat-label {
    margin-top: 8px;
    color: #94a3b8;
    font-size: 0.95rem;
}

/* ===== Contact ===== */
.contact {
    background: #1a1f35;
}

.contact-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 20px;
    background: #0f172a;
    border: 1.5px solid #334155;
    border-radius: var(--radius);
    color: #f1f5f9;
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #64748b;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.info-item:hover {
    border-color: var(--primary-light);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.1);
}

.info-icon {
    width: 36px;
    height: 36px;
    color: var(--accent-light);
    flex-shrink: 0;
}

.info-item h4 {
    font-size: 0.95rem;
    margin-bottom: 2px;
    color: #f1f5f9;
}

.info-item p {
    color: #94a3b8;
    font-size: 0.85rem;
}

/* ===== Footer ===== */
.footer {
    background: #0a0e1a;
    padding: 48px 0 24px;
    border-top: 1px solid #1e293b;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.footer-brand p {
    color: #64748b;
    font-size: 0.85rem;
    margin-top: 8px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: #94a3b8;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #1e293b;
}

.footer-bottom p {
    color: #64748b;
    font-size: 0.8rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid #334155;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .migration-content {
        grid-template-columns: 1fr;
    }

    .migration-benefits {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .ai-feature {
        flex-direction: column;
    }

    .ai-feature-number {
        min-width: auto;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 200px;
    }

    .gallery-large {
        grid-column: span 1;
        grid-row: span 1;
    }

    .gallery-wide {
        grid-column: span 1;
    }

    .gallery-overlay {
        opacity: 1;
    }
}

/* ===== Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
