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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background-color: #f8fafc;
}

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

/* Header */
.header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.logo h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.logo .highlight {
    color: #fbbf24;
}

.tagline {
    font-size: 0.875rem;
    opacity: 0.9;
    font-weight: 300;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav a:hover,
.nav a.active {
    color: #fbbf24;
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1e293b;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: #64748b;
}

/* Forms */
.country-form, .access-form {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.country-form h3, .access-form h3 {
    color: #1e293b;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.form-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group input {
    flex: 1;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
}

.form-group button {
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
}

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

.message {
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-weight: 500;
}

.message.error {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.message.success {
    background: #d1fae5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

/* Hero Image */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.dna-strand {
    width: 300px;
    height: 400px;
    position: relative;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6);
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.3);
}

.dna-helix {
    width: 200px;
    height: 300px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 300"><path d="M20 0 Q50 50 80 100 Q50 150 20 200 Q50 250 80 300" stroke="white" stroke-width="3" fill="none"/><path d="M80 0 Q50 50 20 100 Q50 150 80 200 Q50 250 20 300" stroke="rgba(255,255,255,0.7)" stroke-width="2" fill="none"/></svg>') no-repeat center;
    background-size: contain;
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from { transform: rotateY(0deg); }
    to { transform: rotateY(360deg); }
}

/* Features Section */
.features {
    padding: 4rem 0;
    background: white;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #1e293b;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid #e2e8f0;
    position: relative;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-card.featured {
    border: 2px solid #3b82f6;
    background: #f0f9ff;
}

.feature-card.premium {
    border: 2px solid #fbbf24;
    background: #fffbeb;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e293b;
}

.feature-card p {
    color: #64748b;
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    text-align: left;
}

.feature-list li {
    padding: 0.5rem 0;
    color: #64748b;
}

.price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #3b82f6;
    display: block;
    margin: 1rem 0;
}

.cta-button {
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
    width: 100%;
    margin-top: 1rem;
}

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

.cta-button.premium {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
}

/* Process Section */
.process {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.process h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #1e293b;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step, .process-item {
    text-align: center;
    padding: 2rem 1rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.process-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.step h3, .process-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e293b;
}

.step p, .process-item p {
    color: #64748b;
}

/* Om Oss Page Specific Styles */
.company-story {
    padding: 4rem 0;
    background: white;
}

.story-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.story-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #1e293b;
}

.story-text p {
    margin-bottom: 1.5rem;
    color: #64748b;
    font-size: 1.125rem;
    line-height: 1.7;
}

.story-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
}

.mission-values {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.mission-values h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #1e293b;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.value-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.value-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e293b;
}

.value-card p {
    color: #64748b;
}

.team {
    padding: 4rem 0;
    background: white;
}

.team h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #1e293b;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.team-member {
    text-align: center;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.member-photo {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.team-member h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.member-role {
    color: #3b82f6;
    font-weight: 600;
    margin-bottom: 1rem !important;
}

.team-member p {
    color: #64748b;
}

.certifications {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.certifications h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #1e293b;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.cert-item {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease;
}

.cert-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.cert-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cert-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e293b;
}

.cert-item p {
    color: #64748b;
}

.contact-info {
    padding: 4rem 0;
    background: white;
}

.contact-info h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #1e293b;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-item {
    text-align: center;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e293b;
}

.contact-item p {
    color: #64748b;
}

/* Resultat Page Specific Styles */
.results-preview {
    padding: 4rem 0;
    background: white;
}

.results-preview h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #1e293b;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.result-card {
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.result-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.result-icon {
    font-size: 2rem;
}

.result-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.result-content {
    padding: 1.5rem;
}

.percentage-bar {
    position: relative;
    background: #e2e8f0;
    height: 30px;
    border-radius: 15px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.percentage-fill {
    height: 100%;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    border-radius: 15px;
    transition: width 0.3s ease;
}

.percentage-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
}

.timeline {
    border-left: 3px solid #3b82f6;
    padding-left: 1rem;
}

.timeline-item {
    margin-bottom: 1.5rem;
}

.timeline-year {
    font-weight: 600;
    color: #3b82f6;
    margin-bottom: 0.5rem;
}

.timeline-event {
    color: #64748b;
}

