:root {
    --primary-font: 'Poppins', sans-serif;
    --bg-color: #0d1a26;
    --text-color: #e0e0e0;
    --subtitle-color: #a0a0a0;
    --accent-color-start: #007bff;
    --accent-color-end: #8a2be2;
    --input-bg-color: #1a1a1a;
    --input-border-color: #333;
    --card-bg-color: rgba(26, 26, 26, 0.5);
}

*, *::before, *::after {
    box-sizing: border-box;
}

body, html {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--primary-font);
    overflow-x: clip;
    scroll-behavior: smooth;
}

#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3rem;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--input-border-color);
}

.logo a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.logo-text-main {
    color: var(--text-color);
}

.logo-text-ia {
    background: linear-gradient(45deg, var(--accent-color-start), var(--accent-color-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-nav a {
    color: var(--subtitle-color);
    text-decoration: none;
    margin: 0 1.5rem;
    font-weight: 300;
    transition: color 0.3s, text-shadow 0.3s;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--text-color);
    text-shadow: 0 0 10px var(--accent-color-start);
}

.language-switcher {
    position: relative;
}

.btn-lang {
    background: var(--input-bg-color);
    color: var(--text-color);
    border: 1px solid var(--input-border-color);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
}

.language-switcher-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: var(--input-bg-color);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 5px;
}

.language-switcher:hover .language-switcher-content {
    display: block;
}

.language-switcher-content a {
    color: var(--subtitle-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.language-switcher-content a:hover {
    background-color: var(--input-border-color);
    color: var(--text-color);
}

.content {
    width: 100%;
    padding-top: 80px; /* Adjusted for smaller top bar */
    position: relative;
    z-index: 2;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Hero Section --- */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 100vh;
    padding: 0 2rem;
}

.main-title {
    font-size: 3.8rem;
    font-weight: 700;
    max-width: 900px;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, var(--accent-color-start), var(--accent-color-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInDown 1s ease-out;
}

.subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    max-width: 700px;
    color: var(--subtitle-color);
    margin-bottom: 3rem;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.5s;
    animation-fill-mode: backwards;
}

.cta-container {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 1s ease-out 1s;
    animation-fill-mode: backwards;
}

.btn-main, .btn-secondary {
    padding: 1rem 2.5rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
}

.btn-main {
    background: linear-gradient(45deg, var(--accent-color-start), var(--accent-color-end));
    color: white;
}

.btn-main:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-color);
    border-color: var(--input-border-color);
}

.btn-secondary:hover {
    background-color: var(--input-border-color);
    color: var(--text-color);
    transform: scale(1.05);
}

.credibility-bar {
    display: flex;
    gap: 2rem;
    margin-top: 4rem;
    color: var(--subtitle-color);
    font-size: 0.9rem;
    animation: fadeInUp 1s ease-out 1.5s;
    animation-fill-mode: backwards;
}

/* --- General Section Styling --- */
.section {
    padding: 6rem 0;
    border-bottom: 1px solid var(--input-border-color);
}

.section-title {
    font-size: 2.8rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 4rem;
    background: linear-gradient(45deg, var(--accent-color-start), var(--accent-color-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Feature Section (Used for Benefits, Process, etc.) --- */
.feature-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.feature-section.reverse {
    grid-template-columns: 1fr 1fr;
}

.feature-section.reverse .feature-image {
    order: 2;
}

.feature-text {
    text-align: left;
}

.feature-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.feature-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--subtitle-color);
    margin-bottom: 2rem;
}

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

.feature-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.feature-list .icon {
    margin-right: 1rem;
    color: var(--accent-color-start);
    font-size: 1.5rem;
}

.feature-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    transition: transform 0.4s ease;
}

.feature-image img:hover {
    transform: scale(1.05);
}

/* --- Testimonials Section --- */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--card-bg-color);
    border: 1px solid var(--input-border-color);
    padding: 2rem;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.testimonial-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0 0 1.5rem 0;
}

.testimonial-card span {
    font-weight: 600;
    color: var(--subtitle-color);
    align-self: flex-start;
}

.footer {
    text-align: center;
    padding: 4rem 2rem;
    font-size: 0.9rem;
    color: var(--subtitle-color);
}

.footer a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
}

/* --- Contact Form --- */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: 2rem auto 0;
}

.contact-form .form-group {
    display: flex;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    background-color: var(--input-bg-color);
    border: 1px solid var(--input-border-color);
    color: var(--text-color);
    border-radius: 5px;
    font-family: var(--primary-font);
    pointer-events: auto; /* Add this */
    opacity: 1; /* Add this */
}

