/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff6b35;
    --secondary-color: #004e89;
    --accent-color: #f7c59f;
    --text-color: #ffffff;
    --bg-color: #0a0a0a;
    --card-bg: rgba(255, 255, 255, 0.1);
    --border-color: rgba(255, 255, 255, 0.2);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.light-theme {
    --primary-color: #ff6b35;
    --secondary-color: #004e89;
    --accent-color: #f7c59f;
    --text-color: #333333;
    --bg-color: #f5f5f5;
    --card-bg: rgba(255, 255, 255, 0.9);
    --border-color: rgba(0, 0, 0, 0.1);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    background-image: url('../../images/banner.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.light-theme .navbar {
    background: rgba(255, 255, 255, 0.95);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.logo img {
    height: 160px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 20px;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--accent-color);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.discord-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

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

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

/* Language Dropdown */
.language-dropdown {
    position: relative;
}

.language-select {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    min-width: 140px;
}

.language-select:hover {
    border-color: var(--primary-color);
}

.language-select .fi {
    width: 20px;
    height: 15px;
    border-radius: 3px;
}

.language-text {
    flex: 1;
}

.dropdown-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.language-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.language-options {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #000000;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 120px;
    display: none;
    z-index: 1001;
    box-shadow: var(--shadow);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.language-dropdown.active .language-options {
    display: block;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.language-option span {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.language-option:hover {
    background: var(--primary-color);
    color: #ffffff;
}

.language-option .fi {
    width: 24px;
    height: 18px;
    border-radius: 4px;
}

.light-theme .language-options {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
}

/* Steam Connection Modal */
#steamModal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
}

#steamModal.modal-active {
    display: flex;
}

.modal {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.light-theme .modal {
    background: #ffffff;
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.25rem;
}

.steam-icon {
    width: 44px;
    height: 44px;
    background: #1b2838;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.modal-title {
    font-weight: 600;
    font-size: 15px;
    margin: 0;
    color: var(--text-color);
}

.modal-subtitle {
    font-size: 12px;
    color: var(--text-color);
    opacity: 0.7;
    margin: 0;
}

.info-box {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    border: 1px solid var(--border-color);
}

.light-theme .info-box {
    background: #f5f5f5;
    border-color: rgba(0, 0, 0, 0.1);
}

.info-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 4px;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-row span {
    color: var(--text-color);
    opacity: 0.7;
}

.info-row strong {
    color: var(--text-color);
}

.mono {
    font-family: monospace;
}

.modal-description {
    font-size: 13px;
    color: var(--text-color);
    opacity: 0.9;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.modal-buttons {
    display: flex;
    gap: 10px;
}

.btn-cancel {
    flex: 1;
    padding: 9px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-color);
    transition: all 0.2s ease;
}

.btn-cancel:hover {
    background: var(--border-color);
}

.btn-connect {
    flex: 2;
    padding: 9px;
    border: none;
    border-radius: 8px;
    background: #1b2838;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-connect:hover {
    background: #2a475e;
}

.btn-connect:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.status {
    font-size: 12px;
    text-align: center;
    color: var(--text-color);
    opacity: 0.7;
    margin: 0.75rem 0 0;
    min-height: 16px;
}

/* Theme Toggle */
.theme-toggle {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    border-color: var(--primary-color);
}

.theme-icon {
    width: 20px;
    height: 20px;
}

/* Dark theme: Sun icon with white background and black lines */
.dark-theme #sunIcon {
    background: #ffffff;
    border-radius: 50%;
    padding: 2px;
}

.dark-theme #moonIcon {
    display: none;
}

/* Light theme: Moon icon with black background and white lines */
.light-theme #moonIcon {
    background: #000000;
    border-radius: 50%;
    padding: 2px;
    display: block;
}

.light-theme #sunIcon {
    display: none;
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

/* User Info */
.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    width: 200px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-name {
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.user-steamid {
    color: var(--text-color);
    font-size: 11px;
    opacity: 0.7;
    cursor: pointer;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
}

.user-steamid:hover {
    opacity: 1;
}

.logout-btn {
    color: var(--text-color);
    text-decoration: none;
    padding: 6px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logout-btn:hover {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

.login-btn {
    color: var(--text-color);
    font-size: 12px;
    text-decoration: none;
    padding: 8px 12px;
    background: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px;
    line-height: 20px;
    white-space: nowrap;
}

.login-btn span {
    display: inline-block;
}

.login-btn:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

.steam-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: inline-block !important;
}

.sun-icon {
    display: block;
}

.moon-icon {
    display: none;
}

.dark-theme .sun-icon {
    display: none;
}

.dark-theme .moon-icon {
    display: block;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 100px 20px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    opacity: 0.05;
    z-index: -1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
    letter-spacing: -1px;
    line-height: 1.2;
    text-shadow: 3px 3px 12px rgba(0, 0, 0, 1), 0 0 30px rgba(0, 0, 0, 0.8), 0 0 50px rgba(0, 0, 0, 0.6);
}

.hero-title .rust-part {
    color: #FF6B35;
    text-shadow: 3px 3px 12px rgba(0, 0, 0, 1), 0 0 40px rgba(255, 107, 53, 0.9), 0 0 60px rgba(255, 107, 53, 0.7);
}

.hero-title .fy-part {
    color: #8B4513;
    text-shadow: 3px 3px 12px rgba(0, 0, 0, 1), 0 0 40px rgba(139, 69, 19, 0.9), 0 0 60px rgba(139, 69, 19, 0.7);
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 40px;
    opacity: 1;
    animation: fadeInUp 1s ease 0.2s backwards;
    color: #FFFFFF;
    text-shadow: 3px 3px 12px rgba(0, 0, 0, 1), 0 0 30px rgba(0, 0, 0, 0.9), 0 0 50px rgba(0, 0, 0, 0.7);
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
}

/* Section Styles */
section {
    padding: 100px 20px;
}

.section-title {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.section-description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
    font-size: 18px;
    opacity: 0.9;
}

/* About Section */
.about-section {
    background: var(--bg-color);
    padding: 260px 0 60px;
    min-height: 100vh;
}

.about-section .container {
    max-width: 900px;
}

.about-section .section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 36px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.content-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

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

.content-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
}

.content-section h3 {
    font-size: 20px;
    margin: 20px 0 15px;
    color: var(--secondary-color);
    font-weight: 600;
}

.content-section p {
    line-height: 1.8;
    margin-bottom: 15px;
    opacity: 0.9;
}

.content-section ul {
    margin: 15px 0 15px 30px;
}

.content-section li {
    margin-bottom: 10px;
    line-height: 1.6;
    opacity: 0.85;
}

.content-section li::marker {
    color: var(--primary-color);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.about-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.about-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.card-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.about-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.about-card p {
    opacity: 0.8;
}

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

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

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.service-icon {
    font-size: 56px;
    margin-bottom: 25px;
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-card p {
    opacity: 0.8;
    line-height: 1.8;
}

/* Contact Section */
.contact-section {
    background: var(--card-bg);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.submit-button {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
}

/* Footer */
footer {
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    padding: 30px 20px;
    text-align: center;
}

footer p {
    opacity: 1;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 1), 0 0 20px rgba(0, 0, 0, 0.8);
}

.footer-links {
    margin-top: 15px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    opacity: 1;
    transition: all 0.3s ease;
    font-size: 14px;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 1), 0 0 20px rgba(0, 0, 0, 0.8);
}

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

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding-top: 180px;
    }

    .navbar .container {
        flex-direction: column;
        gap: 15px;
    }

    .logo img {
        height: 100px;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .nav-menu a {
        font-size: 18px;
    }

    .language-select {
        opacity: 1;
    }

    .language-options {
        opacity: 1;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .section-title {
        font-size: 28px;
    }

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

    .nav-controls {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 16px;
    }

    .nav-menu {
        flex-direction: column;
        align-items: center;
    }

    .nav-menu a {
        font-size: 16px;
    }

    .language-text {
        font-size: 16px;
    }

    .language-select {
        opacity: 1;
    }

    .language-options {
        opacity: 1;
    }

    .logo img {
        height: 80px;
    }
}