.family-tree {
    text-align: center;
}

.tree-level {
    margin-bottom: 1rem;
}

.tree-person {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #3b82f6;
    color: white;
    border-radius: 20px;
    font-weight: 600;
    margin: 0.25rem;
}

.what-you-get {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.what-you-get h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #1e293b;
}

.feature-item {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-item .feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e293b;
}

.feature-item p {
    color: #64748b;
}

.understanding {
    padding: 4rem 0;
    background: white;
}

.understanding h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #1e293b;
}

.understanding-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.understanding-text h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    margin-top: 2rem;
    color: #1e293b;
}

.understanding-text h3:first-child {
    margin-top: 0;
}

.understanding-text p {
    color: #64748b;
    margin-bottom: 1rem;
}

.understanding-visual {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.confidence-example h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1e293b;
}

.confidence-bar {
    position: relative;
    background: #e2e8f0;
    height: 40px;
    border-radius: 20px;
    margin-bottom: 1rem;
}

.confidence-range {
    position: absolute;
    top: 0;
    height: 100%;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    border-radius: 20px;
}

.confidence-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: 600;
}

.support {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.support h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #1e293b;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.support-item {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease;
}

.support-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.support-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e293b;
}

.support-item p {
    color: #64748b;
}

/* FAQ Section */
.faq {
    padding: 4rem 0;
    background: white;
}

.faq h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #1e293b;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.faq-item {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.faq-item h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e293b;
}

.faq-item p {
    color: #64748b;
}

/* Modern Chat Container */
.chat-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    font-family: 'Inter', sans-serif;
}

/* Chat Header */
.chat-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    color: #1e293b;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.chat-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #1e3a8a, #3b82f6);
    background-size: 200% 100%;
}

.chat-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    color: #1e293b;
}

.close-chat {
    background: #64748b;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.6rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(100, 116, 139, 0.2);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-chat:hover {
    background: #475569;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.3);
}

/* Chat Messages Area */
.chat-messages {
    flex: 1;
    padding: 1.5rem 1rem;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.8);
    position: relative;
}

.chat-messages::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 20px 20px 0 0;
    pointer-events: none;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Message Bubbles */
.message-bubble {
    max-width: 85%;
    margin-bottom: 1.2rem;
    padding: 1rem 1.25rem;
    border-radius: 20px;
    word-wrap: break-word;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.3s ease-out;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.15);
}

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

.message-bubble.user {
    background: #1e3a8a;
    color: white !important;
    margin-left: auto;
    margin-right: 0;
    border-bottom-right-radius: 6px;
    box-shadow: 0 3px 15px rgba(30, 58, 138, 0.3);
    border: 1px solid #1e40af;
}

.message-bubble.user * {
    color: white !important;
}

.message-bubble.admin {
    background: #ffffff;
    color: #1e293b;
    margin-right: auto;
    margin-left: 0;
    border-bottom-left-radius: 6px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.message-bubble.admin .admin-badge {
    margin-bottom: 0.5rem;
}

.message-time {
    font-size: 0.7rem;
    opacity: 0.6;
    margin-top: 0.5rem;
    font-weight: 500;
}

.edited-indicator {
    font-style: italic;
    font-size: 0.65rem;
    opacity: 0.5;
    margin-left: 0.5rem;
}

/* Message Attachments */
.message-attachments {
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.attachment-item {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
}

.attachment-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.image-attachment {
    max-width: 200px;
    border-radius: 8px;
}

.image-attachment img {
    width: 100%;
    height: auto;
    max-height: 150px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

.file-attachment {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 100px;
    max-width: 150px;
}

.file-icon {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.file-name {
    font-size: 0.75rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.25rem;
    word-break: break-word;
    line-height: 1.2;
}

.file-size {
    font-size: 0.65rem;
    color: #6b7280;
    font-weight: 400;
}

.attachment-fallback {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.image-modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 800px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}

.image-modal-close:hover {
    opacity: 0.7;
}

#modalImage {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.image-modal-caption {
    color: white;
    text-align: center;
    margin-top: 15px;
    font-size: 16px;
    font-weight: 500;
    max-width: 100%;
    word-break: break-word;
}

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

/* Chat Input Area */
.chat-input {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    gap: 1rem;
    align-items: center;
    position: relative;
}

.chat-input::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.3), transparent);
}

