/* =========================================
   Deflor Bioengenharia - Main Stylesheet
   Paleta: #0C6A3B, #438B67, #85B49C, #C6DCD1
   ========================================= */

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

html {
    scroll-behavior: smooth;
}

/* Glassmorphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-dark {
    background: rgba(12, 106, 59, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(12, 106, 59, 0.2);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #0C6A3B 0%, #438B67 50%, #85B49C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animated Gradient Background */
.gradient-bg {
    background: linear-gradient(-45deg, #0C6A3B, #438B67, #85B49C, #C6DCD1);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Mesh Gradient */
.mesh-gradient {
    background-color: #F8FAFC;
    background-image:
        radial-gradient(at 40% 20%, rgba(12, 106, 59, 0.15) 0px, transparent 50%),
        radial-gradient(at 80% 0%, rgba(67, 139, 103, 0.12) 0px, transparent 50%),
        radial-gradient(at 0% 50%, rgba(133, 180, 156, 0.15) 0px, transparent 50%),
        radial-gradient(at 80% 50%, rgba(198, 220, 209, 0.2) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(12, 106, 59, 0.1) 0px, transparent 50%),
        radial-gradient(at 80% 100%, rgba(67, 139, 103, 0.1) 0px, transparent 50%);
}

/* Hero Pattern */
.hero-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230C6A3B' fill-opacity='0.05'%3E%3Cpath d='m36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Blob Shapes */
.blob {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: blobMorph 8s ease-in-out infinite;
}

@keyframes blobMorph {

    0%,
    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }

    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }

    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }
}

/* Card Hover Effect */
.card-hover {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-hover:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(12, 106, 59, 0.25);
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #0C6A3B 0%, #438B67 100%);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(12, 106, 59, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(12, 106, 59, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: transparent;
    color: #0C6A3B;
    padding: 0.875rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    border: 2px solid #0C6A3B;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(12, 106, 59, 0.1);
    transform: translateY(-2px);
}

/* Glow Effect */
.glow {
    box-shadow: 0 0 40px rgba(12, 106, 59, 0.3);
}

.glow-hover:hover {
    box-shadow: 0 0 60px rgba(12, 106, 59, 0.4);
}

/* Number Counter Animation */
.counter {
    display: inline-block;
}

/* Scroll Indicator */
.scroll-indicator {
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateY(10px);
        opacity: 0.5;
    }
}

/* Navigation Blur */
.nav-blur {
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Feature Icon Container */
.icon-container {
    background: linear-gradient(135deg, rgba(12, 106, 59, 0.1) 0%, rgba(133, 180, 156, 0.1) 100%);
    border: 1px solid rgba(12, 106, 59, 0.15);
}

/* Section Divider */
.section-divider {
    background: linear-gradient(90deg, transparent, #C6DCD1, transparent);
    height: 1px;
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #85B49C, #438B67);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #438B67, #0C6A3B);
}

/* Responsive Typography */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.1;
    }
}

/* Focus States */
*:focus-visible {
    outline: 2px solid #0C6A3B;
    outline-offset: 2px;
}

/* Selection Color */
::selection {
    background: rgba(12, 106, 59, 0.2);
    color: #0C6A3B;
}

/* =========================================
   Tom Select - Modern Design
   ========================================= */

.ts-wrapper {
    border: none !important;
    font-family: 'Inter', system-ui, sans-serif;
}

.ts-wrapper.single .ts-control,
.ts-wrapper.multi .ts-control {
    background: #FFFFFF;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0.75rem;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    font-size: 0.875rem;
    min-height: 48px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.ts-wrapper.single .ts-control:hover,
.ts-wrapper.multi .ts-control:hover {
    border-color: #0C6A3B !important;
    box-shadow: 0 2px 8px rgba(12, 106, 59, 0.1) !important;
}

.ts-wrapper.single.focus .ts-control,
.ts-wrapper.multi.focus .ts-control {
    border-color: #0C6A3B !important;
    box-shadow: 0 0 0 3px rgba(12, 106, 59, 0.12) !important;
    outline: none;
}

.ts-wrapper .ts-control>input {
    font-size: 0.875rem !important;
    color: #0F172A;
}

.ts-wrapper .ts-control>input::placeholder {
    color: #94a3b8;
}

.ts-wrapper.single .ts-control .item {
    color: #0F172A;
    font-weight: 500;
}

.ts-dropdown {
    background: #FFFFFF;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0.875rem;
    margin-top: 6px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    overflow: hidden;
    z-index: 9999;
}

.ts-dropdown-content {
    max-height: 280px;
    overflow-y: auto;
    padding: 0.5rem;
}

.ts-dropdown .option {
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
    color: #334155;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.15s ease;
    margin-bottom: 2px;
}

.ts-dropdown .option:last-child {
    margin-bottom: 0;
}

.ts-dropdown .option:hover,
.ts-dropdown .option.active {
    background: linear-gradient(135deg, #0C6A3B10 0%, #85B49C10 100%);
    color: #0C6A3B;
}

.ts-dropdown .option.selected {
    background: linear-gradient(135deg, #0C6A3B18 0%, #85B49C15 100%);
    color: #0C6A3B;
    font-weight: 600;
}

.ts-dropdown .no-results {
    padding: 1rem;
    color: #94a3b8;
    font-size: 0.875rem;
    text-align: center;
}

.ts-dropdown-content::-webkit-scrollbar {
    width: 6px;
}

.ts-dropdown-content::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.ts-dropdown-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.ts-dropdown-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}