/* Jasper Tech V2 - Clean Professional Dark Theme */

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

body {
    font-family: 'Inter', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: #BEF574;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9FE65C;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #BEF574 0%, #9FE65C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card Styles */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(190, 245, 116, 0.2);
}

/* Button Styles */
.btn-primary {
    background: #BEF574;
    color: #000;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #9FE65C;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(190, 245, 116, 0.3);
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

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

.carousel-scroll {
    animation: scroll 30s linear infinite;
}

.carousel-scroll:hover {
    animation-play-state: paused;
}

/* Section Divider */
.section-divider {
    height: 2px;
    background: linear-gradient(to right, transparent 0%, #BEF574 50%, transparent 100%);
    margin: 2rem auto;
    max-width: 100px;
}

/* Service Icons */
.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #BEF574 0%, #9FE65C 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #000;
    margin: 0 auto 1rem;
    transition: transform 0.3s ease;
}

.service-icon:hover {
    transform: scale(1.1);
}

/* Header Shadow on Scroll */
#header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Toast Notifications */
.toast {
    position: fixed;
    top: 100px;
    right: 20px;
    background: #BEF574;
    color: #000;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

/* Mobile Menu */
#mobile-menu {
    transition: max-height 0.3s ease;
}

/* Form Focus */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #BEF574;
    box-shadow: 0 0 0 3px rgba(190, 245, 116, 0.1);
}

/* Product Cards */
.product-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-card:hover {
    border-color: #BEF574;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(190, 245, 116, 0.2);
}

/* Counter Animation */
@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.counter {
    animation: countUp 0.5s ease-out;
}

/* Loading Spinner */
.loader {
    border: 3px solid rgba(190, 245, 116, 0.2);
    border-top-color: #BEF574;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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

/* Default Heading Colors - Fix grey heading issue on production */
h1, h2, h3, h4, h5, h6 {
    color: inherit; /* Inherit from parent or Tailwind utility classes */
}

/* Ensure headings without explicit color class default to white on dark backgrounds */
section h1:not([class*="text-"]), 
section h2:not([class*="text-"]), 
section h3:not([class*="text-"]) {
    color: #f3f4f6; /* text-gray-100 equivalent */
}

/* Ensure gradient text class always works */
.gradient-text {
    background: linear-gradient(135deg, #BEF574 0%, #9FE65C 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    color: transparent !important;
}

/* Responsive Typography */
@media (max-width: 640px) {
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.5rem;
    }
}