.chat-input input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.chat-input input:focus {
    border-color: #3b82f6;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.15);
    transform: translateY(-1px);
}

.chat-input input::placeholder {
    color: #64748b;
    font-weight: 400;
}

.chat-input button {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.2);
    font-size: 1rem;
    min-width: 80px;
}

.chat-input button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.3);
}

.chat-input button:active {
    transform: translateY(0);
}

/* Footer */
.footer {
    background: #1e293b;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #fbbf24;
}

.footer-section p {
    color: #cbd5e1;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1rem;
    text-align: center;
    color: #9ca3af;
}

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .features-grid,
    .process-steps,
    .process-grid,
    .values-grid,
    .team-grid,
    .cert-grid,
    .contact-grid,
    .results-grid,
    .faq-grid,
    .support-grid {
        grid-template-columns: 1fr;
    }
    
    .story-content,
    .understanding-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .story-stats {
        grid-template-columns: 1fr 1fr;
    }
    
    .nav {
        display: none;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    /* Mobile Chat Optimizations */
    .chat-container {
        height: 100vh;
        height: 100dvh; /* Dynamic viewport height for mobile */
    }
    
    .chat-header {
        padding: 1rem;
        border-radius: 0;
    }
    
    .chat-header h3 {
        font-size: 1.2rem;
    }
    
    .close-chat {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
    
    .chat-messages {
        padding: 1rem 0.75rem;
    }
    
    .chat-messages::before {
        border-radius: 15px 15px 0 0;
    }
    
    .message-bubble {
        max-width: 90%;
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
        border-radius: 18px;
        margin-bottom: 1rem;
    }
    
    .message-bubble.user {
        border-bottom-right-radius: 4px;
    }
    
    .message-bubble.admin {
        border-bottom-left-radius: 4px;
    }
    
    .admin-badge {
        padding: 4px 8px;
        font-size: 10px;
        border-radius: 15px;
    }
    
    .chat-input {
        padding: 1rem 0.75rem;
        gap: 0.75rem;
        /* Ensure input stays above mobile keyboard */
        position: sticky;
        bottom: 0;
    }
    
    .chat-input input {
        padding: 0.875rem 1.25rem;
        font-size: 16px; /* Prevents zoom on iOS */
        border-radius: 22px;
    }
    
    .chat-input button {
        padding: 0.875rem 1.25rem;
        border-radius: 22px;
        font-size: 0.95rem;
        min-width: 70px;
    }
    
    /* Prevent horizontal scrolling on mobile */
    .chat-messages,
    .chat-input {
        overflow-x: hidden;
    }
    
    /* Better touch targets for mobile */
    .close-chat,
    .chat-input button {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Admin Badge Styles */
.admin-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: fit-content;
}

/* Chefen Styling */
.admin-badge.chefen {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.chefen-icon {
    font-size: 16px;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.5));
}

.chefen-name {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Sista Styling */
.admin-badge.sista {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    color: white;
    box-shadow: 0 2px 8px rgba(116, 185, 255, 0.3);
}

.sista-icon {
    font-size: 16px;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.5));
}

.sista-name {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Default Admin Styling (fallback) */
.admin-badge.default {
    background: linear-gradient(135deg, #64748b, #475569);
    color: white;
    box-shadow: 0 2px 8px rgba(100, 116, 139, 0.3);
}

.default-icon {
    font-size: 16px;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.5));
}

.default-name {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Message Content Styling */
.message-content {
    line-height: 1.5;
    margin-bottom: 4px;
}

.message-bubble.user .message-content {
    color: white;
}

.message-bubble.admin .message-content {
    color: #1e293b;
}

/* Update admin message bubble to accommodate badges */
.message-bubble.admin {
    background: white;
    color: #1e293b;
    margin-right: auto;
    margin-left: 0;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #e2e8f0;
    padding: 12px 16px;
}

.message-bubble.admin .admin-badge {
    margin-bottom: 8px;
}

/* Additional Swedish flag colors accent */
.swedish-accent {
    border-left: 4px solid #fbbf24;
    border-right: 4px solid #3b82f6;
}

/* Smooth animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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