/* IDN Tecnologia - Custom Styles */

:root {
    --primary-color: #1e2761;
    --primary-light: #2d3a7d;
    --primary-dark: #15204a;
    --secondary-color: #ffffff;
    --accent-color: #4285f4;
    --text-dark: #333333;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa;
}

/* Global Styles *//* Pause animation when navigating manually */
.clients-carousel.manual-control .clients-track {
    animation-play-state: paused;
    animation: none !important;
}dy {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Bootstrap Color Overrides */
.bg-primary {
    background-color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 39, 97, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 39, 97, 0.3);
}

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

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

/* Navigation */
.navbar {
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

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

.navbar-brand img {
    transition: all 0.3s ease;
    filter: brightness(1.1) contrast(1.1);
    background: rgba(255,255,255,0.9);
    padding: 5px 10px;
    border-radius: 6px;
}

.navbar-brand:hover img {
    filter: brightness(1.2) contrast(1.2);
    background: rgba(255,255,255,1);
    box-shadow: 0 4px 12px rgba(255,255,255,0.3);
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #ffffff !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: #ffffff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e9ecef" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-icon {
    font-size: 15rem;
    opacity: 0.1;
    position: relative;
    z-index: 1;
}

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

/* Floating Elements Animation */
.floating-elements {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
}

.floating-card {
    position: absolute;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    font-size: 1.5rem;
    color: var(--primary-color);
    animation: float 6s ease-in-out infinite;
}

.floating-card.card-1 {
    top: -100px;
    left: -50px;
    animation-delay: 0s;
}

.floating-card.card-2 {
    top: -50px;
    right: -100px;
    animation-delay: 1.5s;
}

.floating-card.card-3 {
    bottom: -50px;
    left: -100px;
    animation-delay: 3s;
}

.floating-card.card-4 {
    bottom: -100px;
    right: -50px;
    animation-delay: 4.5s;
}

.floating-card.card-5 {
    top: -120px;
    left: 50px;
    animation-delay: 1.5s;
}

.floating-card.card-6 {
    bottom: 20px;
    left: 150px;
    animation-delay: 3.5s;
}

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

/* Service Cards */
.service-card {
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
}

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

.service-icon i {
    font-size: 3rem;
    opacity: 0.8;
}

.service-card:hover .service-icon i {
    transform: scale(1.1);
    transition: all 0.3s ease;
}

/* Clients Carousel */
.clients-carousel {
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
}

.clients-track {
    display: flex;
    animation: scroll 160s linear infinite;
    gap: 2rem;
    width: fit-content;
    transition: transform 0.5s ease;
}

.client-item {
    min-width: 250px;
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(30, 39, 97, 0.1);
}

.client-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(30, 39, 97, 0.15);
    border-color: var(--primary-color);
}

.client-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.client-logo {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    background: rgba(30, 39, 97, 0.02);
    border-radius: 10px;
    padding: 1rem;
}

.client-logo img {
    max-height: 60px;
    max-width: 100%;
    object-fit: contain;
    filter: brightness(0.8) contrast(1.1);
    transition: all 0.3s ease;
}

.client-item:hover .client-logo img {
    filter: brightness(1) contrast(1.2);
    transform: scale(1.05);
}

.placeholder-logo {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    opacity: 0.7;
}

.client-info {
    text-align: center;
}

.client-name {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.client-description {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Pause animation on hover */
.clients-carousel:hover .clients-track {
    animation-play-state: paused;
}

/* Responsive Clients */
@media (max-width: 768px) {
    .client-item {
        min-width: 200px;
        padding: 1rem;
    }
    
    .client-logo {
        height: 60px;
        padding: 0.5rem;
    }
    
    .client-logo img {
        max-height: 40px;
    }
    
    .clients-track {
        animation-duration: 135s;
    }
}

/* About Section */
.about-icon {
    font-size: 12rem;
    opacity: 0.1;
}

.stat-item {
    padding: 1rem;
    border-radius: 10px;
    background: rgba(30, 39, 97, 0.05);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(30, 39, 97, 0.1);
    transform: translateY(-5px);
}

/* Contact Section */
.contact-item {
    text-align: center;
}

.contact-item i {
    font-size: 2rem;
    opacity: 0.8;
}

/* Modal */
.modal-content {
    border-radius: 15px;
    border: none;
    overflow: hidden;
}

.modal-header {
    border: none;
    padding: 1.5rem;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    border: none;
    padding: 1.5rem;
}

.tech-badges .badge {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

/* Footer */
.social-links a {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
    opacity: 0.8;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-icon {
        font-size: 8rem;
    }
    
    .floating-card {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .floating-card.card-1,
    .floating-card.card-2,
    .floating-card.card-3,
    .floating-card.card-4,
    .floating-card.card-5,
    .floating-card.card-6 {
        top: auto;
        bottom: auto;
        left: auto;
        right: auto;
        position: relative;
        margin: 10px;
        display: inline-flex;
    }
    
    .floating-elements {
        position: static;
        transform: none;
        text-align: center;
        margin-top: 2rem;
    }
    
    .about-icon {
        font-size: 6rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.8rem;
    }
}

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

/* Loading Animation */
.fade-in {
    animation: fadeIn 1s ease-in;
}

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

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

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

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

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

/* Contact Section Improvements */
#contact .cta-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#contact .contact-info {
    font-size: 0.9rem;
    opacity: 0.8;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
}

#contact .contact-info i {
    opacity: 0.7;
}

#contact .btn {
    transition: all 0.3s ease;
    min-width: 150px;
    font-weight: 500;
}

#contact .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Footer Improvements */
footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

footer .social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(30, 39, 97, 0.3);
}
