/* Custom CSS for Experts in AI Landing Page */

/* CSS Variables for brand colors */
:root {
    --primary-bg: #FCF5ED;
    --primary-text: #000000;
    --accent-color: #2c3e50;
    --accent-light: #34495e;
    --secondary-color: #3498db;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* Global 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: var(--primary-text);
    background-color: var(--primary-bg);
    scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--primary-text);
}

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

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
}

/* Navigation */
.navbar {
    background-color: rgba(252, 245, 237, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    padding: 1rem 0;
}

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

.logo {
    height: 40px;
    width: auto;
    display: block;
}

.footer-logo {
    height: 40px;
    width: auto;
    display: block;
}

.logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    width: 100px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.2;
}

.logo-placeholder.small {
    height: 40px;
    width: 67px;
    font-size: 0.7rem;
}

.nav-link {
    font-weight: 500;
    color: var(--primary-text) !important;
    margin: 0 0.5rem;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    padding: 100px 0 280px;
    background: linear-gradient(135deg, var(--primary-bg) 0%, #f8f4ed 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::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="50" cy="50" r="0.5" fill="%23000000" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.hero-content {
    z-index: 2;
    position: relative;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

#dynamic-text {
    display: inline-block;
    min-height: 1.1em;
    min-width: 1px;
}

#dynamic-text:empty::before {
    content: '\200B'; /* Zero-width space */
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--accent-color);
    margin-bottom: 2.5rem;
    font-weight: 400;
    line-height: 1.6;
}

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

/* Hero Visual */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.ai-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2rem;
}

.grid-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.grid-item:hover {
    transform: scale(1.5);
    box-shadow: var(--box-shadow-hover);
}

.grid-item i {
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.grid-item:nth-child(1) { animation-delay: 0.1s; }
.grid-item:nth-child(2) { animation-delay: 0.2s; }
.grid-item:nth-child(3) { animation-delay: 0.3s; }
.grid-item:nth-child(4) { animation-delay: 0.4s; }
.grid-item:nth-child(5) { animation-delay: 0.5s; }
.grid-item:nth-child(6) { animation-delay: 0.6s; }

/* Services Section */
.services-section {
    padding: 100px 0;
    background: white;
}

.service-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-text);
}

.service-card p {
    color: var(--accent-color);
    line-height: 1.6;
    font-size: 1rem;
}

/* About Section */
.about-section {
    padding: 100px 0;
    background: var(--primary-bg);
}

.about-text {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

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

.feature-item span {
    font-weight: 500;
    color: var(--primary-text);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: var(--box-shadow);
    transition: all 0.4s ease;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.stat-item:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--box-shadow-hover);
    z-index: 10;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.stat-title {
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 0;
    transition: var(--transition);
}

.stat-detail {
    color: var(--accent-color);
    font-weight: 400;
    font-size: 0.9rem;
    line-height: 1.4;
    opacity: 0;
    max-height: 0;
    margin-top: 0;
    margin-bottom: 0;
    transition: all 0.4s ease;
    overflow: hidden;
}

.stat-item:hover .stat-detail {
    opacity: 1;
    max-height: 100px;
    margin-top: 1rem;
}

.stat-item:hover .stat-title {
    margin-bottom: 0.5rem;
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background: white;
}

.contact-card {
    background: var(--primary-bg);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-info h4,
.cta-section h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-text);
}

.contact-info p,
.cta-section p {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: white;
    border-radius: 10px;
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateX(5px);
}

.contact-item i {
    color: var(--secondary-color);
    font-size: 1.1rem;
    width: 20px;
}

.contact-item a {
    color: var(--primary-text);
    text-decoration: none;
    font-weight: 500;
}

.contact-item a:hover {
    color: var(--secondary-color);
}

.contact-item span {
    color: var(--primary-text);
    font-weight: 500;
}

/* Buttons */
.btn {
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-transform: none;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
    color: white;
}

.btn-outline-primary {
    border: 2px solid #667eea;
    color: #667eea;
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Footer */
.footer-section {
    background: var(--accent-color);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.8);
    margin-top: 1rem;
}

.footer-links h5 {
    color: white;
    margin-bottom: 1rem;
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 2rem 0 1rem;
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    font-size: 0.9rem;
}

/* Mobile line break - hidden by default */
.mobile-break {
    display: none;
}

/* Responsive Design */
@media (min-width: 1400px) {
    .mobile-break {
        display: inline;
    }
}

@media (max-width: 991px) {
    .mobile-break {
        display: inline;
    }
    
    .ai-grid {
        transition: opacity 0.3s ease;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0 120px;
    }
    
    .ai-grid {
        display: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    .contact-card {
        padding: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 60px 0 100px;
    }
    
    .ai-grid {
        display: none;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .contact-card {
        padding: 1.5rem;
    }
}

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

/* Loading animation for interactive elements */
.btn:active {
    transform: scale(0.98);
}

/* Focus states for accessibility */
.btn:focus,
.nav-link:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Terms and Privacy Pages */
.terms-section {
    padding: 120px 0 80px;
    background: var(--primary-bg);
    min-height: 100vh;
}

.terms-content {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-text);
    margin-bottom: 0.5rem;
    text-align: center;
}

.last-updated {
    color: var(--accent-color);
    text-align: center;
    margin-bottom: 3rem;
    font-style: italic;
}

.terms-text h2 {
    color: var(--primary-text);
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-bg);
}

.terms-text p {
    color: var(--accent-color);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.terms-text ul {
    color: var(--accent-color);
    line-height: 1.6;
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.terms-text li {
    margin-bottom: 0.5rem;
}

.terms-text a {
    color: var(--secondary-color);
    text-decoration: none;
}

.terms-text a:hover {
    text-decoration: underline;
}

.back-link {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--primary-bg);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-light);
}