/* XPTO-AI Custom Styles */
:root {
    --primary-color: #4CAF50;
    --secondary-color: #2196F3;
    --accent-color: #607D8B;
    --success-color: #8BC34A;
    --warning-color: #FF9800;
    --danger-color: #F44336;
    --dark-color: #263238;
    --light-color: #ECEFF1;
    --white: #FFFFFF;
    --gradient-primary: linear-gradient(135deg, #4CAF50, #2196F3);
    --gradient-secondary: linear-gradient(135deg, #2196F3, #607D8B);
    --shadow-light: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-medium: 0 5px 25px rgba(0,0,0,0.15);
    --shadow-heavy: 0 10px 40px rgba(0,0,0,0.2);
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
    --transition-slow: 0.8s ease;
}

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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity var(--transition-medium), visibility var(--transition-medium);
}

#loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    color: var(--white);
}

.chameleon-loader {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top: 4px solid var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite, colorChange 3s ease-in-out infinite;
    margin: 0 auto 20px;
}

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

@keyframes colorChange {
    0%, 100% { border-top-color: var(--white); }
    33% { border-top-color: var(--success-color); }
    66% { border-top-color: var(--secondary-color); }
}

/* Navigation */
.navbar {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-light);
}

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

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

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--dark-color);
    margin: 0 10px;
    position: relative;
    transition: color var(--transition-fast);
}

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

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all var(--transition-fast);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    background: var(--gradient-primary);
    color: var(--white);
    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 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(45deg, var(--white), var(--success-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons .btn {
    margin-bottom: 1rem;
    padding: 12px 30px;
    font-weight: 500;
    border-radius: 50px;
    transition: all var(--transition-fast);
}

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

.btn-primary:hover {
    background: transparent;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

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

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

/* Hero Visual */
.hero-visual {
    position: relative;
    z-index: 2;
}

.chameleon-animation {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
}

.chameleon-shape {
    width: 100%;
    height: 100%;
    background: var(--gradient-secondary);
    border-radius: 50% 30% 50% 30%;
    animation: float 3s ease-in-out infinite, morphShape 6s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.chameleon-shape::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(255,255,255,0.3), transparent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

@keyframes morphShape {
    0%, 100% { 
        border-radius: 50% 30% 50% 30%;
        background: var(--gradient-secondary);
    }
    33% { 
        border-radius: 30% 50% 30% 50%;
        background: linear-gradient(135deg, var(--success-color), var(--primary-color));
    }
    66% { 
        border-radius: 40% 60% 40% 60%;
        background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    }
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

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

.scroll-arrow {
    width: 30px;
    height: 30px;
    border: 2px solid var(--white);
    border-top: none;
    border-right: none;
    transform: rotate(-45deg);
    animation: bounce 2s infinite;
}

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

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

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

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

/* Section Styles */
section {
    padding: 80px 0;
}

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

.section-subtitle {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 3rem;
}

/* About Section */
.about-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.about-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.about-features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: var(--light-color);
    border-radius: 25px;
    transition: all var(--transition-fast);
}

.feature-item:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.feature-item i {
    font-size: 1.2rem;
}

/* Transformation Demo */
.transformation-demo {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.demo-card {
    padding: 20px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    transition: all var(--transition-fast);
    cursor: pointer;
    border: 2px solid transparent;
}

.demo-card:hover,
.demo-card.active {
    border-color: var(--primary-color);
    transform: translateX(10px);
    box-shadow: var(--shadow-medium);
}

.demo-card i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.demo-card h4 {
    margin: 0;
    color: var(--dark-color);
}

/* Sector Cards */
.sector-card {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.sector-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left var(--transition-medium);
    z-index: 1;
}

.sector-card:hover::before {
    left: 0;
}

.sector-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.sector-card:hover .sector-icon,
.sector-card:hover h3,
.sector-card:hover p,
.sector-card:hover .sector-services {
    color: var(--white);
    position: relative;
    z-index: 2;
}

.sector-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all var(--transition-fast);
}

.sector-icon i {
    font-size: 2rem;
    color: var(--white);
}

.sector-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.sector-card p {
    margin-bottom: 20px;
    color: var(--accent-color);
}

.sector-services {
    list-style: none;
    text-align: left;
}

.sector-services li {
    padding: 5px 0;
    color: var(--dark-color);
}

.sector-services i {
    color: var(--primary-color);
    margin-right: 10px;
}

/* Services Section */
.sector-selector {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.sector-btn {
    padding: 15px 30px;
    background: var(--white);
    border: 2px solid var(--light-color);
    border-radius: 50px;
    color: var(--dark-color);
    font-weight: 500;
    transition: all var(--transition-fast);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sector-btn:hover,
.sector-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.sector-services {
    display: none;
    animation: fadeInUp 0.5s ease-out;
}

.sector-services.active {
    display: block;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: all var(--transition-fast);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.service-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.service-card h4 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

.service-card p {
    color: var(--accent-color);
    margin: 0;
}

/* Advantage Cards */
.advantage-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: all var(--transition-fast);
    height: 100%;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.advantage-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.advantage-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.advantage-card h4 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

.advantage-card p {
    color: var(--accent-color);
    margin: 0;
}

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
}

.form-floating > .form-control {
    border: 2px solid var(--light-color);
    border-radius: 10px;
    transition: border-color var(--transition-fast);
}

.form-floating > .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25);
}

.form-floating > label {
    color: var(--accent-color);
}

/* Footer */
footer {
    background: var(--dark-color) !important;
}

.footer-brand img {
    filter: brightness(0) invert(1);
}

footer h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

footer ul li {
    margin-bottom: 0.5rem;
}

footer ul li a {
    color: var(--light-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

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

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .chameleon-animation {
        width: 250px;
        height: 250px;
    }
    
    .sector-selector {
        flex-direction: column;
        align-items: center;
    }
    
    .sector-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .about-features {
        justify-content: center;
    }
    
    .feature-item {
        flex: 1 1 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    section {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .chameleon-animation {
        width: 200px;
        height: 200px;
    }
}

/* Utility Classes */
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; }

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

