/* ==========================================================================
   Möllendorff AI - Website Styles
   ========================================================================== */

:root {
    --color-primary: #6366F1;        /* Indigo - AI, intelligence */
    --color-secondary: #1E1B4B;      /* Deep purple-black */
    --color-accent-1: #22D3EE;       /* Cyan - tech, precision */
    --color-accent-2: #A78BFA;       /* Lavender - creativity */
    --color-accent-3: #F472B6;       /* Pink - warmth */
    --color-bg-dark: #0F0E1A;        /* Near black with purple tint */
    --color-bg-darker: #080810;
    --color-text-primary: #F8FAFC;
    --color-text-muted: #94A3B8;
    --color-text-highlight: #A5B4FC;

    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;

    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background: var(--color-bg-dark);
    color: var(--color-text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Language Toggle */
.lang-toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 0.5rem 1rem;
}

.lang-toggle-btn {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    transition: var(--transition-smooth);
}

.lang-toggle-btn:hover {
    color: var(--color-text-primary);
}

.lang-toggle-btn.active {
    color: var(--color-primary);
    background: rgba(99, 102, 241, 0.15);
}

.lang-separator {
    color: var(--color-text-muted);
    opacity: 0.3;
}

/* Background */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-bg-darker) 0%, var(--color-bg-dark) 50%, #0D0B1E 100%);
}

.shape {
    position: absolute;
    opacity: 0.08;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    filter: blur(100px);
    animation: float 25s infinite ease-in-out;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--color-primary);
    top: -150px;
    right: -150px;
    animation-duration: 30s;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: var(--color-accent-1);
    bottom: -200px;
    left: -150px;
    animation-delay: 5s;
    animation-duration: 35s;
}

.shape-3 {
    width: 400px;
    height: 400px;
    background: var(--color-accent-2);
    top: 50%;
    left: 50%;
    animation-delay: 10s;
    animation-duration: 40s;
}

.network-nodes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.node {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
    opacity: 0.4;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
    animation: pulse 3s infinite ease-in-out;
}

.node-1 { top: 15%; left: 25%; }
.node-2 { top: 35%; left: 65%; animation-delay: 0.5s; background: var(--color-accent-1); }
.node-3 { top: 55%; left: 35%; animation-delay: 1s; background: var(--color-accent-2); }
.node-4 { top: 70%; left: 70%; animation-delay: 1.5s; background: var(--color-accent-3); }
.node-5 { top: 85%; left: 50%; animation-delay: 2s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-30px, -50px) rotate(180deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.5); }
}

/* Layout */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 0;
    position: relative;
}

.hero {
    text-align: center;
}

/* Section Variants */
.section-dark {
    min-height: auto;
    padding: 5rem 0;
    background: rgba(0, 0, 0, 0.3);
}

.section-light {
    min-height: auto;
    padding: 5rem 0;
    background: rgba(255, 255, 255, 0.02);
}

.section-highlight {
    min-height: auto;
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(167, 139, 250, 0.05) 100%);
}

/* Typography */
.company-name {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    color: var(--color-text-primary);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.division {
    font-size: 1.2rem;
    color: var(--color-primary);
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.tagline {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--color-text-muted);
    margin-bottom: 3rem;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--color-primary);
    font-weight: 500;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.5s both;
}

/* Scroll Indicator */
.scroll-indicator {
    margin-top: 3rem;
    text-align: center;
    animation: fadeIn 1s ease-out 1s both;
}

.scroll-indicator span {
    display: block;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.scroll-arrow {
    font-size: 1.5rem;
    color: var(--color-primary);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

/* LLM Grid */
.llm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.llm-card {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition-smooth);
}

.llm-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.3);
}

.llm-card.primary {
    border-color: rgba(99, 102, 241, 0.4);
    background: rgba(99, 102, 241, 0.08);
}

.llm-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 0.3rem;
}

.llm-company {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 0.8rem;
}

.llm-role {
    font-size: 0.9rem;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.llm-card p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* Timmy Section */
.timmy-hero {
    text-align: center;
    margin-bottom: 3rem;
}

.timmy-tagline {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-weight: 600;
    color: var(--color-text-primary);
    font-style: italic;
    line-height: 1.5;
}

.timmy-description {
    max-width: 700px;
    margin: 0 auto 3rem;
    text-align: center;
}

.timmy-description p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

.timmy-description strong {
    color: var(--color-primary);
}

.timmy-description em {
    color: var(--color-accent-2);
}

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

.timmy-card {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(167, 139, 250, 0.2);
    text-align: center;
    transition: var(--transition-smooth);
}

.timmy-card:hover {
    border-color: var(--color-accent-2);
    transform: translateY(-3px);
}

.timmy-card-icon {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent-2);
    margin-bottom: 1rem;
    padding: 0.8rem;
    background: rgba(167, 139, 250, 0.1);
    border-radius: 12px;
    display: inline-block;
}

.timmy-card h3 {
    font-size: 1.1rem;
    color: var(--color-text-primary);
    margin-bottom: 0.8rem;
}

.timmy-card p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* Philosophy Grid */
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.philosophy-card {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition-smooth);
}

.philosophy-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
}

.philosophy-card h3 {
    font-size: 1.1rem;
    color: var(--color-accent-1);
    margin-bottom: 1rem;
}

.philosophy-card p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* Stack Grid */
.stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.stack-item {
    padding: 1.2rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stack-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.4rem;
}

.stack-value {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* Footer */
.footer {
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--color-bg-darker);
}

.footer p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin: 0.4rem 0;
}

.footer a {
    color: var(--color-primary);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Language Support */
p[lang="fr"], p[lang="pt"],
h2[lang="fr"], h2[lang="pt"],
h3[lang="fr"], h3[lang="pt"],
span[lang="fr"], span[lang="pt"],
div[lang="fr"], div[lang="pt"] {
    display: none;
}

html[lang="fr"] p[lang="fr"],
html[lang="fr"] h2[lang="fr"],
html[lang="fr"] h3[lang="fr"],
html[lang="fr"] span[lang="fr"],
html[lang="fr"] div[lang="fr"] { display: block; }
html[lang="fr"] span[lang="fr"] { display: inline; }
html[lang="fr"] p[lang="en"], html[lang="fr"] p[lang="pt"],
html[lang="fr"] h2[lang="en"], html[lang="fr"] h2[lang="pt"],
html[lang="fr"] h3[lang="en"], html[lang="fr"] h3[lang="pt"],
html[lang="fr"] span[lang="en"], html[lang="fr"] span[lang="pt"],
html[lang="fr"] div[lang="en"], html[lang="fr"] div[lang="pt"] { display: none; }

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Responsive */
@media (max-width: 768px) {
    .lang-toggle { top: 1rem; right: 1rem; }
    .container { padding: 0 1.5rem; }
    section { padding: 3rem 0; }
    .llm-grid { grid-template-columns: 1fr; }
    .timmy-grid { grid-template-columns: 1fr; }
    .philosophy-grid { grid-template-columns: 1fr; }
    .stack-grid { grid-template-columns: 1fr; }
    .shape { display: none; }
}
