/* =============================================
   Xarema - Minimaliste Landing Page CSS
   ============================================= */

/* Root Variables */
:root {
    --primary-color: #2c3e50;
    --accent-color: #3498db;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #ecf0f1;
    --bg-white: #ffffff;
    --border-color: #bdc3c7;
    --success-color: #27ae60;
    --error-color: #e74c3c;
    --spacing-base: 1rem;
    --transition: all 0.3s ease;
}

/* =============================================
   Global Styles
   ============================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 var(--spacing-base);
}

/* =============================================
   Header & Navigation
   ============================================= */

.header {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 1.5rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.title {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--bg-white);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.5rem 0.7rem;
    border-radius: 4px;
    transition: var(--transition);
}

.lang-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.lang-btn.active {
    background-color: var(--accent-color);
}

.lang-separator {
    color: rgba(255, 255, 255, 0.5);
}

/* =============================================
   Main Content
   ============================================= */

.main {
    padding: 3rem 0;
    min-height: calc(100vh - 200px);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.section-description {
    text-align: center;
    color: var(--text-light);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* =============================================
   About Section
   ============================================= */

.about {
    margin-bottom: 3rem;
}

/* =============================================
   Applications Section
   ============================================= */

.applications {
    margin-bottom: 3rem;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.app-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.app-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
    border-color: var(--accent-color);
}

.app-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.app-card .app-description {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.app-card .app-link {
    display: inline-block;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.app-card .app-link:hover {
    border-bottom-color: var(--accent-color);
}

.app-links {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.app-link-secondary {
    color: var(--text-light);
}

.app-link-secondary:hover {
    border-bottom-color: var(--text-light);
}

.github-link {
    text-align: center;
    margin-top: 2rem;
}

.github-link a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: var(--transition);
}

.github-link a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* =============================================
   Contact Section & Form
   ============================================= */

.contact {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.contact-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--bg-white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    padding: 0.8rem;
    background-color: var(--accent-color);
    color: var(--bg-white);
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
    font-weight: 500;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* =============================================
   Footer
   ============================================= */

.footer {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-text {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.social-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.social-links a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--bg-white);
    text-decoration: underline;
}

.divider {
    color: rgba(255, 255, 255, 0.3);
}

/* =============================================
   Responsive Design
   ============================================= */

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .title {
        font-size: 1.5rem;
    }

    .logo {
        width: 40px;
        height: 40px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .apps-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .main {
        padding: 2rem 0;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .logo-section {
        gap: 0.5rem;
    }

    .logo {
        width: 35px;
        height: 35px;
    }

    .contact {
        padding: 1rem;
    }
}

/* =============================================
   Utility Classes
   ============================================= */

.loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.app-card {
    animation: fadeIn 0.5s ease-out;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

