:root {
    /* French-inspired color palette with improved visibility */
    --primary-color: #FFFFFF; /* Changed from Deep French Blue to White */
    --secondary-color: #0F172A; /* Dark Navy */
    --accent-color: #DC2626; /* French Red */
    --accent-light: #EF4444; /* Lighter Red for hover states */
    --background-color: #0F172A; /* Dark Navy Background */
    --card-background: #1E293B; /* Dark Slate */
    --text-color: #FFFFFF; /* Pure White for better contrast */
    --text-light: #FFFFFF; /* White */
    --success-color: #059669; /* Emerald */
    --warning-color: #D97706; /* Amber */
    --error-color: #DC2626; /* Red */
    --border-color: #475569; /* Slate Gray for borders */
    --gradient-start: #FFFFFF; /* Changed from Deep French Blue to White */
    --gradient-end: #0F172A; /* Dark Navy */
    --overlay-color: rgba(15, 23, 42, 0.95); /* Dark Navy Overlay */
    --card-hover: #2D3A4F; /* Lighter slate for hover states */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--overlay-color);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.nav-links a {
    margin-left: 2rem;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--text-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 2rem;
    background: none;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    position: relative;
    z-index: 1;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    font-weight: 700;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    font-weight: 400;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.cta-button {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 1.1rem;
}

.cta-button.primary {
    background-color: var(--accent-color);
    color: var(--text-color);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.cta-button.primary:hover {
    background-color: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.4);
}

.cta-button.secondary {
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--text-color);
}

.cta-button.secondary:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.chat-container {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
                inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

.chat-container:target {
    animation: highlightChat 2s ease-out;
}

@keyframes highlightChat {
    0% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
                    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
                    0 0 0 0 rgba(220, 38, 38, 0.5);
    }
    50% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
                    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
                    0 0 0 20px rgba(220, 38, 38, 0);
    }
    100% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
                    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    }
}

.chat-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent,
        rgba(220, 38, 38, 0.3),
        transparent
    );
}

.chat-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" fill="rgba(255,255,255,0.05)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.chat-messages {
    min-height: 200px;
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.2);
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) transparent;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background-color: var(--accent-color);
    border-radius: 3px;
}

.chat-message {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    max-width: 85%;
    position: relative;
    animation: messageAppear 0.3s ease-out;
}

.chat-message.user {
    background: linear-gradient(145deg, var(--accent-color), var(--accent-light));
    color: white;
    margin-left: auto;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.2);
}

.chat-message.bot {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    margin-right: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-input-container {
    display: flex;
    gap: 1rem;
    position: relative;
}

.chat-input {
    flex: 1;
    padding: 1rem 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-color);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.chat-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2),
                inset 0 2px 4px rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.3);
}

.chat-input::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

.send-button {
    padding: 1rem 1.5rem;
    background: linear-gradient(145deg, var(--accent-color), var(--accent-light));
    color: var(--text-color);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
    position: relative;
    overflow: hidden;
}

.send-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.send-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.3);
}

.send-button:hover::before {
    left: 100%;
}

@keyframes messageAppear {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Add typing indicator animation */
.typing-indicator {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    width: fit-content;
    margin-bottom: 1rem;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: typing 1s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.features-section {
    padding: 6rem 2rem;
    background-color: var(--background-color);
    position: relative;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.features-section h2 {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.5rem;
    color: var(--text-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature {
    background: var(--card-background);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border-color: var(--accent-color);
    background-color: var(--card-hover);
}

.feature h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.feature p {
    color: var(--text-light);
    line-height: 1.6;
}

.plans-section {
    padding: 6rem 2rem;
    background-color: var(--background-color);
    position: relative;
}

.plans-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.plans-section h2 {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.5rem;
    color: var(--text-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.plan {
    background: var(--card-background);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 300px;
}

.plan.featured {
    transform: scale(1.05);
    border: 2px solid var(--accent-color);
    background: linear-gradient(135deg, var(--card-background) 0%, var(--card-hover) 100%);
    box-shadow: 0 8px 32px rgba(220, 38, 38, 0.2);
}

.plan:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    background-color: var(--card-hover);
}

.plan.featured:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 12px 40px rgba(220, 38, 38, 0.3);
}

.plan h3 {
    color: var(--primary-color);
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-description {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.plan-cta {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--accent-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    font-size: 1rem;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

.plan-cta:hover {
    background-color: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.3);
}

.lang-switch {
    margin-left: 2rem;
    padding: 0.5rem 1rem;
    background-color: var(--accent-color);
    color: var(--text-color);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.2);
}

.lang-switch:hover {
    background-color: var(--accent-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--secondary-color);
    color: var(--text-light);
    border-top: 1px solid var(--border-color);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav {
        padding: 1rem;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: var(--navy);
        padding: 1rem;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: 1.2rem;
        width: 100%;
        text-align: center;
        padding: 0.8rem;
    }

    .mobile-menu {
        display: block;
        background: none;
        border: none;
        color: var(--white);
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0.5rem;
    }

    .hero-content {
        padding: 2rem 1rem;
    }

    .hero h1 {
        font-size: 2rem;
        line-height: 1.3;
    }

    .hero .subtitle {
        font-size: 1.1rem;
        margin: 1rem 0;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .cta-button {
        width: 100%;
        text-align: center;
    }

    .chat-container {
        width: 100%;
        margin: 2rem 0;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1rem;
    }

    .feature {
        padding: 1.5rem;
    }

    .plans {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1rem;
    }

    .plan {
        padding: 1.5rem;
    }

    .plan.featured {
        transform: none;
    }

    .footer {
        padding: 1.5rem 1rem;
    }

    .site-logo {
        height: 2rem;
        width: 2rem;
        margin-right: 0.3rem;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero .subtitle {
        font-size: 1rem;
    }

    .feature h3 {
        font-size: 1.3rem;
    }

    .plan h3 {
        font-size: 1.3rem;
    }

    .chat-input-container {
        flex-direction: column;
        gap: 0.5rem;
    }

    .chat-input {
        width: 100%;
    }

    .send-button {
        width: 100%;
    }
}

/* Add mobile menu button styles */
.mobile-menu {
    display: none;
    position: relative;
    z-index: 1001;
}

.mobile-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 5px 0;
    transition: 0.3s;
}

.mobile-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Add smooth transition for mobile menu */
.nav-links {
    transition: all 0.3s ease-in-out;
}

/* Ensure proper spacing for mobile chat messages */
@media (max-width: 768px) {
    .chat-message {
        max-width: 85%;
        margin: 0.5rem 0;
        padding: 0.8rem;
    }

    .chat-message.user {
        margin-left: auto;
    }

    .chat-message.bot {
        margin-right: auto;
    }
}

.site-logo {
    height: 2.5rem;
    width: 2.5rem;
    vertical-align: middle;
    margin-right: 0.5rem;
    border-radius: 50%;
    background: none;
    object-fit: contain;
}

@media (max-width: 768px) {
    .site-logo {
        height: 2.5rem;
        width: 2.5rem;
        margin-right: 0.3rem;
    }
} 