/* Custom CSS for AstrixEV Website */

:root {
    --primary-color: #28a745;
    --secondary-color: #17a2b8;
    --danger-color: #dc3545;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --white: #ffffff;
    --gradient-bg: linear-gradient(135deg, #28a745, #20c997);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Navigation */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(52, 58, 64, 0.95) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: var(--gradient-bg);
    opacity: 0.1;
    z-index: 1;
}

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

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

.placeholder-image {
    background: var(--gradient-bg);
    border-radius: 15px;
    padding: 60px 30px;
    text-align: center;
    color: white;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.placeholder-image i {
    font-size: 4rem;
    margin-bottom: 20px;
}

.hero-buttons .btn {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hero-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.hero-stats {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

/* Calculator Section */
.calculator-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

.calculator-inputs .input-group {
    margin-bottom: 30px;
}

.form-label {
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark-color);
    display: block;
}

.form-range {
    height: 8px;
    background: #e9ecef;
    border-radius: 10px;
    cursor: pointer;
}

.form-range::-webkit-slider-thumb {
    width: 25px;
    height: 25px;
    background: var(--primary-color);
    border-radius: 50%;
    border: none;
    box-shadow: 0 3px 10px rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease;
}

.form-range::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.5);
}

.form-range::-moz-range-thumb {
    width: 25px;
    height: 25px;
    background: var(--primary-color);
    border-radius: 50%;
    border: none;
    box-shadow: 0 3px 10px rgba(40, 167, 69, 0.3);
    cursor: pointer;
}

.result-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    border-left: 5px solid var(--primary-color);
    transition: all 0.3s ease;
}

.result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.savings-breakdown {
    background: #e9ecef;
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
}

.savings-breakdown h6 {
    color: var(--dark-color);
    margin-bottom: 10px;
}

/* Features Section */
.feature-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 1.8rem;
}

.feature-card h4 {
    color: var(--dark-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-card p {
    color: #666;
    margin-bottom: 0;
}

/* How It Works Section */
.step-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    height: 100%;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.step-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin: 30px 0 20px;
}

.step-card h4 {
    color: var(--dark-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.step-card p {
    color: #666;
    margin-bottom: 0;
}

/* Testimonials Section */
.testimonial-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 20px;
    text-align: center;
}

.testimonial-text {
    font-style: italic;
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.8;
}

.testimonial-author h5 {
    color: var(--dark-color);
    margin-bottom: 5px;
    font-weight: 600;
}

.testimonial-author span {
    color: var(--primary-color);
    font-weight: 500;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    color: var(--primary-color);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

/* Trust Badges */
.trust-badge {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.trust-badge:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.trust-badge i {
    font-size: 3rem;
    margin-right: 20px;
}

.trust-badge h5 {
    color: var(--dark-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.trust-badge p {
    color: #666;
    margin-bottom: 0;
}

/* EMI Partners */
.emi-partners-scroll {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    animation: scroll 20s linear infinite;
}

.emi-partner {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 15px 25px;
    font-weight: 600;
    color: var(--dark-color);
    white-space: nowrap;
    transition: all 0.3s ease;
}

.emi-partner:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

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

/* FAQ Section */
.accordion-button {
    background: white;
    border: none;
    box-shadow: none;
    font-weight: 600;
    color: var(--dark-color);
    padding: 20px;
}

.accordion-button:not(.collapsed) {
    background: var(--primary-color);
    color: white;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(40, 167, 69, 0.25);
}

.accordion-item {
    border: none;
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.accordion-body {
    padding: 20px;
    background: #f8f9fa;
}

/* Contact Form */
.contact-form {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.form-control,
.form-select {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

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

/* Buttons */
.btn {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn-success {
    background: var(--gradient-bg);
    border: none;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* Footer */
footer {
    background: var(--dark-color) !important;
}

footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color) !important;
}

.social-links a {
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }
    
    .hero-content {
        margin-bottom: 40px;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
    
    .calculator-card {
        padding: 20px;
    }
    
    .feature-card,
    .step-card {
        margin-bottom: 30px;
    }
    
    .testimonial-card {
        margin: 10px;
        padding: 20px;
    }
    
    .trust-badge {
        flex-direction: column;
        text-align: center;
    }
    
    .trust-badge i {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .emi-partners-scroll {
        flex-direction: column;
        animation: none;
    }
    
    .contact-form {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .stat-item h3 {
        font-size: 1.5rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .step-icon {
        font-size: 2rem;
    }
}

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

/* Loading Animation */
.loading {
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
}

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

/* Utility Classes */
.text-gradient {
    background: var(--gradient-bg);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient {
    background: var(--gradient-bg);
}

.shadow-custom {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.border-radius-custom {
    border-radius: 15px;
}
