/* ============================================
   COMMON STYLES - weitsicht.ai
   Shared across all templates
   ============================================ */

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ============================================
   LOADING SCREEN
   ============================================ */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    animation: fadeInUp 0.8s ease forwards;
}

.loader-logo {
    max-width: 200px;
    margin-bottom: 1.5rem;
}

.loader-lines {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.loader-line {
    width: 3px;
    height: 40px;
    transform: rotate(-45deg);
    animation: lineGrow 1.2s ease-in-out infinite;
}

.loader-line:nth-child(1) { animation-delay: 0s; }
.loader-line:nth-child(2) { animation-delay: 0.2s; }
.loader-line:nth-child(3) { animation-delay: 0.4s; }

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

@keyframes lineGrow {
    0%, 100% {
        transform: rotate(-45deg) scaleY(0.5);
        opacity: 0.5;
    }
    50% {
        transform: rotate(-45deg) scaleY(1);
        opacity: 1;
    }
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    position: relative;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Language Selector */
.lang-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.lang-flag {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    overflow: hidden;
}

.lang-text {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    transition: all 0.3s ease;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-container {
        padding: 0.5rem 1rem;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        padding: 1rem 0;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-links.open {
        max-height: 300px;
    }

    .nav-link {
        padding: 0.75rem 1.5rem;
        width: 100%;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

@media (max-width: 768px) {
    .hero {
        padding-top: 100px;
    }
}

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

.hero-headline {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtext {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.hero-stat {
    font-weight: 600;
}

/* ============================================
   SERVICES SECTION (What We Do)
   ============================================ */
.services-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.services-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.services-subtitle {
    font-size: 1.125rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    padding: 2rem;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.25rem;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.service-description {
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* ============================================
   WORKFLOW SECTION (What Changes)
   ============================================ */
.workflow-content {
    max-width: 900px;
    margin: 0 auto;
}

.workflow-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
}

.workflow-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .workflow-comparison {
        grid-template-columns: 1fr;
    }
}

.workflow-box {
    padding: 2rem;
    border-radius: 12px;
}

.workflow-box-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.workflow-box-text {
    font-size: 0.9375rem;
    line-height: 1.7;
}

.workflow-conclusion {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
}

.workflow-conclusion p {
    font-size: 1.125rem;
    line-height: 1.8;
}

.workflow-highlight {
    font-weight: 600;
}

/* ============================================
   TEAM SECTION (Who We Are)
   ============================================ */
.team-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto 3rem;
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}

.team-member {
    text-align: center;
}

.team-photo-wrapper {
    width: 180px;
    height: 180px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.team-photo-wrapper:hover {
    transform: scale(1.05);
}

.team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.team-bio {
    font-size: 0.9375rem;
    line-height: 1.7;
}

.team-credentials {
    text-align: center;
    font-size: 0.9375rem;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
    padding: 1.5rem;
    border-radius: 8px;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta {
    text-align: center;
    padding: 5rem 0;
}

.cta-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 2rem 0;
    text-align: center;
}

.footer-text {
    font-size: 0.875rem;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

/* ============================================
   PROBLEM STATEMENT (after hero)
   ============================================ */
.problem {
    padding: 4rem 0;
}

.problem-content {
    max-width: 800px;
    margin: 0 auto;
}

.problem-text {
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.problem-text:last-child {
    margin-bottom: 0;
}

.problem-highlight {
    font-weight: 600;
}