.contact-form button {
    cursor: pointer;
    pointer-events: auto; /* Add this */
    opacity: 1; /* Add this */
}

#form-status {
    margin-top: 1rem;
    font-weight: 600;
}

/* --- Animations --- */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .feature-section, .feature-section.reverse {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .feature-section.reverse .feature-image {
        order: 0;
    }
    .feature-text {
        text-align: center;
    }
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .top-bar {
        flex-direction: column;
        padding: 1rem;
        width: 100%;
    }
    .content {
        padding-top: 180px;
    }
    .main-nav {
        margin-top: 1rem;
    }
    .main-title {
        font-size: 2.5rem; /* Smaller font for mobile */
    }
    .subtitle {
        font-size: 1.1rem;
    }
    .section-title {
        font-size: 2.2rem; /* Smaller font for mobile */
    }
    .feature-title {
        font-size: 1.8rem; /* Smaller font for mobile */
    }
    .cta-container {
        flex-direction: column;
    }
    .credibility-bar {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
}

/* --- Page Header --- */
.page-header {
    text-align: center;
    padding: 4rem 2rem;
}

/* --- Product/Feature Sections --- */
.product-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    padding: 4rem 0;
    border-bottom: 1px solid var(--input-border-color);
}

.product-feature.reverse {
    grid-template-columns: 1fr 1fr;
}

.product-feature.reverse .product-image {
    order: 2;
}

.product-info {
    text-align: left;
}

.product-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.product-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--subtitle-color);
    margin-bottom: 2rem;
}

.product-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    transition: transform 0.4s ease;
}

.product-image img:hover {
    transform: scale(1.05);
}

/* --- Blog --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 4rem 0;
}

.blog-card {
    background-color: var(--card-bg-color);
    border: 1px solid var(--input-border-color);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.card-body {
    padding: 2rem;
}

.card-category {
    font-size: 0.9rem;
    color: var(--accent-color-start);
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.card-excerpt {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--subtitle-color);
    margin-bottom: 1.5rem;
}

.btn-read-more {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.btn-read-more:hover {
    color: var(--accent-color-start);
}

/* --- About Us --- */
.about-us-values {
    padding: 4rem 0;
    text-align: center;
}

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

.value-card {
    background-color: var(--card-bg-color);
    border: 1px solid var(--input-border-color);
    padding: 2rem;
    border-radius: 15px;
}

.value-card strong {
    font-size: 1.2rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* --- Responsive Adjustments for Inner Pages --- */
@media (max-width: 992px) {
    .product-feature, .product-feature.reverse {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .product-feature.reverse .product-image {
        order: 0;
    }
    .product-info {
        text-align: center;
    }
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

.footer .subtitle {
    text-align: center;
}

/* --- Consulting Page Specifics --- */
.consulting-process {
    padding: 4rem 2rem;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.consulting-process::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--input-border-color);
    transform: translateX(-50%);
}

.consulting-step {
    position: relative;
    width: 50%;
    padding: 1rem 4rem;
    margin-bottom: 3rem;
}

.consulting-step:nth-child(odd) {
    left: 0;
    padding-right: 60px;
    text-align: right;
}

.consulting-step:nth-child(even) {
    left: 50%;
    padding-left: 60px;
    text-align: left;
}

.consulting-step-icon {
    position: absolute;
    top: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--accent-color-start), var(--accent-color-end));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    border: 4px solid var(--bg-color);
    z-index: 3;
}

.consulting-step:nth-child(odd) .consulting-step-icon {
    right: -25px;
    transform: translateX(50%);
}

.consulting-step:nth-child(even) .consulting-step-icon {
    left: -25px;
    transform: translateX(-50%);
}

.consulting-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.consulting-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--subtitle-color);
}

.consulting-cta {
    text-align: center;
    padding: 6rem 2rem;
    border-top: 1px solid var(--input-border-color);
}

.consulting-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.consulting-cta .btn-main {
    margin-top: 2rem;
}

/* Responsive adjustments for consulting page */
@media (max-width: 768px) {
    .consulting-process::before {
        left: 25px;
        transform: translateX(-50%);
    }
    .consulting-step, .consulting-step:nth-child(even) {
        width: 100%;
        left: 0;
        padding-left: 70px;
        padding-right: 2rem;
        text-align: left;
    }
    .consulting-step:nth-child(odd) {
        text-align: left;
    }
    .consulting-step:nth-child(odd) .consulting-step-icon, .consulting-step:nth-child(even) .consulting-step-icon {
        left: 25px;
        transform: translateX(-50%);
    }
}

.page-header .main-title {
    margin-left: auto;
    margin-right: auto;
}