/*
Theme Name: EnhanceTech Custom CashSwipe
Description: Custom WordPress theme for EnhanceTech with WooCommerce support
Author: Krishav Gandhi
Version: 1.5
*/

/* Add all your existing CSS styles here */
@keyframes fadeInUp {
    0% { 
        opacity: 0; 
        transform: translateY(40px); 
    }
    100% { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes fade-in {
    0% { 
        opacity: 0; 
        transform: translateY(20px) scale(0.95); 
    }
    100% { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

@keyframes buttonGlow {
    0% { 
        box-shadow: 0 0 20px rgba(239, 68, 68, 0.5), 0 0 40px rgba(239, 68, 68, 0.3), 0 0 60px rgba(239, 68, 68, 0.1);
    }
    100% { 
        box-shadow: 0 0 30px rgba(239, 68, 68, 0.8), 0 0 60px rgba(239, 68, 68, 0.5), 0 0 90px rgba(239, 68, 68, 0.3);
    }
}

.animate-fade-in {
    animation: fade-in 0.3s ease-out;
}

.hidden {
    display: none;
}

.show {
    display: block;
}

.nav-button:hover {
    text-shadow: 0 0 15px rgba(239, 68, 68, 0.8) !important;
    transform: translateY(-1px) !important;
}

.nav-button.active {
    text-shadow: 0 0 15px rgba(239, 68, 68, 0.8) !important;
}

.mobile-nav-button {
    padding: 16px 20px;
    margin: 6px 0;
    transition: all 0.3s ease;
}

.mobile-nav-button:hover {
    text-shadow: 0 0 15px rgba(239, 68, 68, 0.8);
    transform: translateX(4px);
}

.mobile-nav-button.active {
    text-shadow: 0 0 15px rgba(239, 68, 68, 0.8);
}

/* Plane animation */
@keyframes planeFlyAcross {
    0% {
        left: -200px;
        opacity: 0;
        transform: translateY(-50%) rotate(-15deg) scale(0.8);
    }
    5% {
        opacity: 1;
        transform: translateY(-50%) rotate(-10deg) scale(1);
    }
    95% {
        opacity: 1;
        transform: translateY(-50%) rotate(10deg) scale(1);
    }
    100% {
        left: calc(100% + 200px);
        opacity: 0;
        transform: translateY(-50%) rotate(15deg) scale(0.8);
    }
}

.flying-plane {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 120px;
    height: 60px;
    z-index: 10;
    animation: planeFlyAcross 1.5s ease-in-out forwards;
    filter: drop-shadow(0 0 15px rgba(239, 68, 68, 0.8));
}

.flying-plane img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: perspective(100px) rotateX(20deg);
}

/* Letter animations - triggered by plane */
@keyframes letterPopUp {
    0% {
        opacity: 0;
        transform: translateY(100px) scale(0.3) rotateY(180deg);
    }
    50% {
        transform: translateY(-20px) scale(1.1) rotateY(0deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotateY(0deg);
    }
}

.letter-hover {
    opacity: 0;
    transform: translateY(100px) scale(0.3) rotateY(180deg);
}

.letter-hover.animate {
    animation: letterPopUp 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.letter-hover:nth-child(1).animate { animation-delay: 0.05s; }
.letter-hover:nth-child(2).animate { animation-delay: 0.1s; }
.letter-hover:nth-child(3).animate { animation-delay: 0.15s; }
.letter-hover:nth-child(4).animate { animation-delay: 0.2s; }
.letter-hover:nth-child(5).animate { animation-delay: 0.25s; }
.letter-hover:nth-child(6).animate { animation-delay: 0.3s; }
.letter-hover:nth-child(7).animate { animation-delay: 0.35s; }
.letter-hover:nth-child(8).animate { animation-delay: 0.4s; }
.letter-hover:nth-child(9).animate { animation-delay: 0.45s; }
.letter-hover:nth-child(10).animate { animation-delay: 0.5s; }
.letter-hover:nth-child(11).animate { animation-delay: 0.55s; }

/* Enhanced card animations */
@keyframes cardSlideIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes cardGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(239, 68, 68, 0.6);
    }
}

.letter-card {
    animation: cardSlideIn 0.4s ease-out forwards;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(20, 20, 20, 0.95));
    border: 2px solid rgba(239, 68, 68, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
    animation: cardGlow 2s ease-in-out infinite;
    width: 100vw;
    max-width: none;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.letter-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(239, 68, 68, 0.4);
    border-color: rgba(239, 68, 68, 0.6);
}

.letter-icon {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 30px rgba(239, 68, 68, 0.8);
    }
}

/* Hide decorative clouds on mobile */
@media (max-width: 768px) {
    .decorative-cloud {
        display: none !important;
    }
}

/* WooCommerce Styling */
.woocommerce .woocommerce-ordering select,
.woocommerce-page .woocommerce-ordering select {
    background-color: #374151;
    color: white;
    border: 1px solid #6b7280;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    background-color: #1f2937;
    border: 1px solid #374151;
}

.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product h3,
.woocommerce-page ul.products li.product h2,
.woocommerce-page ul.products li.product h3 {
    color: white;
}

.woocommerce .price,
.woocommerce-page .price {
    color: #ef4444;
    font-weight: bold;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    background-color: #ef4444;
    color: white;
    border: none;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    background-color: #dc2626;
}

/* Single Product Page Styling */
.single-product .woocommerce div.product .woocommerce-product-gallery {
    background: transparent;
}

.single-product .woocommerce div.product form.cart {
    margin: 0;
}

.single-product .woocommerce div.product form.cart .variations {
    margin-bottom: 1rem;
}

.single-product .woocommerce div.product form.cart .variations td,
.single-product .woocommerce div.product form.cart .variations th {
    border: none;
    padding: 0.5rem 0;
    color: white;
}

.single-product .woocommerce div.product form.cart .variations select {
    background-color: #374151;
    color: white;
    border: 1px solid #6b7280;
    border-radius: 0.375rem;
    padding: 0.5rem;
    width: 100%;
}

.single-product .woocommerce div.product form.cart .quantity input {
    background-color: #374151;
    color: white;
    border: 1px solid #6b7280;
    border-radius: 0.375rem;
    width: 60px;
    text-align: center;
}

.single-product .woocommerce div.product form.cart button {
    background-color: #ef4444 !important;
    color: white !important;
    border: none !important;
    border-radius: 0.5rem !important;
    padding: 0.75rem 2rem !important;
    font-weight: 600 !important;
    margin-left: 1rem;
}

.single-product .woocommerce div.product form.cart button:hover {
    background-color: #dc2626 !important;
}

/* Product tabs styling */
.woocommerce div.product .woocommerce-tabs ul.tabs {
    background: transparent;
    border-bottom: 1px solid #374151;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    background: transparent;
    border: 1px solid #374151;
    border-bottom: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    color: #9ca3af;
    padding: 1rem 1.5rem;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: #ef4444;
    background: #1f2937;
}

.woocommerce div.product .woocommerce-tabs .panel {
    background: #1f2937;
    color: white;
    border: 1px solid #374151;
    border-top: none;
    padding: 2rem;
}
