﻿/* ====== RETAIL BUZZ - CUSTOM CSS ====== */

/* Color Variables */
:root {
    --primary-green: #10b981;
    --primary-green-dark: #059669;
    --light-green-bg: #f0fdf4;
    --white: #ffffff;
    --dark-text: #1f2937;
    --footer-dark: #1e293b;
    --footer-darker: #0f172a;
}

/* ====== BASE LAYOUT FIXES ====== */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-green-bg) !important;
    color: var(--dark-text);
}

#layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    flex: 1;
}

/* Main content area - pushes footer down */
main {
    flex: 1;
    width: 100%;
}

/* ====== TOP BAR ====== */
.top-bar {
    background-color: var(--primary-green-dark) !important;
    color: var(--white) !important;
    padding: 8px 0 !important;
    font-size: 14px;
}

    .top-bar a {
        color: var(--white) !important;
        text-decoration: none;
        transition: opacity 0.3s ease;
    }

        .top-bar a:hover {
            opacity: 0.9;
        }

/* ====== NAVBAR ====== */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 0 !important;
    background: var(--white) !important;
}

.navbar-brand img {
    height: 50px;
    max-height: 50px;
}

.navbar-nav .nav-link {
    color: var(--dark-text) !important;
    font-weight: 500;
    padding: 10px 15px !important;
    transition: all 0.3s ease;
}

    .navbar-nav .nav-link:hover {
        color: var(--primary-green) !important;
        transform: translateY(-1px);
    }

    .navbar-nav .nav-link.active {
        color: var(--primary-green) !important;
        font-weight: 600;
    }

/* ====== BUTTONS ====== */
.btn-primary {
    background-color: var(--primary-green) !important;
    border-color: var(--primary-green) !important;
    color: var(--white) !important;
}

    .btn-primary:hover {
        background-color: var(--primary-green-dark) !important;
        border-color: var(--primary-green-dark) !important;
    }

.btn-outline-light {
    border-color: var(--white) !important;
    color: var(--white) !important;
}

    .btn-outline-light:hover {
        background-color: var(--white) !important;
        color: var(--primary-green-dark) !important;
    }

/* ====== FOOTER - FIXED POSITIONING ====== */
.main-footer {
    background: linear-gradient(135deg, var(--footer-darker), var(--footer-dark)) !important;
    color: var(--white) !important;
    padding: 50px 0 20px !important;
    margin-top: auto !important;
    width: 100% !important;
    position: relative !important;
    z-index: 1 !important;
}

    /* Top accent line */
    .main-footer::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--primary-green), #0ea5e9);
    }

/* Footer logo */
.footer-logo img {
    height: 50px;
    max-height: 50px;
    margin-bottom: 15px;
    background-color: aliceblue;
    border-radius: 19px;
}

/* Footer text */
.footer-text {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Footer headings */
.footer-heading {
    color: var(--white) !important;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

    .footer-heading::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 40px;
        height: 3px;
        background: var(--primary-green);
        border-radius: 2px;
    }

/* Footer links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-links li {
        margin-bottom: 12px;
    }

    .footer-links a {
        color: rgba(255, 255, 255, 0.7) !important;
        text-decoration: none;
        font-size: 14px;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        gap: 8px;
    }

        .footer-links a:hover {
            color: var(--primary-green) !important;
            padding-left: 5px;
        }

        .footer-links a i {
            font-size: 10px;
        }

/* Footer contact info */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-contact li {
        color: rgba(255, 255, 255, 0.8);
        font-size: 14px;
        margin-bottom: 15px;
        display: flex;
        align-items: flex-start;
        gap: 10px;
    }

    .footer-contact i {
        color: var(--primary-green);
        margin-top: 4px;
        min-width: 20px;
    }

/* Social icons */
.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white) !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

    .social-icon:hover {
        background: var(--primary-green);
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
    }

/* Footer bottom section */
.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 30px;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 14px;
    margin: 0;
}

.footer-links-bottom {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.footer-link {
    color: rgba(255, 255, 255, 0.6) !important;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

    .footer-link:hover {
        color: var(--primary-green) !important;
    }

/* ====== BACK TO TOP BUTTON ====== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
    color: var(--white) !important;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
    text-decoration: none !important;
}

    .back-to-top.visible {
        opacity: 1;
        visibility: visible;
    }

    .back-to-top:hover {
        background: linear-gradient(135deg, var(--primary-green-dark), #047857);
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
    }

/* ====== PRELOADER ====== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--light-green-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* ====== CONTENT AREA ====== */
.py-4 {
    padding-top: 0rem !important;
    padding-bottom: 2rem !important;
}

/* Hero section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
    color: var(--white) !important;
    padding: 10px 0;
}

/* Feature cards */
.feature-card {
    background: var(--white);
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    padding: 30px;
}

    .feature-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    }

.feature-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    margin: 0 auto 20px;
}

    .feature-icon i {
        font-size: 2rem;
        color: var(--primary-green);
    }

