:root {
    --bg-color-main: #f4f1ea;
    /* Warm light grey/beige from logo bg */
    --bg-color-card: #ffffff;
    /* Clean white for contrast */
    --text-primary: #1e1b18;
    /* Dark charcoal/brown for text */
    --text-secondary: #5c534c;
    /* Lighter brown/grey */
    --accent-primary: #dd6318;
    /* Rusty orange from logo */
    --accent-hover: #c45511;
    --accent-glow: rgba(221, 99, 24, 0.2);
    --border-subtle: rgba(30, 27, 24, 0.08);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    background-image: radial-gradient(#e0dcd3 1px, transparent 1px);
    background-size: 20px 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    animation: fadeIn 0.8s ease-out forwards;
}

/* Map Styling */
.map-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(30, 27, 24, 0.08);
    border: 6px solid var(--bg-color-card);
    aspect-ratio: 1/1;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #111;
}

.server-map {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.map-container:hover .server-map {
    transform: scale(1.03);
}

/* Text & Content */
.content-wrapper {
    max-width: 800px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: -10px;
}

.server-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border: 4px solid var(--bg-color-card);
}

.main-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text-primary);
}

.highlight {
    color: var(--accent-primary);
}

.welcome-card {
    background: var(--bg-color-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(30, 27, 24, 0.04);
    text-align: center;
    transform: translateY(20px);
    opacity: 0;
    animation: slideUp 0.8s ease-out 0.2s forwards;
}

.greeting {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.description:last-of-type {
    margin-bottom: 35px;
}

/* Buttons */
.action-area {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    text-decoration: none;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: var(--accent-primary);
    color: #fff;
    box-shadow: 0 8px 20px var(--accent-glow);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(221, 99, 24, 0.3);
}

.btn-secondary {
    background: var(--bg-color-main);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
    background: #e8e4db;
    transform: translateY(-3px);
    border-color: rgba(30, 27, 24, 0.15);
}

.btn-icon {
    transition: transform 0.3s ease;
}

.btn-primary:hover .btn-icon {
    transform: translateX(5px);
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 10px;
    opacity: 0;
    animation: slideUp 0.8s ease-out 0.4s forwards;
}

.feature-item {
    background: var(--bg-color-card);
    border: 1px solid var(--border-subtle);
    padding: 24px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(30, 27, 24, 0.05);
}

.feature-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.05));
}

.feature-item h3 {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 700;
}

.feature-item p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 30px 15px;
    }

    .map-container {
        border-radius: 16px;
        border-width: 4px;
    }

    .welcome-card {
        padding: 30px 20px;
        border-radius: 16px;
    }

    .action-area {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Language Switcher */
.lang-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 100;
}

.lang-btn {
    background: transparent;
    border: 3px solid transparent;
    border-radius: 50%;
    cursor: pointer;
    overflow: hidden;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    padding: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.lang-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lang-btn:hover {
    transform: scale(1.1);
}

.lang-btn.active {
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px var(--accent-glow);
}