/* 2026 Ultra-Modern CSS Animations - Making the Homepage WOW */

/* Enhanced Scroll Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px) rotateY(-15deg);
    }
    to {
        opacity: 1;
        transform: translateX(0) rotateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px) rotateY(15deg);
    }
    to {
        opacity: 1;
        transform: translateX(0) rotateY(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Staggered animations for elements */
.hero-title {
    animation: slideInUp 1s ease-out forwards;
}

.hero-subtitle {
    animation: slideInUp 1s ease-out 0.2s forwards;
    opacity: 0;
    animation-fill-mode: forwards;
}

.hero-actions {
    animation: bounceIn 1s ease-out 0.4s forwards;
    opacity: 0;
    animation-fill-mode: forwards;
}

.hero-stats {
    animation: fadeInScale 1s ease-out 0.6s forwards;
    opacity: 0;
    animation-fill-mode: forwards;
}

.feature-card:nth-child(1) {
    animation: slideInLeft 0.8s ease-out 0.8s forwards;
    opacity: 0;
    animation-fill-mode: forwards;
}

.feature-card:nth-child(2) {
    animation: slideInUp 0.8s ease-out 1s forwards;
    opacity: 0;
    animation-fill-mode: forwards;
}

.feature-card:nth-child(3) {
    animation: slideInRight 0.8s ease-out 1.2s forwards;
    opacity: 0;
    animation-fill-mode: forwards;
}

.section-header {
    animation: fadeInScale 1s ease-out forwards;
    opacity: 0;
    animation-fill-mode: forwards;
}

.products-grid {
    animation: slideInUp 1s ease-out 0.3s forwards;
    opacity: 0;
    animation-fill-mode: forwards;
}

.offer-section {
    animation: slideInUp 1s ease-out forwards;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* Advanced hover effects */
.product-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.product-card:hover {
    transform: translateY(-16px) rotateX(8deg) rotateY(2deg);
    box-shadow:
        0 32px 64px -12px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(249, 115, 22, 0.1),
        0 0 40px rgba(249, 115, 22, 0.1);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(249, 115, 22, 0.1) 0%,
        rgba(59, 130, 246, 0.05) 50%,
        rgba(16, 185, 129, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: inherit;
    z-index: -1;
}

.product-card:hover::before {
    opacity: 1;
}

.product-image img {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image img {
    transform: scale(1.1) rotateY(5deg) rotateX(-2deg);
    filter: brightness(1.1) contrast(1.05);
}

/* Interactive button effects */
.btn-primary {
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(1px) scale(0.98);
}

/* Typing animation for hero title */
@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    0%, 50% { border-color: transparent; }
    51%, 100% { border-color: var(--accent); }
}

.hero-title .gradient-text {
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    animation: typing 3s steps(30, end) 1s forwards;
    border-right: 3px solid var(--accent);
    width: 0;
}

.hero-title .gradient-text::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--accent);
    animation: blink 1s infinite;
}

/* Magnetic effect on buttons */
.btn-primary,
.btn-secondary {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-4px) scale(1.02);
}

/* Parallax background effect */
@keyframes parallaxMove {
.orange-text {
    color: var(--accent);
    font-weight: 700;
}
    0% { transform: translateZ(0) rotateX(0); }
    50% { transform: translateZ(10px) rotateX(1deg); }
    100% { transform: translateZ(0) rotateX(0); }
}

.hero-bg {
    animation: parallaxMove 20s ease-in-out infinite;
    transform-style: preserve-3d;
}

/* Glass morphism enhancements */
.glass-header {
    backdrop-filter: blur(20px) saturate(180%);
    background: rgba(15, 23, 42, 0.85);
    border-bottom: 1px solid rgba(249, 115, 22, 0.1);
}

.glass-header::before {
    background: linear-gradient(90deg,
        transparent,
        rgba(249, 115, 22, 0.3),
        rgba(59, 130, 246, 0.2),
        transparent);
    animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% {
        opacity: 0.3;
        transform: translateX(-100%) scaleX(1);
    }
    50% {
        opacity: 0.8;
        transform: translateX(100%) scaleX(1.2);
    }
}

/* Enhanced feature cards */
.feature-card {
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent,
        rgba(249, 115, 22, 0.1),
        transparent 60deg,
        rgba(59, 130, 246, 0.1),
        transparent 120deg,
        rgba(16, 185, 129, 0.1),
        transparent
    );
    animation: rotate 8s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.feature-icon {
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.feature-card:hover .feature-icon {
    transform: scale(1.2) rotate(10deg);
    filter: drop-shadow(0 8px 16px rgba(249, 115, 22, 0.3));
}

/* Stats counter animation */
@keyframes countUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.stat-card {
    animation: countUp 0.8s ease-out forwards;
    opacity: 0;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.3s; }
.stat-card:nth-child(3) { animation-delay: 0.5s; }

/* Enhanced navigation */
.nav-link {
/* Weather Card Integration */
.weather-card {
    position: relative;
    overflow: hidden;
}

.weather-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.weather-card small {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    opacity: 0.8;
    color: var(--text-muted);
}

.weather-tip {
    margin-top: 1rem;
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border);
    font-size: 0.85rem;
}

.weather-tip strong {
    color: var(--accent);
    font-weight: 600;
}
    position: relative;
/* Offer Section Grid Layout */
.offer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.offer-form-section {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 2rem;
}

.price-calculator-section {
    display: flex;
    justify-content: center;
}

@media (max-width: 1024px) {
    .offer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .offer-form-section,
    .price-calculator-section {
        max-width: 600px;
        margin: 0 auto;
    }
}
/* Recent Orders Social Proof */
.recent-orders {
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
}

.recent-orders h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    text-align: center;
    margin-bottom: 2rem;
}

.orders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.order-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.order-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(249, 115, 22, 0.3);
}

.order-avatar {
    font-size: 2rem;
    flex-shrink: 0;
}

.order-content p:first-child {
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.order-content p:last-child {
    color: var(--text-light);
    font-style: italic;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.order-content small {
    color: var(--text-muted);
    font-size: 0.8rem;
    background: var(--bg);
    padding: 0.25rem 0.5rem;
    border-radius: 50px;
    display: inline-block;
}
    overflow: hidden;
}

/* Enhanced text contrast for 3D scene */
.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    border-radius: var(--border-radius);
    border: 1px solid rgba(249, 115, 22, 0.1);
}

.hero-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.15);
    border-radius: inherit;
    z-index: -1;
}

.hero-title {
    color: var(--text);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    color: var(--text-light);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    transition: left 0.3s ease;
}

.nav-link:hover::before {
    left: 0;
}

/* Loading animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes skeleton {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}

.product-card-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: skeleton 1.5s infinite;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .hero-title .gradient-text {
        animation: none;
        border-right: none;
        width: auto;
    }

    .product-card:hover {
        transform: translateY(-8px) scale(1.02);
    }

    .feature-card:hover .feature-icon {
        transform: scale(1.1) rotate(5deg);
    }
}

/* Performance optimizations */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode enhancements */
@media (prefers-color-scheme: dark) {
    .product-card:hover {
        box-shadow:
            0 32px 64px -12px rgba(0, 0, 0, 0.6),
            0 0 0 1px rgba(249, 115, 22, 0.2),
            0 0 40px rgba(249, 115, 22, 0.2);
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .glass-header {
        background: rgba(15, 23, 42, 0.95);
        border-bottom: 2px solid var(--accent);
    }

    .feature-card:hover::before {
        opacity: 0.8;
    }
}