/* 
 * Ceylon Spice Exports - Custom Luxury Styling System
 */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #e81327;
    --primary-hover: #b30f1d;
    --secondary-color: #000000;
    --bg-color: #ffffff;
    --accent-color: #f5f5f5;
    --dark-accent: #111111;
    --text-muted: #666666;
    
    /* Typography */
    --serif-font: 'Playfair Display', Georgia, serif;
    --sans-font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    
    /* Animation Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
}

/* Global Settings */
body {
    background-color: var(--bg-color);
    color: var(--secondary-color);
    font-family: var(--sans-font);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .display-font {
    font-family: var(--serif-font);
    font-weight: 700;
}

p {
    font-weight: 300;
    color: #444444;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--accent-color);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

/* Utility Styles */
.text-primary-color { color: var(--primary-color); }
.text-secondary-color { color: var(--secondary-color); }
.text-secondary-color:hover { color: var(--primary-color) !important; }
.bg-primary-color { background-color: var(--primary-color); }
.bg-dark-accent { background-color: var(--dark-accent); }
.text-serif { font-family: var(--serif-font); }

/* Buttons styling */
.btn-premium-red {
    background-color: var(--primary-color);
    color: #ffffff;
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    padding: 10px 24px;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
}
.btn-premium-red:hover {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(232, 19, 39, 0.3);
}

.btn-premium-outline {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    border-radius: 30px;
    padding: 10px 24px;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
}
.btn-premium-outline:hover {
    background-color: var(--secondary-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.btn-premium-white {
    background-color: #ffffff;
    color: var(--secondary-color);
    border: 2px solid #ffffff;
    border-radius: 30px;
    padding: 10px 24px;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
}
.btn-premium-white:hover {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

/* Glassmorphism Header */
.glass-navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition-smooth);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}
.glass-navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    padding-top: 10px;
    padding-bottom: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
.navbar-brand img {
    height: 100px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}
.glass-navbar.scrolled .navbar-brand img {
    height: 70px;
}
.nav-link {
    color: var(--secondary-color);
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 16px !important;
    position: relative;
    transition: var(--transition-fast);
}
.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 16px;
    background-color: var(--primary-color);
    transition: var(--transition-smooth);
}
.nav-link:hover::after, .nav-link.active::after {
    width: calc(100% - 32px);
}

/* Hero Slider Section */
.hero-slider-container {
    height: 85vh;
    min-height: 550px;
    overflow: hidden;
    position: relative;
}
.hero-slider-container .carousel-inner, .hero-slider-container .carousel-item {
    height: 100%;
}
.hero-slider-container .carousel-item {
    background-size: cover;
    background-position: center;
    position: relative;
}
.hero-slider-container .carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.3));
    z-index: 1;
}
.carousel-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    max-width: 700px;
    padding: 20px;
}
.carousel-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.carousel-content p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 30px;
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.carousel-content .btn-wrapper {
    animation: fadeInUp 1.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Zoom background animation for active slide */
.carousel-item-active-zoom {
    animation: bgZoom 15s linear infinite;
}
@keyframes bgZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}

/* Floating Spice Particles in Background */
.animated-spice-bg {
    position: relative;
    background: var(--bg-color);
}
.spice-particle {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    opacity: 0.15;
    animation: floatParticle 25s infinite linear;
}
.p1 { top: 15%; left: 5%; width: 60px; animation-duration: 20s; }
.p2 { top: 60%; right: 5%; width: 85px; animation-duration: 32s; }
.p3 { top: 40%; left: 80%; width: 50px; animation-duration: 25s; }
.p4 { top: 85%; left: 20%; width: 70px; animation-duration: 28s; }

@keyframes floatParticle {
    0% { transform: translateY(0px) rotate(0deg) translateX(0px); }
    33% { transform: translateY(-30px) rotate(120deg) translateX(20px); }
    66% { transform: translateY(20px) rotate(240deg) translateX(-10px); }
    100% { transform: translateY(0px) rotate(360deg) translateX(0px); }
}

/* Modern Luxury Cards */
.luxury-card {
    border: none;
    border-radius: 12px;
    background-color: var(--bg-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: var(--transition-smooth);
    position: relative;
    z-index: 1;
}
.luxury-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}
.card-img-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
    background-color: var(--accent-color);
}
.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}
.luxury-card:hover .card-img-wrapper img {
    transform: scale(1.1);
}
.card-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 2;
}
.card-overlay-actions {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
    display: flex;
    justify-content: center;
    gap: 10px;
    transition: var(--transition-smooth);
    opacity: 0;
    z-index: 2;
}
.luxury-card:hover .card-overlay-actions {
    bottom: 0;
    opacity: 1;
}
.luxury-card .card-body {
    padding: 25px;
}
.luxury-card .card-title {
    font-size: 1.35rem;
    margin-bottom: 8px;
    transition: var(--transition-fast);
}
.luxury-card .card-title a {
    color: var(--secondary-color);
    text-decoration: none;
}
.luxury-card .card-title a:hover {
    color: var(--primary-color);
}
.price-badge {
    font-family: var(--sans-font);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Category cards grid */
.category-btn-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50px;
    padding: 12px 30px;
    text-align: center;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    cursor: pointer;
    background-color: var(--bg-color);
    transition: var(--transition-smooth);
}
.category-btn-card.active, .category-btn-card:hover {
    background-color: var(--secondary-color);
    color: #ffffff;
    border-color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Export countries section */
.country-badge {
    background-color: var(--accent-color);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.03);
}
.country-badge img {
    height: 35px;
    width: auto;
    margin-bottom: 10px;
    border-radius: 3px;
}
.country-badge h6 {
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 600;
}
.country-badge:hover {
    background-color: var(--bg-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    border-color: var(--primary-color);
}

/* Testimonial slider styling */
.testimonial-card {
    background: var(--accent-color);
    border-radius: 12px;
    padding: 40px;
    margin: 20px 10px;
    position: relative;
}
.testimonial-card .client-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 2px solid var(--primary-color);
}
.testimonial-card .quote-icon {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 3rem;
    color: rgba(232, 19, 39, 0.08);
    font-family: serif;
}
.rating-stars {
    color: #ffc107;
    margin-bottom: 15px;
}

