/* Niflux Website Styles */

/* Base Styles */
:root {
    --primary: #e11d48;
    --primary-light: #fecaca;
    --primary-dark: #9f1239;
    --secondary: #f87171;
    --text-dark: #1f2937;
    --text-light: #f9fafb;
    --bg-light: #f9fafb;
    --bg-dark: #111827;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Navbar Styles */
.navbar {
    transition: var(--transition);
}

.navbar-scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.nav-link {
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-content {
    z-index: 10;
}

.hero-buttons a {
    transition: var(--transition);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.hero-buttons a:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Product Cards */
.product-card {
    transition: var(--transition);
    overflow: hidden;
    perspective: 1000px;
}

.product-image-container {
    overflow: hidden;
    border-radius: 0.5rem;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
}

.product-image {
    width: 100%;
    height: 300px;
    object-fit: contain;
    transition: transform 0.6s ease;
}

.product-card:hover .product-image-container {
    transform: rotateY(10deg) rotateX(5deg);
}

.product-card:hover .product-image {
    transform: scale(1.1) translateZ(20px);
}

.product-button {
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    transition: var(--transition);
}

.product-button:hover {
    background-color: var(--primary);
    color: white;
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes shine {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

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

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

@keyframes slideInLeft {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Animation Classes */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-pulse-light {
    animation: pulse 2s ease-in-out infinite;
}

.animate-draw {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: draw 2s forwards;
}

.animate-ray {
    opacity: 0;
    animation: pulse 2s ease-in-out infinite;
}

.animate-fade-in {
    animation: fadeIn 1s forwards;
}

.animate-slide-in-left {
    animation: slideInLeft 1s forwards;
}

.animate-slide-in-right {
    animation: slideInRight 1s forwards;
}

.animate-bounce-in {
    animation: bounceIn 0.8s forwards;
}

.animate-shine {
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.8) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 200% 100%;
    animation: shine 2s infinite;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 6rem;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.125rem;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons a {
        width: 100%;
        text-align: center;
    }
    
    .product-card {
        margin-bottom: 2rem;
    }
}

@media (max-width: 640px) {
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .counter-section .text-5xl {
        font-size: 2.5rem;
    }
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.2);
}

.form-input.border-red-600 {
    border-color: var(--primary);
}

.submit-button {
    background-color: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    transition: var(--transition);
    cursor: pointer;
}

.submit-button:hover {
    background-color: var(--primary-dark);
}

.submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Success Message */
.success-message {
    background-color: #10b981;
    color: white;
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1.5rem;
    animation: fadeIn 0.5s forwards;
}

/* Footer Styles */
footer {
    background-color: var(--primary-dark);
}

footer a {
    transition: var(--transition);
}
