/* Enhanced CSS for AI Startup Landing Page */
html, body {
    height: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

body {
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff;
}

.flex-grow-1 {
    flex-grow: 1;
}

/* Section spacing */
.section-spacer {
    padding: 120px 0;
}

.section-spacer-lg {
    padding: 150px 0;
}

/* Navbar Enhancements */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    color: #007bff !important;
}

.navbar-brand i {
    color: #6610f2;
}

/* Hero Section */
.hero-section {
    background-image: url('../img/bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

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

.hero-section h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section .lead {
    font-size: 1.4rem;
    margin-bottom: 40px;
    opacity: 0.95;
}

.hero-buttons .btn {
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.hero-buttons .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
}

.hero-buttons .btn:hover::before {
    width: 300px;
    height: 300px;
}

.hero-buttons .btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.hero-buttons .btn-outline-light:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.6);
}

/* Features Section */
.feature-section {
    padding: 100px 0;
    background-color: #f8f9fa;
}

.feature-section .card {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: white;
    position: relative;
    overflow: hidden;
}

.feature-section .card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(0, 123, 255, 0.03), transparent);
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    transition: transform 0.6s ease;
}

.feature-section .card:hover::before {
    transform: translateX(0) translateY(0) rotate(45deg);
}

.feature-section .card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 123, 255, 0.2);
}

.card-icon {
    text-align: center;
    padding: 30px 0 20px 0;
}

.card-icon i {
    font-size: 3rem;
    background: linear-gradient(45deg, #007bff, #6610f2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-section .card-title {
    color: #333;
    font-weight: 600;
    margin-bottom: 15px;
}

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

/* Value Proposition Section */
.value-section {
    padding: 120px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.value-section h2 {
    color: #333;
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.value-section .lead {
    color: #666;
    font-size: 1.3rem;
    margin-bottom: 30px;
}

.value-section .list-unstyled li {
    padding: 15px 0;
    font-size: 1.1rem;
    color: #555;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.value-section .list-unstyled li:last-child {
    border-bottom: none;
}

/* Animated background elements */
.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.floating-elements::before,
.floating-elements::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(0, 123, 255, 0.05);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.floating-elements::before {
    top: -150px;
    right: -150px;
    animation-delay: 0s;
}

.floating-elements::after {
    bottom: -150px;
    left: -150px;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Enterprise Dashboard Styling */
.enterprise-dashboard {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 15px;
    padding: 25px;
    backdrop-filter: blur(15px);
    max-width: 500px;
    margin: 0 auto;
}

.dashboard-header .badge {
    font-size: 0.75rem;
    padding: 6px 12px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.metric-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 20px 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.metric-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.metric-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
    line-height: 1;
}

.metric-label {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.metric-bar {
    background: rgba(255,255,255,0.1);
    height: 4px;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.metric-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s ease;
    position: relative;
}

.metric-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3));
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-20px); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(20px); opacity: 0; }
}

/* Enterprise Scale Section */
.enterprise-scale-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #6b73ff 100%);
    position: relative;
    overflow: hidden;
}

.enterprise-scale-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(120,119,198,0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%);
    z-index: 1;
}

.enterprise-scale-section .container {
    position: relative;
    z-index: 2;
}

/* Step Icons Enhancement */
.step-icon {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    animation-duration: 2s !important;
}

.step-icon:hover {
    transform: scale(1.1);
    transition: all 0.3s ease;
}

/* Animated Chat Styling */
.chat-container {
    max-width: 450px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    margin: 0 auto;
}

.chat-header {
    background: linear-gradient(135deg, #007bff, #6610f2);
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.chat-status {
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #28a745;
    border-radius: 50%;
    display: inline-block;
}

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

.message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    line-height: 1.4;
    font-size: 0.9rem;
    opacity: 0;
    animation-fill-mode: forwards;
}

.user-message {
    background: #007bff;
    color: white;
    align-self: flex-end;
    margin-left: auto;
}

.ai-message {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #e9ecef;
    align-self: flex-start;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.code-snippet {
    background: #2d3748;
    color: #68d391;
    padding: 8px 12px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    margin-top: 8px;
}

.typing-indicator {
    padding: 12px 16px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 18px;
    align-self: flex-start;
    display: flex;
    gap: 4px;
    opacity: 0;
    animation-fill-mode: forwards;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: #6c757d;
    border-radius: 50%;
    display: inline-block;
    animation: typing 1.5s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #28a745 0%, #20c997 50%, #17a2b8 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.cta-section h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-section .lead {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.95;
}

.cta-buttons .btn {
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.cta-buttons .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
}

.cta-buttons .btn:hover::before {
    width: 300px;
    height: 300px;
}

.cta-buttons .btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.cta-buttons .btn-outline-light:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.6);
}

/* Stats Section */
.stats-row {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 40px;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: white;
}

.stat-item p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 0;
}

/* Responsive Design */
/* Split-screen Login Design */
.split-auth-container {
    display: flex;
    min-height: 100vh;
}

.auth-bg-side {
    flex: 1;
    background-image: url('../img/bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.auth-brand {
    position: absolute;
    top: 40px;
    left: 40px;
    display: flex;
    align-items: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.brand-text {
    font-weight: 700;
}

.auth-content {
    text-align: center;
    max-width: 500px;
}

.features-list {
    text-align: left;
    margin-top: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.auth-form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    padding: 40px 20px;
}

.auth-form-container {
    width: 100%;
    max-width: 400px;
}

.auth-header h2 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 10px;
}

.auth-header p {
    color: #6c757d;
    font-size: 1rem;
}

.form-control-lg {
    padding: 15px 20px;
    font-size: 1rem;
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-control-lg:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1);
}

.btn-lg {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

@media (max-width: 768px) {
    .split-auth-container {
        flex-direction: column;
    }
    
    .auth-bg-side {
        min-height: 300px;
        flex: none;
    }
    
    .auth-brand {
        position: static;
        margin-bottom: 20px;
    }
    
    .features-list {
        display: none;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .hero-buttons .btn,
    .cta-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .hero-buttons .btn:last-child,
    .cta-buttons .btn:last-child {
        margin-bottom: 0;
    }
}