/* Custom CSS for Srivaari Enterprises */

/* Font import and base styles */
:root {
    --primary-color: #f58634;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #f58634;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --font-family: 'Inter', sans-serif;
}
.bg-orange {
  background-color: #f58634 !important;
}

.bg-primary {
  background-color: #f58634 !important;
}
.text-primary {
    color: #f58634 !important;
}

/* Custom button styles for orange theme */
.btn-outline-orange {
    color: #f58634;
    border-color: #f58634;
    background-color: transparent;
}

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

/* Offset for fixed navbar when scrolling to sections */
section[id] {
    scroll-margin-top: 80px;
}

.btn-outline-orange:hover,
.btn-outline-orange:focus {
    color: #fff;
    background-color: #f58634;
    border-color: #f58634;
}

.btn-outline-orange.active,
.btn-outline-orange:active {
    color: #fff;
    background-color: #f58634;
    border-color: #f58634;
}

.btn-orange {
    color: #fff;
    background-color: #f58634;
    border-color: #f58634;
}

.btn-orange:hover,
.btn-orange:focus {
    color: #fff;
    background-color: #e6752a;
    border-color: #e6752a;
}

  
body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--dark-color);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family);
    font-weight: 600;
}

.display-1, .display-2, .display-3, .display-4 {
    font-weight: 700;
}

/* Hero Section */
.hero-section {
    /*background: linear-gradient(135deg, var(--primary-color) 0%, #f58634 100%);*/
    min-height: 70vh;
}

.min-vh-75 {
    min-height: 75vh;
}

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

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

/* Page Headers */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #f58634 100%);
}

/* Cards and Components */
.category-card,
.product-card,
.service-card,
.testimonial-card,
.gallery-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.1);
}

.category-card:hover,
.product-card:hover,
.service-card:hover,
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

.hover-shadow:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

/* Gallery specific styles */
.gallery-card {
    position: relative;
    overflow: hidden;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    padding: 20px;
}

/* Buttons */
.btn {
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #f58634;
    border: none;
}

.btn-primary:hover {
    background: #f58634;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245, 134, 52, 0.3);
}

.btn-outline-primary {
    border-color: #f58634;
    color: #f58634;
}

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

/* Navigation */
.navbar {
    transition: all 0.3s ease;
    padding: 1rem 0;
}

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

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #f58634 !important;
}

/* Keep contact button text white on hover */
.nav-link.btn:hover {
    color: white !important;
}

/* Keep contact button styling on focus and active states */
.nav-link.btn:focus,
.nav-link.btn:active,
.nav-link.btn.active {
    color: white !important;
    background-color: #f58634 !important;
    border-color: #f58634 !important;
    box-shadow: none !important;
}

/* Product filtering */
.filter-buttons .btn {
    margin: 0.25rem;
}

.filter-buttons .btn.active {
    background: var(--primary-color);
    color: white;
}

/* Forms */
.form-control,
.form-select {
    border-radius: 0.375rem;
    border: 1px solid #dee2e6;
    padding: 0.75rem 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(245, 134, 52, 0.25);
}

/* Contact form */
.contact-form {
    border-radius: 0.5rem;
}

.contact-info-card {
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    transform: translateY(-3px);
    box-shadow: #f58634;
}

/* Testimonials */
.testimonial-slide {
    background: linear-gradient(135deg, rgba(245, 134, 52, 0.05) 0%, rgba(245, 134, 52, 0.05) 100%);
}

.carousel-indicators button {
    background-color: var(--primary-color);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--primary-color);
    border-radius: 50%;
    padding: 1rem;
}

/* FAQ */
.accordion-button {
    font-weight: 500;
    padding: 1rem 1.25rem;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(245, 134, 52, 0.1);
    color: #f58634;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(245, 134, 52, 0.25);
}

/* Statistics */
.stat-card {
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Services */
.service-icon,
.feature-icon {
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon,
.feature-item:hover .feature-icon {
    transform: scale(1.1);
}

.process-step {
    position: relative;
}

.step-number {
    font-size: 1.5rem;
}

/* Social links */
.social-links a {
    transition: all 0.3s ease;
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* Footer */
footer {
    background: #f58634;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
        text-align: center;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .filter-buttons {
        text-align: center;
    }
    
    .filter-buttons .btn {
        margin: 0.25rem 0.125rem;
        font-size: 0.875rem;
    }
    
    .gallery-overlay {
        opacity: 1;
        background: rgba(0, 0, 0, 0.6);
    }
    
    .navbar-nav {
        text-align: center;
        padding-top: 1rem;
    }
    
    .nav-link.btn {
        margin-top: 0.5rem;
        display: inline-block;
        width: auto;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .testimonial-slide {
        padding: 2rem 0;
    }
    
    .faq-categories .btn {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .btn,
    .social-links {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-outline-primary {
        border-width: 2px;
    }
    
    .card,
    .border {
        border-width: 2px;
    }
}

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

/* Focus styles for accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Custom scroll bar - restored to default colors */
::-webkit-scrollbar {
    width: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Custom Carousel Styles */
.carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 1rem;
    padding: 0.5rem;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    min-height: 200px; /* Ensure minimum height for content */
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-container {
    position: relative;
    overflow: hidden; /* Hide overflow */
}

.carousel-section {
    margin-bottom: 3rem;
}

.section-heading-bar {
    border-bottom: 2px solid #f58634;
    padding-bottom: 0.5rem;
}

/* Ensure carousel buttons are properly positioned */
.carousel-btn {
    position: relative;
    background: #f58634;
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    margin-left: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 10;
}

.carousel-btn:hover {
    background: #e6752a;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(245, 134, 52, 0.3);
}

.carousel-btn:active {
    transform: scale(0.95);
}

/* Back to top button styling - for all pages */
.back-to-top {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    display: none !important;
    z-index: 1000 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    transition: all 0.3s ease !important;
    background-color: #f58634 !important;
    border: none !important;
    color: white !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    line-height: 1 !important;
    font-size: 18px !important;
}

.back-to-top:hover {
    background-color: #e6752a !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(245, 134, 52, 0.3) !important;
}

.back-to-top:focus {
    outline: 2px solid #f58634 !important;
    outline-offset: 2px !important;
}

.back-to-top i {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}

/* Utility classes */
.text-light-emphasis {
    color: rgba(255, 255, 255, 0.75) !important;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #f58634 100%);
}

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

.border-radius-lg {
    border-radius: 0.5rem;
}

.border-radius-xl {
    border-radius: 1rem;
}

/* Additional spacing utilities */
.py-6 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

.my-6 {
    margin-top: 4rem !important;
    margin-bottom: 4rem !important;
}
