:root {
    --xinsteel-blue: #1F5FFF;
    --bg-light: #f8fafc;
    --text-dark: #0f172a;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.antialiased {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.nav-glass {
    background: #ffffff;
    border-bottom: 2px solid var(--xinsteel-blue);
    transition: all 0.3s;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 12px 0;
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
}

.group:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    padding: 10px 16px;
    display: block;
    color: #475569;
    transition: all 0.2s;
    font-size: 13px;
    text-transform: none;
    font-weight: 500;
}

.lang-option:hover {
    background: #f1f5f9;
    color: var(--xinsteel-blue);
}

/* Mobile Menu */
#mobile-menu {
    transition: transform 0.3s ease-in-out;
}

#mobile-menu.hidden {
    display: none;
}

.hamburger {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    transition: all 0.3s;
}

/* Hero Variants */
.hero-static {
    height: 80vh;
    background: linear-gradient(rgba(0,16,51,0.7), rgba(0,16,51,0.7)), url('1.jpg');
    background-size: cover;
    background-position: center;
    background-color: #001033; /* Fallback color */
    display: flex;
    align-items: center;
    color: white;
    padding: 0 10%;
}

.hero-wiki {
    height: 40vh;
    background: linear-gradient(rgba(0,16,51,0.7), rgba(0,16,51,0.7)), url('1.jpg');
    background-size: cover; background-position: center;
    display: flex; align-items: center; color: white; padding: 0 10%;
}

.hero-plates {
    height: 40vh;
    background: linear-gradient(rgba(0,16,51,0.6), rgba(0,16,51,0.6)), url('1.jpg');
    background-size: cover; background-position: center;
    display: flex; align-items: center; color: white; padding: 0 10%;
}

.hero-about {
    height: 50vh;
    background: linear-gradient(rgba(0,16,51,0.8), rgba(0,16,51,0.8)), url('1.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.photo-grid img { border-radius: 16px; width: 100%; height: 300px; object-fit: cover; border: 1px solid #e2e8f0; }
.stat-card { background: white; padding: 2.5rem; border-radius: 20px; border: 1px solid #e2e8f0; }

.spec-table { width: 100%; border-collapse: collapse; background: white; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.03); margin-bottom: 4rem; }
.spec-table th { background: #f8fafc; color: #64748b; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; padding: 1.5rem 1.25rem; text-align: left; border-bottom: 1px solid #e2e8f0; }
.spec-table td { padding: 1.5rem 1.25rem; border-bottom: 1px solid #f1f5f9; font-size: 0.85rem; color: #1e293b; }

.app-card { border-radius: 24px; overflow: hidden; height: 350px; position: relative; display: flex; align-items: flex-end; padding: 2.5rem; color: white; margin-bottom: 2rem; }
.app-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.app-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent, rgba(0,0,0,0.8)); z-index: 2; }
.hero-elec {
    position: relative;
    height: 45vh;
    background: linear-gradient(rgba(0,16,51,0.6), rgba(0,16,51,0.6)), url('2.jpg');
    background-size: cover; background-position: center;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-elec video {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.5;
}
.hero-content { position: relative; z-index: 10; padding: 0 10%; }

.advantage-card { background: white; border: 1px solid #e2e8f0; border-radius: 24px; padding: 2.5rem; transition: all 0.3s; }
.advantage-card:hover { border-color: var(--xinsteel-blue); transform: translateY(-5px); }

/* Utility Classes */
.btn-blue { background-color: var(--xinsteel-blue); color: white; transition: all 0.3s; }
.card-home { background: white; border: 1px solid #e2e8f0; border-radius: 20px; padding: 3rem; transition: all 0.3s; height: 100%; }
.card-home:hover { border-color: var(--xinsteel-blue); transform: translateY(-5px); box-shadow: 0 10px 30px rgba(31, 95, 255, 0.05); }
.section-title { position: relative; display: inline-block; padding-bottom: 12px; }
.section-title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 60px; height: 4px; background: var(--xinsteel-blue); }

/* News & Wiki Components */
.news-card { background: white; border: 1px solid #e2e8f0; border-radius: 16px; overflow: hidden; transition: all 0.3s; display: flex; flex-direction: column; }
.news-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(31, 95, 255, 0.1); border-color: var(--xinsteel-blue); }

.wiki-card { background: white; border-radius: 24px; padding: 2.5rem; transition: all 0.3s; border: 1px solid #e2e8f0; height: 100%; }
.wiki-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.05); border-color: var(--xinsteel-blue); }

.article-section { background: white; border-radius: 32px; padding: 4rem; margin-bottom: 4rem; border: 1px solid #e2e8f0; }
.article-content { line-height: 1.8; color: #334155; font-size: 1.1rem; }
.article-content h2 { font-size: 2rem; font-weight: 700; margin-bottom: 1.5rem; color: #0f172a; border-left: 4px solid var(--xinsteel-blue); padding-left: 1rem; }
.article-content p { margin-bottom: 1.5rem; }

.tag { display: inline-block; padding: 4px 12px; border-radius: 99px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1rem; }
.tag-blue { background: #eff6ff; color: #2563eb; }
.tag-green { background: #f0fdf4; color: #16a34a; }
.tag-purple { background: #faf5ff; color: #9333ea; }
