/* Variables */
:root {
    /* Colors from logo - blue gradient and dark gray */
    --primary-color: #2376cb;
    --primary-light: #4e9fef;
    --primary-dark: #1a5ea6;
    --secondary-color: #4d4d4d;
    --secondary-light: #686868;
    --secondary-dark: #303030;
    
    /* Light mode variables */
    --light-bg: #f8f9fa;
    --light-bg-secondary: #e9ecef;
    --light-text: #343a40;
    --light-text-secondary: #6c757d;
    --light-border: #dee2e6;
    
    /* Dark mode variables */
    --dark-bg: #212529;
    --dark-bg-secondary: #343a40;
    --dark-text: #f8f9fa;
    --dark-text-secondary: #ced4da;
    --dark-border: #495057;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', 'Montserrat', sans-serif;
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

/* Light Mode (default) */
body.light-mode {
    background-color: var(--light-bg);
    color: var(--light-text);
}

body.light-mode header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body.light-mode .service-card,
body.light-mode .faq-item,
body.light-mode .stat-item,
body.light-mode .contact-form,
body.light-mode .contact-info {
    background-color: white;
    border: 1px solid var(--light-border);
}

body.light-mode .section-subheading {
    color: var(--secondary-color);
}

body.light-mode footer {
    background-color: var(--light-bg-secondary);
    color: var(--light-text);
}

/* Dark Mode */
body.dark-mode {
    background-color: var(--dark-bg);
    color: var(--dark-text);
}

body.dark-mode header {
    background-color: var(--dark-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

body.dark-mode .service-card,
body.dark-mode .faq-item,
body.dark-mode .stat-item,
body.dark-mode .contact-form,
body.dark-mode .contact-info {
    background-color: var(--dark-bg-secondary);
    border: 1px solid var(--dark-border);
}

body.dark-mode .section-subheading {
    color: var(--secondary-light);
}

body.dark-mode footer {
    background-color: var(--dark-bg-secondary);
    color: var(--dark-text);
}

body.dark-mode input, 
body.dark-mode textarea {
    background-color: var(--dark-bg);
    color: var(--dark-text);
    border: 1px solid var(--dark-border);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header - Now horizontal with logo on left */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
    transition: background-color 0.3s;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: inherit;
    font-weight: 600;
    position: relative;
    transition: color 0.3s;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li a.active {
    color: var(--primary-color);
}

nav ul li a.active::after {
    width: 100%;
}

.actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.theme-toggle {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 20px;
    padding: 5px;
}

body.light-mode .fa-sun {
    display: none;
}

body.light-mode .fa-moon {
    display: inline-block;
}

body.dark-mode .fa-sun {
    display: inline-block;
}

body.dark-mode .fa-moon {
    display: none;
}

.language-toggle {
    background: none;
    border: 1px solid currentColor;
    color: inherit;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s, color 0.3s;
}

.language-toggle:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn {
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

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

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

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
    border: none;
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
}

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

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

/* Hero Section - Enhanced with slider */
.hero {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><polygon fill="rgba(255,255,255,0.05)" points="0,0 100,0 100,60 0,100" /></svg>');
    background-size: cover;
    animation: pulse-bg 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    top: -150px;
    right: 10%;
    animation: float 15s ease-in-out infinite;
}

@keyframes pulse-bg {
    0% { opacity: 0.3; }
    50% { opacity: 0.5; }
    100% { opacity: 0.3; }
}

@keyframes float {
    0% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(30px) translateX(15px); }
    50% { transform: translateY(10px) translateX(-15px); }
    75% { transform: translateY(-20px) translateX(10px); }
    100% { transform: translateY(0) translateX(0); }
}

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

/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    display: none;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    position: relative;
}

.hero-slide.active {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    opacity: 1;
}

.slider-controls {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.slider-dot.active {
    background-color: white;
    transform: scale(1.2);
}

.hero-content {
    max-width: 600px;
}

.subtitle {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1rem;
}

.title {
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 30px;
    font-weight: 800;
}

/* Animating the highlight in the title */
.hero-content .highlight {
    position: relative;
    display: inline-block;
    padding: 0 10px;
    animation: highlightPulse 3s ease-in-out infinite;
}

.hero-content .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.2);
    z-index: -1;
    animation: highlightGrow 3s ease-in-out infinite;
}

@keyframes highlightPulse {
    0% { color: white; }
    50% { color: var(--secondary-light); }
    100% { color: white; }
}

@keyframes highlightGrow {
    0% { width: 0; left: 50%; }
    50% { width: 100%; left: 0; }
    100% { width: 0; left: 50%; }
}

.hero-content p {
    margin-bottom: 40px;
    font-size: 1.1rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-image {
    position: relative;
    z-index: 1;
}

.hero-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
}

/* Dashboard image animation */
.hero-image .dashboard-img {
    transform: none;
    border: 3px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(35, 118, 203, 0.5);
    animation: dashboard-glow 4s ease-in-out infinite;
}

/* Legal image animation */
.hero-image .legal-img {
    transform: none;
    border: 3px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(35, 118, 203, 0.5);
    animation: legal-glow 4s ease-in-out infinite;
}

@keyframes dashboard-glow {
    0% { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(35, 118, 203, 0.5); }
    50% { box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(35, 118, 203, 0.8); }
    100% { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(35, 118, 203, 0.5); }
}

@keyframes legal-glow {
    0% { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(35, 118, 203, 0.5); }
    50% { box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(35, 118, 203, 0.8); }
    100% { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(35, 118, 203, 0.5); }
}

.hero-image img:hover {
    transform: translateY(-5px);
}

.satisfaction, .experience {
    position: absolute;
    padding: 20px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.satisfaction {
    bottom: -30px;
    left: -20px;
    background-color: var(--secondary-color);
    color: white;
}

.experience {
    top: -30px;
    right: -20px;
    background-color: white;
    color: var(--dark-text);
}

.percent, .plus {
    font-size: 2.2rem;
    font-weight: 800;
}

.text {
    font-size: 0.9rem;
    margin-top: 5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Services Section - Cards with different layout */
.services {
    padding: 100px 0;
}

.section-subheading {
    text-align: center;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1rem;
}

.section-heading {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 800;
}

.section-desc {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    font-size: 1.1rem;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.service-card {
    border-radius: 20px;
    padding: 40px 30px;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 30px;
    font-size: 28px;
    color: white;
}

.service-icon.legal {
    background: linear-gradient(135deg, #1a5ea6, #4e9fef);
}

.service-icon.erp {
    background: linear-gradient(135deg, #2376cb, #4e9fef);
}

.service-icon.accounting {
    background: linear-gradient(135deg, #1a5ea6, #2376cb);
}

.service-icon.development {
    background: linear-gradient(135deg, #2376cb, #4e9fef);
}

.service-icon.car-rental {
    background: linear-gradient(135deg, #1a5ea6, #2376cb);
}

.service-icon.housing {
    background: linear-gradient(135deg, #2376cb, #4e9fef);
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 700;
}

.service-card p {
    margin-bottom: 25px;
    color: var(--light-text-secondary);
}

body.dark-mode .service-card p {
    color: var(--dark-text-secondary);
}

.service-features {
    list-style: none;
    margin-bottom: 25px;
}

.service-features li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.service-features li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-right: 10px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    transition: color 0.3s;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.service-link i {
    margin-left: 8px;
    transition: transform 0.3s;
}

.service-link:hover {
    color: var(--primary-dark);
}

.service-link:hover i {
    transform: translateX(5px);
}

/* About Section - New layout with background */
.about {
    padding: 100px 0;
    background-color: var(--light-bg-secondary);
    position: relative;
    overflow: hidden;
}

body.dark-mode .about {
    background-color: var(--dark-bg-secondary);
}

.about::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-color: rgba(35, 118, 203, 0.1);
    top: -150px;
    right: -150px;
}

.about::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: rgba(77, 77, 77, 0.1);
    bottom: -100px;
    left: -100px;
}

.about .container {
    position: relative;
    z-index: 1;
}

.specialties {
    margin: 40px 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.specialty-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 10px;
    transition: transform 0.3s;
}

body.dark-mode .specialty-item {
    background-color: rgba(255, 255, 255, 0.05);
}

.specialty-item:hover {
    transform: translateY(-5px);
}

.specialty-item i {
    color: var(--primary-color);
    margin-right: 15px;
    font-size: 24px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 60px 0;
}

.stat-item {
    text-align: center;
    padding: 40px 30px;
    border-radius: 20px;
    transition: transform 0.3s;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(35, 118, 203, 0.1), rgba(77, 77, 77, 0.1));
    z-index: -1;
}

.stat-item:hover {
    transform: translateY(-10px);
}

.stat-icon {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.stat-value {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.stat-label {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

/* FAQ Section - New accordion style */
.faq-section {
    margin-top: 60px;
}

.faq-section h3 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    font-weight: 700;
}

.faq-item {
    border-radius: 15px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.faq-question {
    padding: 25px 30px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
}

.faq-question i {
    transition: transform 0.3s;
    color: var(--primary-color);
}

.faq-question.active {
    background-color: var(--primary-color);
    color: white;
}

.faq-question.active i {
    transform: rotate(180deg);
    color: white;
}

.faq-answer {
    padding: 0 30px 25px;
    display: none;
    line-height: 1.8;
}

.faq-question.active + .faq-answer {
    display: block;
}

/* Contact Section - Split layout */
.contact {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><circle cx="0" cy="100" r="20" fill="rgba(35, 118, 203, 0.05)"/><circle cx="100" cy="0" r="35" fill="rgba(77, 77, 77, 0.05)"/></svg>');
    background-size: cover;
}

.contact .container {
    position: relative;
    z-index: 1;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info, .contact-form {
    border-radius: 20px;
    padding: 40px;
}

.contact-info {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: white;
}

.contact-item {
    display: flex;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 24px;
    margin-right: 20px;
    margin-top: 5px;
}

.contact-item h4 {
    margin-bottom: 8px;
    font-size: 1.2rem;
    font-weight: 600;
}

.contact-item p {
    opacity: 0.9;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.3s;
}

.social-link:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-5px);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--light-border);
    border-radius: 10px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Footer Styles */
footer {
    background: var(--dark-bg-secondary);
    color: var(--dark-text);
    padding: 60px 0 30px;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding-bottom: 30px;
}

.footer-column {
    min-width: 0;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    color: var(--dark-text);
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(to right, #2376cb, #4e9fef);
}

.footer-column p {
    color: var(--dark-text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

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

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: var(--dark-text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 15px;
}

.footer-column ul li a:before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.footer-column ul li a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
    display: inline-block;
}

.footer-column .contact-info p {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: var(--dark-text-secondary);
}

.footer-column .contact-info i {
    color: var(--primary-color);
    margin-right: 10px;
    min-width: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(35, 118, 203, 0.1);
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    margin-top: 20px;
    color: var(--dark-text-secondary);
}

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Chat Widget - New style */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
}

.chat-bubble {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 26px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(35, 118, 203, 0.4);
    transition: transform 0.3s;
}

.chat-bubble:hover {
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-slide.active {
        grid-template-columns: 1fr;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
        margin-bottom: 40px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .slider-controls {
        bottom: 20px;
    }
    
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .specialties {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 0 15px 10px;
    }
    
    .actions {
        margin-top: 15px;
    }
    
    .title {
        font-size: 2.5rem;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .actions {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
}

.service-card.featured {
    transform: scale(1.05);
    border: 2px solid var(--primary-color);
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(35, 118, 203, 0.2);
}

.service-card.featured:hover {
    transform: translateY(-15px) scale(1.05);
}

.featured-label {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(35, 118, 203, 0.3);
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 80px;
    height: 80px;
    position: relative;
}

.loader:before, .loader:after {
    content: '';
    border-radius: 50%;
    position: absolute;
    inset: 0;
    box-shadow: 0 0 10px 2px rgba(35, 118, 203, 0.3);
}

.loader:after {
    box-shadow: 0 0 10px 2px rgba(35, 118, 203, 0.3);
    animation: pulse 2s linear infinite;
}

.loader span {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader span:nth-child(2) {
    border: 3px solid transparent;
    border-bottom-color: var(--primary-color);
    animation: spin 1s linear infinite reverse;
}

.loader span:nth-child(3) {
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    border-left-color: var(--primary-color);
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { transform: scale(0.8); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.5; }
    100% { transform: scale(0.8); opacity: 1; }
}

/* Hero Animations */
.hero-slide.active .hero-content h4 {
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
}

.hero-slide.active .hero-content h1 {
    animation: fadeInUp 1s ease-out 0.3s forwards;
    opacity: 0;
}

.hero-slide.active .hero-content p {
    animation: fadeInUp 1s ease-out 0.6s forwards;
    opacity: 0;
}

.hero-slide.active .hero-content .hero-buttons {
    animation: fadeInUp 1s ease-out 0.9s forwards;
    opacity: 0;
}

.hero-slide.active .hero-image {
    animation: fadeInRight 1s ease-out 0.6s forwards;
    opacity: 0;
}

.hero-slide.active .satisfaction {
    animation: fadeInUp 1s ease-out 1.2s forwards;
    opacity: 0;
}

.hero-slide.active .experience {
    animation: fadeInUp 1s ease-out 1.5s forwards;
    opacity: 0;
}

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Service Detail Pages */
.service-detail {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.service-detail:nth-child(odd) {
    background-color: var(--light-bg-secondary);
}

body.dark-mode .service-detail:nth-child(odd) {
    background-color: var(--dark-bg-secondary);
}

.service-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
    margin-top: 50px;
}

/* Alternar posição das imagens */
.service-detail.layout-standard .service-detail-content {
    direction: ltr;
}

.service-detail.layout-reversed .service-detail-content {
    direction: rtl;
}

.service-detail-content > * {
    direction: ltr;
}

.service-detail-image {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-detail-image img {
    width: 100%;
    height: 400px; /* Altura fixa para todas as imagens */
    object-fit: cover; /* Mantém a proporção da imagem */
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
    border: 3px solid rgba(35, 118, 203, 0.1);
}

.service-detail-image img:hover {
    transform: translateY(-10px);
}

.service-detail-text {
    max-height: none;
    overflow-y: visible;
    padding-right: 0;
}

.service-detail-text p {
    margin-bottom: 15px;
    font-size: 1rem;
    line-height: 1.5;
}

.service-detail-text h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 20px 0 10px;
    color: var(--primary-color);
    background-color: inherit;
    padding: 0;
    z-index: 1;
}

.feature-list {
    list-style: none;
    margin-bottom: 15px;
}

.feature-list li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    font-size: 1rem;
}

.feature-list li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
    display: inline-block;
    width: 1.5em;
    margin-right: 10px;
    flex-shrink: 0;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    background-color: inherit;
    padding: 0;
    z-index: 1;
}

/* Responsive styles for service detail pages */
@media (max-width: 1024px) {
    .service-detail-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .service-detail-image {
        margin-bottom: 0;
    }
    
    .service-detail-text {
        max-height: none;
        overflow-y: visible;
        padding-right: 0;
    }
    
    /* Restaurar direção para layouts responsivos */
    .service-detail.layout-reversed .service-detail-content {
        direction: ltr;
    }
}

@media (max-width: 768px) {
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .service-detail {
        padding: 70px 0;
    }
    
    .service-detail-image img {
        height: 300px;
    }
}

/* ERP SaaS Page Styles */
.erp-hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, rgba(26, 94, 166, 0.05) 0%, rgba(35, 118, 203, 0.1) 100%);
    position: relative;
    overflow: hidden;
}

.erp-hero::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2376cb, #4e9fef);
    opacity: 0.05;
    top: -150px;
    left: -150px;
}

.erp-hero::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2376cb, #4e9fef);
    opacity: 0.05;
    bottom: -250px;
    right: -250px;
}

.erp-hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.erp-hero-content {
    flex: 1;
    max-width: 600px;
    margin-right: 60px;
}

.erp-hero-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.erp-hero-image img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.erp-hero-buttons {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.erp-stats {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 16px;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
}

.stat-item {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 16px 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    width: 220px;
    text-align: center;
}

.stat-number {
    font-size: 2.4rem;
    font-weight: 700;
    color: #2376cb;
    display: block;
    margin-bottom: 8px;
}

.stat-text {
    font-size: 0.9rem;
    color: var(--text-color);
    line-height: 1.4;
}

/* Features Section */
.erp-features {
    padding: 100px 0;
    background: var(--bg-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.feature-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 32px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: rgba(78, 159, 239, 0.3);
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    background: linear-gradient(135deg, #2376cb, #4e9fef);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-icon i {
    font-size: 28px;
    color: white;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
    font-weight: 600;
    color: var(--heading-color);
}

.feature-card p {
    color: var(--text-color);
    line-height: 1.6;
}

/* Modules Section */
.erp-modules {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(26, 94, 166, 0.05) 0%, rgba(35, 118, 203, 0.1) 100%);
}

.modules-tabs {
    margin-top: 60px;
}

.tabs-navigation {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 40px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tab-btn {
    padding: 12px 24px;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: #2376cb;
}

.tab-btn.active::after {
    background: linear-gradient(to right, #2376cb, #4e9fef);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.tab-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.tab-details {
    flex: 1;
}

.tab-details h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--heading-color);
}

.tab-details p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 24px;
}

.tab-features {
    list-style: none;
    padding: 0;
}

.tab-features li {
    padding: 8px 0 8px 30px;
    position: relative;
    color: var(--text-color);
}

.tab-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #2376cb, #4e9fef);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tab-features li::after {
    content: '✓';
    position: absolute;
    left: 5px;
    top: 7px;
    font-size: 12px;
    color: white;
}

.tab-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.tab-image img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Pricing Section */
.erp-pricing {
    padding: 100px 0;
    background: var(--bg-color);
}

.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px 0 60px;
    font-weight: 500;
}

.pricing-toggle span {
    margin: 0 10px;
    color: var(--text-color);
}

.pricing-toggle .discount {
    background: linear-gradient(135deg, #2376cb, #4e9fef);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-left: 15px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #4d4d4d;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background: linear-gradient(135deg, #2376cb, #4e9fef);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.pricing-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pricing-card.featured {
    transform: scale(1.05);
    border: 1px solid rgba(78, 159, 239, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.pricing-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #2376cb, #4e9fef);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-header {
    padding: 40px 30px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pricing-header h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: var(--heading-color);
}

.pricing-price {
    margin-bottom: 15px;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: #2376cb;
}

.price.annual {
    display: none;
}

.period {
    font-size: 1rem;
    color: var(--text-color);
}

.pricing-features {
    padding: 30px;
    flex: 1;
}

.pricing-features ul {
    list-style: none;
    padding: 0;
}

.pricing-features li {
    padding: 10px 0 10px 30px;
    position: relative;
    color: var(--text-color);
}

.pricing-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #2376cb, #4e9fef);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pricing-features li::after {
    content: '✓';
    position: absolute;
    left: 5px;
    top: 9px;
    font-size: 12px;
    color: white;
}

.pricing-features li.not-included {
    color: var(--text-muted);
    text-decoration: line-through;
}

.pricing-features li.not-included::before {
    background: #4d4d4d;
}

.pricing-features li.not-included::after {
    content: '×';
}

.pricing-action {
    padding: 0 30px 40px;
    text-align: center;
}

.pricing-action .btn {
    width: 100%;
}

/* Demo Section */
.erp-demo {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(26, 94, 166, 0.05) 0%, rgba(35, 118, 203, 0.1) 100%);
}

.erp-demo .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.demo-content {
    max-width: 500px;
}

.demo-form {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.demo-form form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-color);
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2376cb;
    box-shadow: 0 0 0 2px rgba(35, 118, 203, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Responsive Styles for ERP SaaS Page */
@media (max-width: 1200px) {
    .erp-hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .erp-hero-content {
        margin-right: 0;
        margin-bottom: 60px;
        max-width: 100%;
    }
    
    .erp-hero-buttons {
        justify-content: center;
    }
    
    .erp-stats {
        position: static;
        flex-direction: row;
        margin-top: 30px;
        transform: none;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tab-content {
        flex-direction: column;
    }
    
    .tab-details {
        order: 2;
    }
    
    .tab-image {
        order: 1;
        margin-bottom: 40px;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 20px auto 0;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
    
    .erp-demo .container {
        grid-template-columns: 1fr;
    }
    
    .demo-content {
        max-width: 100%;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .demo-form form {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width {
        grid-column: span 1;
    }
    
    .stat-item {
        width: 100%;
    }
}

/* Show Annual Pricing when toggle is checked */
body.show-annual .price.monthly {
    display: none;
}

body.show-annual .price.annual {
    display: inline;
} 