/* Cachee.ai - Main Styles */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

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

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

/* Navigation */
.nav { 
    background: white; 
    padding: 1rem 0; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
}

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

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

.nav-links a { 
    text-decoration: none; 
    color: #667eea; 
    font-weight: 600; 
    transition: color 0.3s; 
}

.nav-links a:hover { 
    color: #10b981; 
}

.logo { 
    font-size: 1.5rem; 
    font-weight: bold; 
    color: #667eea; 
    text-decoration: none; 
}

.nav-cta { 
    background: #10b981 !important; 
    color: white !important; 
    padding: 10px 20px; 
    border-radius: 8px; 
    text-decoration: none; 
    font-weight: 600; 
    transition: all 0.3s; 
}

.nav-cta:hover { 
    background: #059669 !important; 
    transform: translateY(-2px); 
}

/* Hero Section */
.hero { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
    color: white; 
    padding: 120px 0; 
    text-align: center; 
}

.hero h1 { 
    font-size: 3.5rem; 
    font-weight: 700; 
    margin-bottom: 1rem; 
}

.hero p { 
    font-size: 1.25rem; 
    margin-bottom: 2rem; 
    opacity: 0.9; 
}

/* CTA Buttons */
.cta-button { 
    background: rgba(255,255,255,0.2); 
    color: white; 
    border: 2px solid white; 
    padding: 16px 32px; 
    border-radius: 8px; 
    font-size: 1.1rem; 
    font-weight: 600; 
    text-decoration: none; 
    display: inline-block; 
    margin: 10px; 
    transition: all 0.3s ease; 
    cursor: pointer;
}

.cta-button:hover { 
    background: white; 
    color: #667eea; 
    transform: translateY(-2px); 
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 2rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #1e293b;
}

.modal-body {
    padding: 2rem;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #000;
}

/* AI Conversation Styles */
.ai-conversation {
    max-height: 400px;
    overflow-y: auto;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.ai-message {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: flex-start;
}

.ai-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.ai-text {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    flex: 1;
}

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

.user-message .ai-text {
    background: #10b981;
    color: white;
    max-width: 80%;
}

.quick-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.quick-options button {
    background: #f0f9ff;
    color: #1e40af;
    border: 1px solid #3b82f6;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.quick-options button:hover {
    background: #3b82f6;
    color: white;
}

.ai-input-container {
    display: flex;
    gap: 1rem;
}

.ai-input-container input {
    flex: 1;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
}

.ai-input-container button {
    background: #10b981;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.ai-input-container button:hover {
    background: #059669;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}

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

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

/* Success Animation */
.success-check {
    display: inline-block;
    width: 20px;
    height: 20px;
    color: #10b981;
    animation: checkmark 0.5s ease-in-out;
}

@keyframes checkmark {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}