/* 
 * EmpresAI.pt - AI Consulting for SMEs
 * Custom CSS
 */

/* General Styles */
:root {
    --primary-color: #0d47a1;
    --primary-light: #5472d3;
    --primary-dark: #002171;
    --accent-color: #00c853;
    --accent-light: #5efc82;
    --accent-dark: #009624;
    --light-gray: #f5f7fa;
    --dark-gray: #333333;
}

body {
    font-family: 'Inter', sans-serif;
    color: #333;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
}

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

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--accent-dark);
    border-color: var(--accent-dark);
}

.text-primary {
    color: var(--accent-color) !important;
}

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

.title-line {
    height: 4px;
    width: 80px;
    background-color: var(--accent-color);
    margin: 0 auto 1.5rem;
}

/* Navbar */
#main-navbar {
    transition: all 0.3s ease;
    padding: 1rem 0;
}

#main-navbar.scrolled {
    background-color: #fff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
}

#main-navbar.scrolled .navbar-brand,
#main-navbar.scrolled .nav-link {
    color: var(--dark-gray);
}

#main-navbar .navbar-brand {
    color: #fff;
}

#main-navbar .nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

#main-navbar .nav-link:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    min-height: 100vh;
    padding-top: 6rem;
    padding-bottom: 4rem;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://images.pexels.com/photos/373543/pexels-photo-373543.jpeg');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 1;
}

.scroll-down-arrow {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: all 0.3s ease;
    animation: bounce 2s infinite;
}

.scroll-down-arrow:hover {
    opacity: 1;
    color: #fff;
    text-decoration: none;
}

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

/* Services Section */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(13, 71, 161, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

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

/* Brands Section */
.brand-logo {
    opacity: 0.6;
    transition: all 0.3s ease;
    max-height: 60px;
    filter: grayscale(100%);
}

.brand-logo:hover {
    opacity: 1;
    filter: grayscale(0);
}

/* About Section */
.about-image-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.about-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    padding: 2rem 1.5rem 1.5rem;
}

.about-decoration {
    position: absolute;
    bottom: -1.5rem;
    right: -1.5rem;
    width: 100px;
    height: 100px;
    background-color: var(--accent-color);
    border-radius: 8px;
    z-index: -1;
}

.team-image {
    width: 64px;
    height: 64px;
    object-fit: cover;
}

.team-card {
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

/* Testimonials Section */
.testimonial-card {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 8px;
    padding: 2rem;
}

.testimonial-image {
    width: 64px;
    height: 64px;
    object-fit: cover;
}

.testimonial-text {
    font-style: italic;
    line-height: 1.6;
}

.testimonial-control-icon {
    width: 40px;
    height: 40px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}

/* Contact Section */
.icon-wrapper {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.contact-info-item {
    margin-bottom: 1.5rem;
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .hero-section {
        padding-top: 5rem;
        padding-bottom: 3rem;
    }
    
    h1.display-4 {
        font-size: 2.5rem;
    }
    
    .about-decoration {
        width: 70px;
        height: 70px;
    }
}

/* Utility Classes */
.py-lg-7 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.z-3 {
    z-index: 3;
}

/* Footer Social Icons */
.social-icon {
    transition: all 0.3s ease;
}

.social-icon:hover {
    color: var(--accent-color) !important;
}

/* Language Switcher */
.language-switcher {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 1000;
}

/* Navbar */
#main-navbar {
    transition: all 0.3s ease;
    padding: 1rem 0;
}

#main-navbar.scrolled {
    background-color: #fff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
}

#main-navbar.scrolled .navbar-brand,
#main-navbar.scrolled .nav-link {
    color: var(--dark-gray);
}

#main-navbar .navbar-brand {
    color: #fff;
}

#main-navbar .nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

#main-navbar .nav-link:hover {
    color: var(--accent-color);
}

/* Language Switcher in Navbar */
#main-navbar .dropdown-menu {
    min-width: 120px;
}

#main-navbar .dropdown-item.active {
    background-color: var(--accent-color);
    color: white;
}

#main-navbar .dropdown-item:hover {
    background-color: #f8f9fa;
    color: var(--accent-color);
}

/* Remove old language switcher */
.language-switcher {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 1000;
}

/* Language Switcher Form Button */
#switchToEnglish button,
#switchToPortuguese button {
    width: 100%;
    text-align: left;
}

/* Our Approach Section */
.approach-step {
    transition: all 0.3s ease;
    height: 100%;
}

.approach-step:hover {
    transform: translateY(-5px);
}

.approach-card {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.approach-step:hover .approach-card {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.approach-icon-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.approach-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    backdrop-filter: blur(5px);
}

.approach-icon i {
    font-size: 2rem;
    color: white;
}

.step-number {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 40px;
    height: 40px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--primary-color);
}

.step-number span {
    font-size: 1.2rem !important;
    margin: 0;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

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

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