/**
 * ERA PROJECT - Main Stylesheet
 * @author Octal Group LLC
 */

/* ==================== ROOT VARIABLES ==================== */
:root {
    /* Colors */
    --primary-color: #0079BF;
    --secondary-color: #5AAC44;
    --accent-color: #FF9F1A;
    --dark-color: #172B4D;
    --light-bg: #F4F5F7;
    --white: #FFFFFF;
    --danger-color: #EB5A46;
    --warning-color: #F2D600;
    --info-color: #00C2E0;
    --purple-color: #6B5CE7;

    /* Light variants */
    --primary-light: rgba(0, 121, 191, 0.1);
    --success-light: rgba(90, 172, 68, 0.1);
    --warning-light: rgba(242, 214, 0, 0.1);
    --info-light: rgba(0, 194, 224, 0.1);
    --danger-light: rgba(235, 90, 70, 0.1);
    --purple-light: rgba(107, 92, 231, 0.1);

    /* Typography */
    --font-primary: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Poppins', sans-serif;

    /* Spacing */
    --section-padding: 80px 0;

    /* Transitions */
    --transition: all 0.3s ease;
}

/* ==================== GLOBAL STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white);
    overflow-x: hidden;
    padding-top: 80px; /* Fix for fixed navbar */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

section {
    padding: var(--section-padding);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
}

/* ==================== NAVIGATION ==================== */
.navbar {
    padding: 1rem 0;
    transition: var(--transition);
    background-color: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
}

.navbar-brand img {
    transition: var(--transition);
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    color: var(--dark-color) !important;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 0.5rem;
}

.dropdown-item {
    padding: 0.7rem 1rem;
    border-radius: 6px;
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

/* ==================== BUTTONS ==================== */
.btn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #006aa8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 121, 191, 0.3);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

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

/* ==================== HERO SECTION ==================== */
.hero-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%230079bf" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,128C672,128,768,160,864,165.3C960,171,1056,149,1152,133.3C1248,117,1344,107,1392,101.3L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

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

.hero-title {
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-cta {
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.trust-badges {
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

/* Kanban Preview Animation */
.kanban-preview {
    padding: 2rem;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.kanban-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.kanban-column {
    background: var(--light-bg);
    border-radius: 8px;
    padding: 0.5rem;
    min-height: 200px;
}

.column-header {
    padding: 0.7rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.kanban-card {
    background: var(--white);
    padding: 0.8rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    cursor: pointer;
}

.kanban-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.kanban-card h6 {
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.scroll-down {
    font-size: 2rem;
    color: var(--primary-color);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ==================== PARTNERS SECTION ==================== */
.partners-section {
    background-color: var(--light-bg);
}

.partner-logo {
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.partner-logo:hover {
    transform: scale(1.05);
}

.logo-placeholder {
    opacity: 0.7;
    transition: var(--transition);
}

.logo-placeholder:hover {
    opacity: 1;
}

/* ==================== USE CASES ==================== */
.use-case-card {
    transition: var(--transition);
    border-radius: 12px;
}

.use-case-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.icon-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.bg-primary-light {
    background-color: var(--primary-light);
}

.bg-success-light {
    background-color: var(--success-light);
}

.bg-warning-light {
    background-color: var(--warning-light);
}

.bg-info-light {
    background-color: var(--info-light);
}

.bg-danger-light {
    background-color: var(--danger-light);
}

.bg-purple-light {
    background-color: var(--purple-light);
}

.text-purple {
    color: var(--purple-color);
}

/* ==================== PRICING SECTION ==================== */
.pricing-section {
    background-color: var(--light-bg);
}

.pricing-card {
    transition: var(--transition);
    border-radius: 16px;
    position: relative;
    overflow: visible;
    margin-top: 15px;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2) !important;
}

.pricing-card.recommended {
    border: 3px solid var(--primary-color);
    transform: scale(1.05);
}

.badge-recommended,
.badge-popular {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 10;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.price-tag {
    padding: 1rem 0;
}

.price-amount {
    font-size: 3rem;
    color: var(--dark-color);
}

.pricing-card.recommended .price-amount {
    color: var(--primary-color);
}

.features-list li {
    padding: 0.5rem 0;
    font-size: 0.95rem;
    transition: transform 0.2s ease;
}

.features-list li:hover {
    transform: translateX(5px);
}

.guarantee-badge {
    max-width: 400px;
}

/* ==================== TESTIMONIALS ==================== */
.testimonial-card {
    transition: var(--transition);
    border-radius: 12px;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

.testimonial-text {
    font-style: italic;
    color: #555;
    margin-bottom: 1rem;
}

.stars i {
    font-size: 1rem;
}

.video-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
}

/* ==================== FAQ ==================== */
.accordion-item {
    border-radius: 12px !important;
    overflow: hidden;
}

.accordion-button {
    font-weight: 600;
    font-size: 1.05rem;
    padding: 1.25rem 1.5rem;
}

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

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

/* ==================== FOOTER ==================== */
.footer {
    background-color: #1a1a1a;
}

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

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

.footer-links a {
    color: #b0b0b0;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.social-links a {
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-color) !important;
}

.text-light-gray {
    color: #b0b0b0;
}

/* ==================== CHATBOT ==================== */
.chatbot-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    box-shadow: 0 5px 20px rgba(0, 121, 191, 0.4);
    cursor: pointer;
    z-index: 1000;
    font-size: 1.5rem;
    transition: var(--transition);
}

.chatbot-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(0, 121, 191, 0.6);
}

.chatbot-widget {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 500px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: none;
    flex-direction: column;
}

.chatbot-widget.active {
    display: flex;
}

.chatbot-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 1rem;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-avatar {
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.btn-close-chatbot {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    font-size: 1.2rem;
}

.chatbot-body {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    background-color: var(--light-bg);
}

.chatbot-message {
    margin-bottom: 1rem;
    display: flex;
}

.chatbot-message.bot {
    justify-content: flex-start;
}

.chatbot-message.user {
    justify-content: flex-end;
}

.chatbot-message p {
    background: var(--white);
    padding: 0.8rem 1rem;
    border-radius: 12px;
    max-width: 80%;
    margin: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.chatbot-message.user p {
    background: var(--primary-color);
    color: var(--white);
}

.chatbot-footer {
    padding: 1rem;
    border-top: 1px solid #e0e0e0;
}

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

/* ==================== UTILITIES ==================== */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.shadow-custom {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
