/*
Theme Name: Innovatis AI
Theme URI: https://innovatis.ai
Author: Innovatis AI Team
Author URI: https://innovatis.ai
Description: Professional theme for Innovatis AI with Blue and Purple color scheme.
Version: 1.8
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: innovatis-ai
*/

:root {
    --primary-color: #2563eb;
    --secondary-color: #7c3aed;
    --accent-color: #06b6d4;
    --dark-bg: #0f172a;
    --light-text: #f8fafc;
    --gray-text: #94a3b8;
    --white: #ffffff;
    --gradient-main: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--white);
    color: #0B1B34;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    color: #0B1B34;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: #0B1B34;
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    color: var(--white);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.logo img {
    height: 75px;
    width: auto;
    display: block;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}


.btn-primary:hover {
    background-color: #0B1B34;
    color: var(--white);
    transform: none;
    box-shadow: none;
}

.btn-outline {
    background: #0B1B34;
    color: var(--white);
    padding: 0.5rem 1rem;
    border: 2px solid #0B1B34;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: none;
}

.btn-outline:hover {
    background: #0B1B34;
    color: var(--white);
}

/* Hero Section */
.hero {
    padding: 180px 0 120px;
    background-color: var(--white);
    color: #0B1B34;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    color: #0B1B34;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    color: #0B1B34;
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

/* Services Section */
.services {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--gray-text);
    margin-bottom: 4rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border: 1px solid #e2e8f0;
}

.about {
    padding: 100px 0;
    background-color: var(--white);
    color: #0B1B34;
}

.about h2 {
    color: #0B1B34;
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Contact Section */
.contact {
    padding: 100px 0;
}

.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    display: none;
}

.form-message.success {
    background-color: #dcfce7;
    color: #166534;
    display: block;
}

.form-message.error {
    background-color: #fee2e2;
    color: #991b1b;
    display: block;
}

/* Footer */
footer {
    background-color: #0f172a;
    color: var(--gray-text);
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid #1e293b;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .header-container {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        gap: 1rem;
        width: auto;
        display: block;
    }

    nav ul {
        display: flex;
        list-style: none;
        gap: 2rem;
        align-items: center;
    }


    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
    }

    .btn-outline {
        background: transparent;
        color: var(--primary-color);
        padding: 0.5rem 1rem;
        border: 2px solid var(--primary-color);
        border-radius: 50px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .btn-outline:hover {
        background: var(--primary-color);
        color: var(--white);
    }

    /* Hero Section */
    .hero {
        padding: 180px 0 120px;
        background-color: #0B1B34;
        color: var(--white);
        text-align: center;
    }

    .hero h1 {
        font-size: 3.5rem;
        color: var(--white);
        margin-bottom: 1.5rem;
    }

    .hero p {
        font-size: 1.25rem;
        color: #f1f5f9;
        max-width: 700px;
        margin: 0 auto 2.5rem;
    }

    /* Services Section */
    .services {
        padding: 100px 0;
    }

    .section-title {
        text-align: center;
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .section-subtitle {
        text-align: center;
        color: var(--gray-text);
        margin-bottom: 4rem;
    }

    .services-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }

    .service-card {
        background: var(--white);
        padding: 2rem;
        border-radius: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
        transition: transform 0.3s ease;
        border: 1px solid #e2e8f0;
    }

    .service-card:hover {
        transform: translateY(-10px);
        border-color: var(--primary-color);
    }

    .service-icon {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }

    /* About */
    .about {
        padding: 100px 0;
        background-color: var(--dark-bg);
        color: var(--white);
    }

    .about h2 {
        color: var(--white);
    }

    .about-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* Contact Section */
    .contact {
        padding: 100px 0;
    }

    .contact-form-container {
        max-width: 600px;
        margin: 0 auto;
        background: var(--white);
        padding: 3rem;
        border-radius: 20px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    }

    .form-group {
        margin-bottom: 1.5rem;
    }

    .form-group label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 500;
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: 0.75rem;
        border: 2px solid #e2e8f0;
        border-radius: 10px;
        font-family: inherit;
        transition: border-color 0.3s ease;
    }

    .form-group input:focus,
    .form-group textarea:focus {
        outline: none;
        border-color: var(--primary-color);
    }

    .form-message {
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 8px;
        display: none;
    }

    .form-message.success {
        background-color: #dcfce7;
        color: #166534;
        display: block;
    }

    .form-message.error {
        background-color: #fee2e2;
        color: #991b1b;
        display: block;
    }

    /* Footer */
    footer {
        background-color: #0f172a;
        color: var(--gray-text);
        padding: 3rem 0;
        text-align: center;
        border-top: 1px solid #1e293b;
    }

    /* Responsive */
    @media (max-width: 768px) {
        .hero h1 {
            font-size: 2.5rem;
        }

        .header-container {
            flex-direction: column;
            gap: 1rem;
        }

        nav ul {
            gap: 1rem;
            flex-wrap: wrap;
            justify-content: center;
        }
    }

    /* Language Toggling */
    body.lang-es [data-lang="en"] {
        display: none !important;
    }

    body.lang-en [data-lang="es"] {
        display: none !important;
    }

    /* Calendly Section */
    .calendly-section {
        padding: 100px 0;
        background-color: #f8fafc;
        text-align: center;
    }

    .calendly-container {
        max-width: 1000px;
        margin: 0 auto;
    }

    /* Modals */
    .modal {
        display: none;
        position: fixed;
        z-index: 2000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: auto;
        background-color: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(5px);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .modal.show {
        display: flex;
        opacity: 1;
        align-items: center;
        justify-content: center;
    }

    .modal-content {
        background-color: var(--white);
        margin: auto;
        padding: 0;
        border-radius: 20px;
        width: 90%;
        max-width: 800px;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
        position: relative;
        transform: scale(0.9);
        transition: transform 0.3s ease;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal.show .modal-content {
        transform: scale(1);
    }

    .close-modal {
        color: #aaa;
        float: right;
        font-size: 28px;
        font-weight: bold;
        position: absolute;
        right: 20px;
        top: 15px;
        cursor: pointer;
        z-index: 10;
        transition: color 0.2s;
    }

    .close-modal:hover,
    .close-modal:focus {
        color: var(--dark-bg);
        text-decoration: none;
        cursor: pointer;
    }

    .modal-header {
        padding: 2rem 2rem 1rem;
        border-bottom: 1px solid #e2e8f0;
    }

    .modal-body {
        padding: 2rem;
    }

    .modal-body h4 {
        color: var(--primary-color);
        margin-top: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .modal-body ul {
        list-style-type: disc;
        margin-left: 1.5rem;
        margin-bottom: 1rem;
        color: #475569;
    }

    .service-card {
        cursor: pointer;
    }

    .service-icon {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
        color: #0B1B34;
    }

    .service-icon i {
        color: #0B1B34;
    }
}

/* Header specific overrides */
header .btn-outline {
    color: var(--white);
    border-color: var(--white);
}

header .btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
}