/* ====== RESPONSIVE DESIGN ====== */
@media (max-width: 992px) {
    .navbar-nav {
        padding-top: 15px;
    }

        .navbar-nav .nav-link {
            padding: 10px 0 !important;
            text-align: center;
        }

    .footer-links-bottom {
        justify-content: center !important;
        margin-top: 15px;
    }

    .footer-bottom .col-md-6 {
        text-align: center !important;
        margin-bottom: 15px;
    }

        .footer-bottom .col-md-6:last-child {
            margin-bottom: 0;
        }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }

    .display-4 {
        font-size: 2rem !important;
    }

    .display-5 {
        font-size: 1.75rem !important;
    }

    .footer-heading {
        font-size: 1rem;
    }

    .social-icons {
        justify-content: center;
    }

    .footer .row > div {
        text-align: center;
        margin-bottom: 30px;
    }

    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links a,
    .footer-contact li {
        justify-content: center;
        text-align: center;
/*          margin-left: 10px;*/
    }

    .footer-contact li {
        justify-content: flex-start;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 12px;
    }

    .hero-section {
        padding: 40px 0;
    }

    .footer-links-bottom {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .footer-link {
        font-size: 13px;
    }

    .social-icon {
        width: 36px;
        height: 36px;
    }

    .navbar-brand img {
        height: 40px;
    }
}

/* ====== ANIMATIONS ====== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* AOS animations */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
}

    [data-aos].aos-animate {
        opacity: 1;
    }
/* Additional styles for Index page */

/* Feature cards animation */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.feature-card:hover .feature-icon {
    animation: float 2s ease-in-out infinite;
}

/* Badge styling */
.badge.bg-primary-green {
    background: #10b981 !important;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 6px 12px;
}

/* Industry icons */
.industry-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
}

/* Card overlays */
.card-img-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.2), transparent) !important;
}

/* Button animations */
.btn-primary-green, .btn-outline-primary-green {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

    .btn-primary-green::after, .btn-outline-primary-green::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 5px;
        height: 5px;
        background: rgba(255, 255, 255, 0.5);
        opacity: 0;
        border-radius: 100%;
        transform: scale(1, 1) translate(-50%);
        transform-origin: 50% 50%;
    }

    .btn-primary-green:focus:not(:active)::after,
    .btn-outline-primary-green:focus:not(:active)::after {
        animation: ripple 1s ease-out;
    }

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }

    20% {
        transform: scale(25, 25);
        opacity: 0.3;
    }

    100% {
        opacity: 0;
        transform: scale(40, 40);
    }
}

/* Responsive images */
.img-fluid {
    max-width: 100%;
    height: auto;
}

/* Section spacing */
section {
    scroll-margin-top: 80px;
}

/* AOS animation delays */
[data-aos] {
    pointer-events: none;
}

    [data-aos].aos-animate {
        pointer-events: auto;
    }

/* Mobile optimizations */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0 !important;
    }

    section.py-5 {
        padding: 40px 0 !important;
    }

    .feature-card, .industry-card {
        margin-bottom: 20px;
    }

    .display-4, .display-5 {
        font-size: 1.8rem !important;
        line-height: 1.2;
    }

    .lead {
        font-size: 1rem !important;
    }
}

/* Print styles */
@media print {
    .hero-section, .cta-section {
        break-inside: avoid;
    }

    .btn, .badge {
        display: none !important;
    }
}

.hero-section {
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
}

#heroCarousel {
    width: 100%;
    height: 100%;
}

.carousel-inner {
    width: 100%;
    height: 100%;
}

.carousel-item {
    width: 100%;
    height: 90vh;
    max-height: 90vh;
    overflow: hidden;
}

    .carousel-item img {
        width: 100%;
        height: 100%;
/*        object-fit: cover;*/
        object-position: center;
    }

/* Carousel Indicators */
.carousel-indicators {
    bottom: 30px;
    z-index: 2;
}

    .carousel-indicators button {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.5);
        border: 2px solid transparent;
        margin: 0 6px;
        transition: all 0.3s ease;
    }

        .carousel-indicators button.active {
            background-color: white;
            width: 32px;
            border-radius: 10px;
            border-color: white;
        }

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

    .carousel-control-prev:hover,
    .carousel-control-next:hover {
        background-color: rgba(255, 255, 255, 0.3);
        opacity: 1;
        transform: translateY(-50%) scale(1.1);
    }

.carousel-control-prev {
    left: 30px;
}

.carousel-control-next {
    right: 30px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 30px;
    height: 30px;
}

/* Fade animation */
.carousel-fade .carousel-item {
    opacity: 0;
    transition-property: opacity;
    transform: none;
}

    .carousel-fade .carousel-item.active,
    .carousel-fade .carousel-item-next.carousel-item-start,
    .carousel-fade .carousel-item-prev.carousel-item-end {
        opacity: 1;
    }

.carousel-fade .active.carousel-item-start,
.carousel-fade .active.carousel-item-end {
    opacity: 0;
}

/* Responsive Design */
@@media (max-width: 1200px) {
    .carousel-item {
        height: 80vh;
    }
}

@@media (max-width: 992px) {
    .carousel-item {
        height: 70vh;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 50px;
        height: 50px;
        top: auto;
        bottom: 100px;
        transform: none;
    }

    .carousel-control-prev {
        left: 20px;
    }

    .carousel-control-next {
        right: 20px;
    }

    .carousel-indicators {
        bottom: 70px;
    }
}

@@media (max-width: 768px) {
    .carousel-item {
        height: 60vh;
    }

    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }

    .carousel-indicators {
        bottom: 40px;
    }

        .carousel-indicators button {
            width: 10px;
            height: 10px;
            margin: 0 4px;
        }

            .carousel-indicators button.active {
                width: 25px;
            }
}

@@media (max-width: 576px) {
    .carousel-item {
        height: 50vh;
    }

    .carousel-indicators {
        bottom: 30px;
    }
}