/* Custom Styles for Cruxmarts Landing Page */

/* Hero Section */
.hero-section {
   
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.05)" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}

.hero-overlay {
    position: relative;
    z-index: 2;
}

/* Reduce carousel height on large screens */
.hero-carousel-img {
    height: 320px;
    object-fit: cover;
}
@media (min-width: 992px) {
    .hero-carousel-img {
        height: 380px;
    }
}
@media (min-width: 1200px) {
    .hero-carousel-img {
        height: 500px;
    }
}

/* Search Container */
.search-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.search-container .form-control,
.search-container .form-select {
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 1rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.search-container .form-control:focus,
.search-container .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.search-container .input-group-text {
    border-radius: 10px 0 0 10px;
    border: 2px solid transparent;
    border-right: none;
}

.search-container .btn {
    border-radius: 0 10px 10px 0;
    padding: 12px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.search-container .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Stat Items */
.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-item h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Category Cards */
.category-card {
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

.category-icon {
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
}

.category-card .card-body {
    padding: 2rem 1.5rem;
}

.category-card .badge {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

/* Listing Cards */
.listing-card {
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
}

.listing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

.listing-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.listing-card:hover .card-img-top {
    transform: scale(1.05);
}

.listing-card .badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
}

/* Statistics Section */
.stat-box {
    padding: 2rem 1rem;
    transition: all 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
}

.stat-box i {
    transition: all 0.3s ease;
}

.stat-box:hover i {
    transform: scale(1.1);
}

/* Step Boxes */
.step-box {
    padding: 2rem 1rem;
    transition: all 0.3s ease;
}

.step-box:hover {
    transform: translateY(-5px);
}

.step-number {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.step-box:hover .step-number {
    transform: scale(1.1);
}

/* Footer */
.footer-section h6 {
    color: #fff;
    margin-bottom: 1rem;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: #667eea !important;
    transition: all 0.3s ease;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #667eea;
    transform: translateY(-3px);
}

/* Animations */
.animate-fade-in {
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .search-container {
        padding: 1.5rem;
    }
    
    .search-container .row .col-md-4,
    .search-container .row .col-md-3,
    .search-container .row .col-md-2 {
        margin-bottom: 1rem;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
    
    .category-card .card-body {
        padding: 1.5rem 1rem;
    }
    
    .listing-card .card-img-top {
        height: 180px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding-top: 80px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .search-container {
        padding: 1rem;
        margin: 0 1rem;
    }
    
    .search-container .btn {
        width: 100%;
        margin-top: 1rem;
    }
    
    .stat-item {
        margin-bottom: 2rem;
    }
    
    .category-card .card-body {
        padding: 1rem;
    }
    
    .listing-card .card-img-top {
        height: 160px;
    }
    
    .footer-section {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Custom Button Styles */
.btn-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #5a6fd8, #6a4190);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-warning {
    background: linear-gradient(45deg, #ffd700, #ffb300);
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-warning:hover {
    background: linear-gradient(45deg, #ffd700, #ffb300);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(240, 147, 251, 0.3);
}

/* Loading Animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #5a6fd8, #6a4190);
}

/* Focus States */
.form-control:focus,
.form-select:focus,
.btn:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Print Styles */
@media print {
    .navbar,
    .hero-section,
    .btn,
    .modal {
        display: none !important;
    }
    
    .container {
        max-width: none !important;
    }
}

.field-icon {
    float: right;
    margin-left: -25px;
    margin-top: -25px;
    position: relative;
    z-index: 2;
    padding-right: 10px;
  }


  
  .faq-accordion {
    max-width: 700px;
    margin: 0 auto;
}

.accordion-item {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 18px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    border: none;
    overflow: hidden;
}

.accordion-header {
    background: linear-gradient(90deg, #f8fafc 60%, #e9ecef 100%);
    padding: 0;
}

.accordion-button {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1a202c;
    background: none;
    border: none;
    padding: 1.1rem 1.5rem;
    transition: background 0.2s;
    box-shadow: none;
}

.accordion-button:not(.collapsed) {
    background: #f1f3f6;
    color: #007bff;
}

.accordion-body {
    padding: 1.25rem 2rem 1.5rem 2rem;
    background: #f9fafb;
    color: #333;
    font-size: 1.05rem;
    border-top: 1px solid #f1f3f6;
}

.faq-list {
    margin: 0.5rem 0 0 1.5rem;
    padding: 0;
}

.faq-list li {
    margin-bottom: 0.3rem;
}

.faq-highlight {
    color: #007bff;
    font-weight: 600;
}

.faq-btn {
    padding: 0.2rem 0.7rem;
    font-size: 0.95rem;
    border-radius: 20px;
    background: #ff5252;
    color: #fff;
    border: none;
    text-decoration: none;
    margin-left: 0.2rem;
    transition: background 0.2s;
}

.faq-btn:hover {
    background: #d32f2f;
    color: #fff;
}
