/* Custom Styles for Krenx Technologies */

/* Service Card Animations */
.service-card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.service-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

/* Product Card Styling */
.product-card {
    transition: all 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

/* Counter Animation */
.counter-value {
    font-weight: 700;
}

/* Form Styling */
.custom-form .form-control {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
}

.custom-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.25);
}

/* Navigation Active State */
.navigation-menu li a.active {
    color: var(--primary) !important;
    font-weight: 600;
}

/* Responsive Typography */
@media (max-width: 768px) {
    .heading {
        font-size: 2rem !important;
    }
    
    .title {
        font-size: 1.5rem !important;
    }
}

/* Badge Enhancements */
.badge-soft-primary {
    background-color: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
}

/* Footer Links */
.footer-list li a:hover {
    color: var(--primary) !important;
    padding-left: 5px;
    transition: all 0.3s ease;
}

/* Back to top button */
.back-to-top {
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Owl Carousel Customization */
.owl-theme .owl-nav {
    margin-top: 20px;
}

.owl-theme .owl-nav button {
    background: var(--primary) !important;
    color: white !important;
    border-radius: 50% !important;
    width: 40px;
    height: 40px;
}

/* CTA Section Overlay */
.bg-cta .bg-overlay {
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6));
}

/* Timeline for About Page */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -36px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--primary);
}

/* Technology Stack Icons */
.tech-stack .tech-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 10px;
    margin: 0 auto;
    font-size: 24px;
    color: var(--primary);
    transition: all 0.3s ease;
}

.tech-stack .tech-icon:hover {
    transform: translateY(-5px);
    background: var(--primary);
    color: white;
}

/* Career Cards */
.career-card {
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.career-card:hover {
    border-left-color: var(--primary);
    transform: translateX(5px);
}

/* Contact Info Cards */
.contact-info-card {
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

/* Loading Animation */
#preloader .spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Gradient Backgrounds */
.gradient-bg {
    background: linear-gradient(135deg, var(--primary) 0%, #6c63ff 100%);
}

/* Responsive Images */
.img-hover-zoom {
    overflow: hidden;
    border-radius: 10px;
}

.img-hover-zoom img {
    transition: transform 0.5s ease;
}

.img-hover-zoom:hover img {
    transform: scale(1.05);
}

/* Section Spacing */
.section {
    padding: 80px 0;
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
}

/* Button Animations */
.btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

/* Form Validation Styles */
.is-valid {
    border-color: #28a745 !important;
}

.is-invalid {
    border-color: #dc3545 !important;
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Social Media Icons Animation */
.social-icon a {
    transition: all 0.3s ease;
}

.social-icon a:hover {
    transform: translateY(-3px);
}

/* Service Tabs */
.service-tab {
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.service-tab.active {
    border-bottom-color: var(--primary);
    color: var(--primary);
}

/* Statistics Counter */
.counter-box {
    padding: 30px 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.counter-box:hover {
    background: rgba(var(--primary-rgb), 0.05);
}

/* Testimonial Cards */
.customer-testi {
    transition: all 0.3s ease;
}

.customer-testi:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

/* Newsletter Form */
.newsletter-form .form-control {
    border-radius: 50px 0 0 50px;
}

.newsletter-form .btn {
    border-radius: 0 50px 50px 0;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    body.dark-mode {
        background-color: #121212;
        color: #ffffff;
    }
    
    .dark-mode .card {
        background-color: #1e1e1e;
        color: #ffffff;
    }
    
    .dark-mode .text-muted {
        color: #b0b0b0 !important;
    }
}