/* Custom CSS for LilyTech - Replicating Chat2DB Design */

:root {
    --primary-purple: #6366f1;
    --secondary-purple: #8b5cf6;
    --dark-bg: #0f0f23;
    --darker-bg: #0a0a1a;
    --gradient-bg: linear-gradient(135deg, #0f0f23 0%, #1a1a3a 50%, #2d1b69 100%);
    --text-light: #ffffff;
    --text-muted: #a1a1aa;
    --card-bg: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.1);
    --success-color: #10b981;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--gradient-bg);
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
}

/* Header Styles */
.navbar {
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light) !important;
    text-decoration: none;
}

.brand-text {
    background: linear-gradient(45deg, var(--primary-purple), var(--secondary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    transition: color 0.3s ease;
    margin: 0 0.5rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-light) !important;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-purple), var(--secondary-purple));
    border: none;
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.btn-outline-light {
    border: 1px solid var(--border-color);
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: var(--card-bg);
    border-color: var(--primary-purple);
}

.github-stars {
    background: var(--card-bg);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Hero Section */
.hero-section {
    padding: 8rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.achievement-badge {
    display: inline-flex;
    align-items: center;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    color: #fbbf24;
    font-weight: 600;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, var(--text-light), var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.hero-buttons {
    margin-bottom: 4rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 30px;
}

.hero-image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
}

.hero-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.play-button {
    display: inline-flex;
    align-items: center;
    background: var(--primary-purple);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.play-button:hover {
    background: var(--secondary-purple);
    transform: scale(1.05);
    color: white;
}

.play-button i {
    margin-right: 0.5rem;
}

/* Introduction Section */
.introduction-section {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    background: linear-gradient(45deg, var(--text-light), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.intro-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Features Section */
.features-section {
    padding: 5rem 0;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-purple);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--primary-purple), var(--secondary-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.tag {
    background: var(--primary-purple);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

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

.feature-item {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
}

.feature-item:hover {
    border-color: var(--success-color);
}

.feature-item i {
    color: var(--success-color);
    margin-right: 1rem;
    font-size: 1.2rem;
}

/* Testimonials Section */
.testimonials-section {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.testimonial-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-purple);
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    font-style: italic;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
    border: 2px solid var(--primary-purple);
}

.author-info h5 {
    color: var(--text-light);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.author-info span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Footer */
.footer {
    background: var(--darker-bg);
    border-top: 1px solid var(--border-color);
    margin-top: 0;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.3s ease;
    cursor: pointer;
}

.social-link:hover {
    background: var(--primary-purple);
    color: white;
    border-color: var(--primary-purple);
}

.footer-title {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-purple);
}

.contact-info {
    color: var(--text-muted);
    line-height: 1.6;
}

.contact-info strong {
    color: var(--text-light);
}

.footer-divider {
    border-color: var(--border-color);
    margin: 2rem 0;
}

.copyright {
    color: var(--text-muted);
    margin: 0;
}

.footer-legal-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal-link:hover {
    color: var(--primary-purple);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .navbar-nav {
        margin-top: 1rem;
    }
    
    .hero-section {
        padding: 6rem 0 3rem;
    }
}

/* Pricing Page Styles */
.pricing-hero {
    padding: 8rem 0 4rem;
    text-align: center;
}

.pricing-plans {
    padding: 3rem 0;
}

.pricing-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-purple);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.1);
}

.pricing-card.featured {
    border-color: var(--primary-purple);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.save-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(45deg, #10b981, #059669);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.plan-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.plan-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.plan-price {
    margin-bottom: 1rem;
}

.plan-price .price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-light);
}

.plan-price .period {
    color: var(--text-muted);
    font-size: 1rem;
}

.plan-trial {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.plan-buttons {
    margin-bottom: 2rem;
}

.btn-plan {
    width: 100%;
    margin-bottom: 0.5rem;
    border-radius: 25px;
    padding: 0.75rem 1rem;
    font-weight: 600;
}

.plan-features h4 {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.plan-features ul {
    list-style: none;
    padding: 0;
}

.plan-features li {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.plan-features li i {
    color: var(--success-color);
    margin-right: 0.75rem;
    font-size: 1rem;
}

.pricing-faq {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--border-color);
}

.accordion-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    margin-bottom: 1rem;
}

.accordion-button {
    background: transparent;
    color: var(--text-light);
    border: none;
    padding: 1.5rem;
    font-weight: 600;
}

.accordion-button:not(.collapsed) {
    background: var(--primary-purple);
    color: white;
}

.accordion-body {
    color: var(--text-muted);
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* Contact Page Styles */
.contact-hero {
    padding: 8rem 0 4rem;
    text-align: center;
}

.contact-form-section {
    padding: 3rem 0;
}

.contact-form-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem;
}

.form-label {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-light);
    padding: 0.75rem 1rem;
}

.form-control:focus,
.form-select:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
    color: var(--text-light);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-check-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
}

