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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    overflow-x: hidden;
}

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

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(43, 76, 140, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2B4C8C;
    text-decoration: none;
}

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

.nav-link {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
    color: #2B4C8C;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #2B4C8C, #4A90E2);
    border-radius: 1px;
}

/* Page Management */
.page {
    display: none;
    min-height: 100vh;
    padding-top: 80px;
}

.page.active {
    display: block;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #2B4C8C 0%, #4A90E2 50%, #6BB6FF 100%);
    color: white;
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Button Styles */
.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
}

.btn-primary {
    background: white;
    color: #2B4C8C;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: #f8f9ff;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: #f8faff;
}

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

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(43, 76, 140, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(43, 76, 140, 0.05);
}

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

.feature-icon {
    margin-bottom: 1.5rem;
}

.icon-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2B4C8C, #4A90E2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 2rem;
    color: white;
}

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

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Chat Section */
.chat-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.chat-header {
    text-align: center;
    margin-bottom: 2rem;
}

.chat-header h2 {
    color: #2B4C8C;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.chat-header p {
    color: #666;
    font-size: 1.1rem;
}

.chat-window {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(43, 76, 140, 0.1);
    min-height: 500px;
    max-height: 600px;
    overflow-y: auto;
    padding: 2rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(43, 76, 140, 0.1);
}

.welcome-message {
    animation: fadeInUp 0.6s ease-out;
}

.bot-message {
    display: flex;
    margin-bottom: 1.5rem;
}

.user-message {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
}

.message-content {
    max-width: 80%;
    padding: 1.5rem;
    border-radius: 20px;
    line-height: 1.6;
}

.bot-message .message-content {
    background: linear-gradient(135deg, #f8faff, #e8f2ff);
    border: 1px solid rgba(43, 76, 140, 0.1);
    color: #333;
}

.user-message .message-content {
    background: linear-gradient(135deg, #2B4C8C, #4A90E2);
    color: white;
}

.message-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.message-content li {
    margin-bottom: 0.5rem;
}

.chat-input-container {
    background: white;
    border-radius: 25px;
    box-shadow: 0 5px 20px rgba(43, 76, 140, 0.1);
    border: 1px solid rgba(43, 76, 140, 0.1);
    overflow: hidden;
}

.input-wrapper {
    display: flex;
    align-items: center;
    padding: 0.5rem;
}

#chatInput {
    flex: 1;
    border: none;
    outline: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    background: transparent;
    color: #333;
}

#chatInput::placeholder {
    color: #999;
}

.send-btn {
    background: linear-gradient(135deg, #2B4C8C, #4A90E2);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 1rem 2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
}

.send-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(43, 76, 140, 0.3);
}

.send-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.input-info {
    padding: 0.5rem 1.5rem;
    text-align: center;
    color: #999;
    font-size: 0.85rem;
    background: #f8faff;
}

.loading-spinner {
    animation: spin 1s linear infinite;
}

/* About Section */
.about-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.disclaimer-card {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border: 1px solid #f39c12;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 3rem;
    text-align: center;
}

.disclaimer-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.disclaimer-card h3 {
    color: #d68910;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.disclaimer-card p {
    color: #856404;
    line-height: 1.6;
}

.cta-section {
    background: linear-gradient(135deg, #2B4C8C, #4A90E2);
    color: white;
    padding: 4rem 2rem;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 4rem;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.how-it-works {
    margin-bottom: 4rem;
}

.how-it-works h2 {
    text-align: center;
    color: #2B4C8C;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

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

.step {
    text-align: center;
    padding: 2rem;
}

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

.step h4 {
    color: #2B4C8C;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.step p {
    color: #666;
    line-height: 1.6;
}

.key-features h2 {
    text-align: center;
    color: #2B4C8C;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.feature-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(43, 76, 140, 0.1);
    border: 1px solid rgba(43, 76, 140, 0.05);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(43, 76, 140, 0.15);
}

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

.feature-item h4 {
    color: #2B4C8C;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.feature-item p {
    color: #666;
    line-height: 1.6;
}

.what-is-medai {
    margin-bottom: 4rem;
}

.what-is-medai h2 {
    text-align: center;
    color: #333;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.brand-highlight {
    color: #2B4C8C;
}

.what-is-medai > p {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
}

.mission-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.mission-content h3 {
    color: #2B4C8C;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.mission-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.mission-highlight {
    background: linear-gradient(135deg, #2B4C8C, #4A90E2);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
}

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

.mission-highlight h4 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.mission-highlight p {
    opacity: 0.9;
}

/* Footer */
.footer {
    background: #2B4C8C;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer p {
    margin-bottom: 0.5rem;
}

.disclaimer {
    opacity: 0.8;
    font-size: 0.9rem;
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .nav {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    
    .mission-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .message-content {
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 4rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    .chat-window {
        padding: 1.5rem;
    }
    
    .input-wrapper {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    #chatInput {
        padding: 1rem;
    }
    
    .send-btn {
        width: 100%;
        border-radius: 15px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar for chat */
.chat-window::-webkit-scrollbar {
    width: 6px;
}

.chat-window::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.chat-window::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #2B4C8C, #4A90E2);
    border-radius: 3px;
}

.chat-window::-webkit-scrollbar-thumb:hover {
    background: #2B4C8C;
}
