/* Custom styles for AutoTech Solutions */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --accent-color: #20c997;
    --dark-bg: #212529;
}

/* Hero Section */
.hero-section {
    padding-top: 76px;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1) 0%, rgba(32, 201, 151, 0.1) 100%);
}

.hero-icon {
    animation: float 3s ease-in-out infinite;
}

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

/* Service Cards */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.2);
}

.service-icon {
    text-align: center;
}

/* Contact Form */
.contact-form {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 2rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Contact Info */
.contact-info {
    padding: 2rem;
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

.contact-info:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Navigation */
.navbar-brand img {
    filter: brightness(1.2);
}

/* Flash Messages */
.flash-messages {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    z-index: 1030;
    padding: 1rem;
}

.flash-messages .alert {
    margin-bottom: 0.5rem;
    border-radius: 8px;
}

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

/* Section spacing */
section {
    scroll-margin-top: 76px;
}

/* Feature icons animation */
.feature-icon i,
.service-icon i {
    transition: transform 0.3s ease, color 0.3s ease;
}

.feature-icon:hover i,
.service-icon:hover i {
    transform: scale(1.1);
    color: var(--accent-color) !important;
}

/* Button hover effects */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

/* Card hover effects */
.card {
    transition: all 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .hero-icon {
        margin-top: 2rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
}

/* Loading animation for form submission */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Typography improvements */
.lead {
    font-weight: 300;
    line-height: 1.6;
}

h1, h2, h3, h4, h5 {
    font-weight: 600;
}

/* List styling */
.list-unstyled li {
    margin-bottom: 0.5rem;
    padding: 0.25rem 0;
}

/* Border animations */
.border-primary {
    border-width: 2px !important;
    position: relative;
}

.border-primary::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.border-primary:hover::before {
    opacity: 0.3;
}