.form-check-input:checked {
    background: var(--primary-purple);
    border-color: var(--primary-purple);
}

.form-check-label {
    color: var(--text-muted);
}

.form-check-label a {
    color: var(--primary-purple);
    text-decoration: none;
}

.form-check-label a:hover {
    text-decoration: underline;
}

.contact-info-section {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--border-color);
}

.contact-info-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-purple);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--primary-purple), var(--secondary-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: white;
}

.contact-info-card h3 {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 1rem;
}

.contact-info-card p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.qualification-process {
    padding: 4rem 0;
}

.process-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 3rem;
}

.process-step {
    text-align: center;
    max-width: 200px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--primary-purple), var(--secondary-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.process-step h4 {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.process-step p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.process-arrow {
    color: var(--primary-purple);
    font-size: 1.5rem;
}

/* Features Page Styles */
.features-hero {
    padding: 8rem 0 4rem;
    text-align: center;
}

.feature-details {
    padding: 3rem 0;
}

.feature-detail-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    height: 100%;
    transition: all 0.3s ease;
}

.feature-detail-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-purple);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.1);
}

.feature-icon-large {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--primary-purple), var(--secondary-purple));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: white;
}

.feature-detail-card h3 {
    color: var(--text-light);
    font-weight: 700;
    margin-bottom: 1rem;
}

.feature-detail-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
}

.feature-list li i {
    color: var(--success-color);
    margin-right: 0.75rem;
    font-size: 1rem;
}

.platform-features {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-description {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.capability-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
}

.capability-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-purple);
}

.capability-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--primary-purple), var(--secondary-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: white;
}

.capability-card h4 {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 1rem;
}

.capability-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.technology-section {
    padding: 4rem 0;
}

.tech-features {
    margin-top: 2rem;
}

.tech-feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.tech-feature i {
    color: var(--primary-purple);
    font-size: 1.5rem;
    margin-right: 1rem;
    margin-top: 0.25rem;
}

.tech-feature h5 {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.tech-feature p {
    color: var(--text-muted);
    margin: 0;
}

.tech-image-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.tech-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
}

/* Legal Pages Styles */
.legal-hero {
    padding: 8rem 0 4rem;
    text-align: center;
}

.legal-content {
    padding: 3rem 0;
}

.legal-document {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem;
}

.legal-document h2 {
    color: var(--text-light);
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.legal-document h2:first-child {
    margin-top: 0;
}

.legal-document h3 {
    color: var(--text-light);
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.legal-document p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.legal-document ul {
    color: var(--text-muted);
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.legal-document li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.contact-details {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.contact-details p {
    margin: 0;
    color: var(--text-light);
}

/* Form Validation Styles */
.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.invalid-feedback {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Additional Responsive Styles */
@media (max-width: 768px) {
    .pricing-card {
        margin-bottom: 2rem;
    }
    
    .process-steps {
        flex-direction: column;
        gap: 1rem;
    }
    
    .process-arrow {
        transform: rotate(90deg);
    }
    
    .contact-form-card {
        padding: 2rem;
    }
    
    .legal-document {
        padding: 2rem;
    }
    
    .tech-feature {
        flex-direction: column;
        text-align: center;
    }
    
    .tech-feature i {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .contact-form-card {
        padding: 1.5rem;
    }
    
    .legal-document {
        padding: 1.5rem;
    }
    
    .plan-price .price {
        font-size: 2rem;
    }
}
