/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    color: #e2e8f0;
    min-height: 100vh;
    overflow-x: hidden;
}

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

/* Header styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    backdrop-filter: blur(10px);
}

.logo-section {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    width: 50px;
    height: 50px;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 8px rgba(99, 102, 241, 0.3));
}

.logo-text h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 8px rgba(99, 102, 241, 0.3);
}

.logo-text p {
    font-size: 0.9rem;
    color: #94a3b8;
    font-weight: 500;
    margin-top: -5px;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav a:hover {
    color: #6366f1;
    background: rgba(99, 102, 241, 0.1);
}

/* Hero section */
.hero {
    padding: 80px 0;
    text-align: center;
}

.hero-content h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff, #e2e8f0);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.25rem;
    color: #94a3b8;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(99, 102, 241, 0.6);
}

.btn-secondary {
    background: transparent;
    color: #6366f1;
    border: 2px solid #6366f1;
}

.btn-secondary:hover {
    background: #6366f1;
    color: white;
    transform: translateY(-2px);
}

/* AI Chat Section */
.ai-chat-section {
    padding: 80px 0;
    background: rgba(15, 15, 35, 0.6);
    border-radius: 20px;
    margin: 40px 0;
    backdrop-filter: blur(10px);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ffffff;
}

.section-header p {
    font-size: 1.1rem;
    color: #94a3b8;
}

.chat-container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(30, 30, 60, 0.8);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
}

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

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

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.5);
    border-radius: 3px;
}

.message {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: rgba(51, 65, 85, 0.6);
    border-radius: 12px;
    border-left: 4px solid;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease;
}

.message:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.message.claude {
    border-left-color: #ff6b35;
}

.message.chatgpt {
    border-left-color: #10a37f;
}

.message.gemini {
    border-left-color: #4285f4;
}

.message.llama {
    border-left-color: #7c3aed;
}

.message.perplexity {
    border-left-color: #1fb6ff;
}

.ai-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.message.claude .ai-avatar {
    background: linear-gradient(135deg, #ff6b35, #ff8e53);
    color: white;
}

.message.chatgpt .ai-avatar {
    background: linear-gradient(135deg, #10a37f, #1a9c88);
    color: white;
}

.message.gemini .ai-avatar {
    background: linear-gradient(135deg, #4285f4, #34a853);
    color: white;
}

.message.llama .ai-avatar {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: white;
}

.message.perplexity .ai-avatar {
    background: linear-gradient(135deg, #1fb6ff, #03d9ff);
    color: white;
}

.message-content {
    flex: 1;
}

.ai-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: #e2e8f0;
}

.message-text {
    color: #cbd5e1;
    line-height: 1.6;
    font-size: 0.95rem;
}

.message-time {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 8px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
    color: #64748b;
    margin-top: 60px;
}

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

/* Responsive design */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 20px;
    }

    .nav {
        gap: 20px;
    }

    .hero-content h2 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary, .btn-secondary {
        width: 200px;
    }

    .section-header h3 {
        font-size: 2rem;
    }

    .chat-container {
        padding: 20px;
    }

    .message {
        padding: 15px;
    }
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

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

.modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    margin: 5% auto;
    padding: 0;
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.3);
    animation: slideIn 0.3s ease;
}

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

#modalHeader {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    padding: 20px 30px;
    border-radius: 15px 15px 0 0;
    position: relative;
}

#modalHeader h2 {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    font-weight: 600;
}

.close {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.close:hover {
    opacity: 0.7;
}

#modalBody {
    padding: 30px;
    line-height: 1.6;
}

#modalFooter {
    padding: 20px 30px;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

/* Form styles */
.join-form {
    max-width: 100%;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #e2e8f0;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 8px;
    background: rgba(99, 102, 241, 0.05);
    color: #e2e8f0;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.1);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
}

/* Modal content styles */
.learn-more-content h3 {
    color: #6366f1;
    font-family: 'Space Grotesk', sans-serif;
    margin-top: 20px;
    margin-bottom: 10px;
}

.learn-more-content h3:first-child {
    margin-top: 0;
}

.learn-more-content ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.learn-more-content li {
    margin-bottom: 8px;
}

.success-message {
    text-align: center;
}

.success-message ul {
    text-align: left;
    margin: 20px 0;
}

.contact-modal .contact-status {
    margin: 20px 0;
}

.contact-modal .status-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.contact-modal .status-item:last-child {
    border-bottom: none;
}

.contact-modal .status-icon {
    font-size: 18px;
    width: 30px;
}

/* Modal buttons */
.modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.modal-btn.btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
}

.modal-btn.btn-primary:hover {
    background: linear-gradient(135deg, #5855eb, #7c3aed);
    transform: translateY(-1px);
}

.modal-btn.btn-secondary {
    background: transparent;
    color: #6366f1;
    border: 1px solid #6366f1;
}

.modal-btn.btn-secondary:hover {
    background: rgba(99, 102, 241, 0.1);
}

/* Section styles */
.about-section,
.mission-section,
.contact-section {
    padding: 80px 0;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.8;
}

.about-content p {
    margin-bottom: 20px;
    font-size: 16px;
}

.mission-pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.pillar {
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 15px;
    padding: 30px 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.pillar:hover {
    transform: translateY(-5px);
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.4);
}

.pillar-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.pillar h4 {
    color: #6366f1;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.pillar p {
    line-height: 1.6;
    color: #cbd5e1;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.contact-item:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateX(5px);
}

.contact-icon {
    font-size: 24px;
    width: 40px;
    text-align: center;
}

/* Responsive design for modals */
@media (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    #modalHeader,
    #modalBody,
    #modalFooter {
        padding: 20px;
    }
    
    #modalFooter {
        flex-direction: column;
    }
    
    .mission-pillars {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-info {
        gap: 15px;
    }
}

/* Glowing effects */
.logo-icon svg {
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        filter: drop-shadow(0 4px 8px rgba(99, 102, 241, 0.3));
    }
    to {
        filter: drop-shadow(0 4px 15px rgba(99, 102, 241, 0.6));
    }
}