/* Custom CSS for Avilla Solutions Website */

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

/* Custom animations */
.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

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

/* Hover effects for cards */
.hover-lift {
    transition: all 0.3s ease-in-out;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(56, 224, 123, 0.2);
}

/* Button effects */
.btn-primary {
    background-color: #38e07b;
    color: #122118;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #2fc76c;
    transform: scale(1.05);
}

/* Navigation active state */
.nav-active {
    color: #38e07b !important;
    font-weight: 700;
}

/* Responsive design helpers */
@media (max-width: 768px) {
    .px-40 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .text-5xl {
        font-size: 2.5rem;
    }
    
    .text-6xl {
        font-size: 3rem;
    }
}

/* Loading animation for images */
.img-loading {
    background: linear-gradient(90deg, #1a2e23 25%, #264532 50%, #1a2e23 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Form styling */
.form-input {
    background-color: #1a2e23;
    border: 1px solid #264532;
    color: #ffffff;
    border-radius: 0.5rem;
    padding: 0.75rem;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #38e07b;
    box-shadow: 0 0 0 3px rgba(56, 224, 123, 0.1);
}

.form-input::placeholder {
    color: #96c5a9;
}

/* Tab styling */
.tab-active {
    border-color: #38e07b !important;
    color: #ffffff !important;
}

.tab-active .tab-icon {
    color: #38e07b !important;
}

/* Project card effects */
.project-card {
    transition: all 0.3s ease-in-out;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), 0 0 0 2px #38e07b;
}

.project-card .details-button {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.project-card:hover .details-button {
    opacity: 1;
}

/* Filter buttons */
.filter-btn {
    background-color: #264532;
    color: #ffffff;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: #38e07b;
    color: #122118;
}

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

.social-icon:hover {
    transform: scale(1.1);
    color: #38e07b;
}

/* Backdrop blur for sticky header */
.backdrop-blur-md {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

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

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

::-webkit-scrollbar-thumb {
    background: #264532;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #38e07b;
}

/* Mobile menu toggle */
.mobile-menu {
    display: none;
}

@media (max-width: 768px) {
    .mobile-menu {
        display: block;
    }
    
    .desktop-nav {
        display: none;
    }
}

/* Contact form animations */
.form-group {
    position: relative;
}

.form-label {
    position: absolute;
    left: 0.75rem;
    top: 0.75rem;
    color: #96c5a9;
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
    transform: translateY(-1.25rem) scale(0.8);
    color: #38e07b;
}

/* Success/Error messages */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: rgba(56, 224, 123, 0.1);
    border: 1px solid #38e07b;
    color: #38e07b;
}

.alert-error {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    color: #ef4444;
}

/* Team member cards */
.team-card {
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
}

.team-card:hover .team-avatar {
    border-color: #38e07b;
    box-shadow: 0 0 20px rgba(56, 224, 123, 0.3);
}

/* Services tabs content */
.tab-content {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.tab-content.active {
    opacity: 1;
    transform: translateY(0);
}

/* Loading states */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(56, 224, 123, 0.2), transparent);
    animation: loading-sweep 1.5s infinite;
}

@keyframes loading-sweep {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* Dark mode compatibility */
@media (prefers-color-scheme: dark) {
    /* Already using dark theme as default */
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .border-[#264532] {
        border-color: #38e07b;
    }
    
    .text-[#96c5a9] {
        color: #ffffff;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
