:root {
    --bg-color: #0c0a09; /* Dark metallic/ash background */
    --text-color: #e8e3e0;
    --primary-color: #ff5722; /* Blazing forge orange */
    --secondary-color: #1c1614; /* Deep charcoal */
    --accent-color: #ffb300; /* White-hot gold */
    --font-main: 'Courier New', Courier, monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    scroll-behavior: smooth;
    /* subtle pattern for metallic texture */
    background-image: radial-gradient(rgba(255, 87, 34, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}

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

/* Header */
.header {
    background-color: rgba(12, 10, 9, 0.95);
    border-bottom: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.2);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

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

.logo-img {
    max-height: 45px;
    width: auto;
    filter: drop-shadow(0 0 5px rgba(255, 87, 34, 0.4));
    transition: filter 0.3s;
}

.logo-img:hover {
    filter: drop-shadow(0 0 12px rgba(255, 179, 0, 0.8));
}

.nav a {
    color: var(--text-color);
    text-decoration: none;
    margin: 0 15px;
    font-size: 1rem;
    font-weight: bold;
    transition: color 0.3s, text-shadow 0.3s;
    text-transform: uppercase;
}

.nav a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 8px rgba(255, 179, 0, 0.6);
}

.lang-switcher select {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 5px 10px;
    font-family: var(--font-main);
    font-weight: bold;
    cursor: pointer;
    outline: none;
    border-radius: 4px;
}

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at center, #2a1610 0%, var(--bg-color) 70%);
    padding-top: 60px;
    position: relative;
    overflow: hidden;
}

/* Ember particles effect */
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(circle, var(--primary-color) 10%, transparent 20%);
    background-size: 3px 3px;
    opacity: 0.1;
    animation: flicker 4s infinite alternate;
    pointer-events: none;
}

@keyframes flicker {
    0% { opacity: 0.05; }
    50% { opacity: 0.15; }
    100% { opacity: 0.05; }
}

.forge-glow {
    font-size: 3.5rem;
    color: var(--text-color);
    margin-bottom: 20px;
    text-transform: uppercase;
    text-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color), 0 0 40px #d84315;
    animation: pulse 2s infinite alternate;
}

@keyframes pulse {
    from { text-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color), 0 0 30px #d84315; }
    to { text-shadow: 0 0 15px var(--accent-color), 0 0 30px var(--primary-color), 0 0 50px #d84315; }
}

.subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: #c7bcae;
    font-weight: bold;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    background-color: rgba(255, 87, 34, 0.1);
    color: var(--accent-color);
    border: 2px solid var(--primary-color);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s;
    border-radius: 4px;
    box-shadow: inset 0 0 10px rgba(255, 87, 34, 0.2), 0 0 15px rgba(255, 87, 34, 0.4);
}

.btn:hover {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--accent-color);
    box-shadow: 0 0 25px var(--primary-color);
}

/* Sections */
section {
    padding: 100px 0;
    border-bottom: 1px solid #332211;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Features */
.features {
    background-color: var(--secondary-color);
    box-shadow: inset 0 10px 30px rgba(0,0,0,0.5);
}

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

.card {
    background-color: var(--bg-color);
    padding: 40px 30px;
    border: 1px solid #4a2a1a;
    border-top: 3px solid var(--primary-color);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(255, 87, 34, 0.15);
    border-color: var(--accent-color);
}

.icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-shadow: 0 0 15px rgba(255, 87, 34, 0.5);
}

.card h3 {
    color: var(--accent-color);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

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

.about-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
    color: #e8e3e0;
    line-height: 1.8;
}

/* Contacts */
.contacts {
    background-color: var(--secondary-color);
    text-align: center;
    background: linear-gradient(to bottom, var(--secondary-color), #000);
}

.email-link {
    color: var(--accent-color);
    font-size: 2rem;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px dashed var(--primary-color);
    transition: all 0.3s;
    padding-bottom: 5px;
}

.email-link:hover {
    color: #fff;
    border-bottom-color: var(--accent-color);
    text-shadow: 0 0 15px var(--accent-color);
}

/* Footer */
.footer {
    background-color: #050403;
    text-align: center;
    padding: 30px 0;
    font-size: 1rem;
    color: #887766;
    border-top: 2px solid var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 15px 0;
    }
    .nav {
        margin: 15px 0;
    }
    .forge-glow {
        font-size: 2.2rem;
    }
}