/* Certifications Bar */
.cert-section {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 40px 0;
    background-color: var(--accent-color);
}
.cert-logo {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #888888;
    text-align: center;
    border: 2px dashed #cccccc;
    padding: 15px 25px;
    border-radius: 6px;
    transition: var(--transition-fast);
}
.cert-logo:hover {
    color: var(--secondary-color);
    border-color: var(--primary-color);
    background-color: #ffffff;
}

/* CTA Banners */
.cta-banner {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #222222 100%);
    color: #ffffff;
    border-radius: 16px;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
}
.cta-banner::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(232, 19, 39, 0.15) 0%, rgba(0,0,0,0) 70%);
    bottom: -100px;
    right: -50px;
}
.cta-banner h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

/* Footer Section */
footer {
    background-color: var(--dark-accent);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}
footer h5 {
    color: #ffffff;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}
footer h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}
footer ul li {
    margin-bottom: 12px;
}
footer ul li a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--transition-fast);
}
footer ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}
footer .footer-bottom {
    background-color: #0b0b0b;
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
}

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

/* Intersection observer scroll animations */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Quantity selector */
.quantity-control {
    display: inline-flex;
    border: 1px solid #cccccc;
    border-radius: 25px;
    overflow: hidden;
}
.quantity-control button {
    background-color: var(--accent-color);
    border: none;
    width: 35px;
    height: 35px;
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition-fast);
}
.quantity-control button:hover {
    background-color: #e0e0e0;
}
.quantity-control input {
    width: 45px;
    text-align: center;
    border: none;
    outline: none;
    font-weight: 600;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition-smooth);
}
.whatsapp-float:hover {
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.3);
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: var(--secondary-color);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}
.back-to-top.visible {
    opacity: 0.8;
    visibility: visible;
}
.back-to-top:hover {
    opacity: 1;
    background-color: var(--primary-color);
}

/* Toast Notifications styling */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}
.custom-toast {
    background-color: var(--secondary-color);
    color: #ffffff;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 4px solid var(--primary-color);
    animation: slideInRight 0.3s forwards;
}
@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Admin Dashboard Elements */
.admin-sidebar {
    background-color: var(--dark-accent);
    color: #ffffff;
    min-height: 100vh;
}
.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.7);
    text-transform: none;
    letter-spacing: 0px;
    font-weight: 400;
}
.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active {
    color: #ffffff !important;
    background-color: rgba(255,255,255,0.05);
}
.admin-sidebar .nav-link::after {
    display: none;
}
.metric-card {
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    transition: var(--transition-smooth);
}
.metric-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}
.metric-icon {
    font-size: 2.2rem;
    opacity: 0.8;
}

/* Invoice printable area */
@media print {
    body * {
        visibility: hidden;
    }
    #invoice-print-area, #invoice-print-area * {
        visibility: visible;
    }
    #invoice-print-area {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
    .no-print {
        display: none !important;
    }
}

/* Mobile Responsiveness Media Queries */
@media (max-width: 991.98px) {
    .carousel-content h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 767.98px) {
    .hero-slider-container {
        height: 70vh;
        min-height: 420px;
    }
    .carousel-content h1 {
        font-size: 2.0rem;
        margin-bottom: 15px;
    }
    .carousel-content p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    .carousel-content .btn-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 10px !important;
    }
    .carousel-content .btn-wrapper .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    .hero-slider-container {
        height: 65vh;
        min-height: 380px;
    }
    .carousel-content h1 {
        font-size: 1.65rem;
    }
    .carousel-content p {
        font-size: 0.88rem;
        line-height: 1.5;
    }
}

/* Bottom Mobile Navigation Bar styling */
.bottom-mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
    z-index: 1050;
}

.bottom-mobile-nav a {
    color: var(--secondary-color);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 500;
    transition: var(--transition-fast);
    padding: 5px 0;
}

.bottom-mobile-nav a i {
    font-size: 20px;
    margin-bottom: 2px;
}

.bottom-mobile-nav a:hover, .bottom-mobile-nav a.active {
    color: var(--primary-color) !important;
}

/* Adjust paddings on mobile layout */
@media (max-width: 767.98px) {
    body {
        padding-bottom: 60px;
    }
    .whatsapp-float, .back-to-top {
        bottom: 80px;
    }
}

/* Premium WhatsApp Button style */
.btn-premium-whatsapp {
    background-color: #25D366;
    color: #ffffff;
    border: 2px solid #25D366;
    border-radius: 30px;
    padding: 10px 24px;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
}
.btn-premium-whatsapp:hover {
    background-color: transparent;
    color: #25D366;
    border-color: #25D366;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

/* Preloader Styling */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s;
    opacity: 1;
    visibility: visible;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.preloader-logo {
    height: 120px;
    width: auto;
    object-fit: contain;
    animation: preloaderPulse 2s infinite ease-in-out;
}

.preloader-spinner-box {
    position: relative;
    width: 50px;
    height: 50px;
}

.preloader-spinner {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    border: 3px solid rgba(232, 19, 39, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: preloaderSpin 1s linear infinite;
}

@keyframes preloaderPulse {
    0%, 100% {
        transform: scale(0.95);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

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



