/* * home.css - Styles specific to the homepage
 * Party Surge Website
 */

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
    background: none;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(124, 58, 237, 0.2), transparent 50%);
    z-index: 0;
}

/* Center the content div on all screen sizes */
.hero .container {
    margin: 0 auto;
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Slideshow */
.slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}
.slideshow-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.0); /* Start at normal size for fade-in */
    transition: opacity 2s ease-in-out; /* Control fade duration */
}

.slideshow-item.active {
    opacity: 1;
    transform: scale(1.1); /* End scale (zoomed in) */
    transition: opacity 2s ease-in-out, transform 12s ease-out; /* 12s for a slow zoom */
}

.slideshow-item img { /* Ensure image covers the scaled container */
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Cards */
.category-card {
    transition: all 0.4s ease;
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    background-color: var(--light-bg);
    box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(124, 58, 237, 0.05), rgba(59, 130, 246, 0.05));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.4);
}

.category-card:hover::before {
    opacity: 1;
}

.category-card img {
    transition: transform 0.7s ease;
    height: 240px;
    object-fit: cover;
    width: 100%;
    filter: brightness(0.9);
}

.category-card:hover img {
    transform: scale(1.1);
    filter: brightness(1.05);
}

.card-content {
    position: relative;
    z-index: 2;
}

.card-link {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.card-link svg {
    transition: transform 0.3s ease;
}

.card-link:hover svg {
    transform: translateX(5px);
}

/* Testimonials */
.testimonial-card {
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.3);
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(124, 58, 237, 0.03), rgba(59, 130, 246, 0.03));
    z-index: -1;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 35px -12px rgba(0, 0, 0, 0.35);
}

.testimonial-quote {
    opacity: 0.6;
    transition: all 0.3s ease;
    transform: translateY(0);
}

.testimonial-card:hover .testimonial-quote {
    opacity: 0.9;
    transform: translateY(-5px);
}

/* Process Steps */
.process-step {
    transition: all 0.4s ease;
    background-color: var(--light-bg);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.process-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(124, 58, 237, 0.05), rgba(59, 130, 246, 0.05));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.process-step:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.4);
}

.process-step:hover::before {
    opacity: 1;
}

.step-number {
    background: var(--gradient-bg);
    box-shadow: 0 10px 20px -5px rgba(124, 58, 237, 0.5);
    transition: all 0.4s ease;
}

.process-step:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 15px 25px -5px rgba(124, 58, 237, 0.6);
}

/* Special Offer Section */
.bg-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero {
        text-align: center;
    }
    
    .category-card img {
        height: 200px;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hero .flex {
        justify-content: center;
    }
}

.hero-text-backdrop {
    background-color: rgba(0, 0, 0, 0.25); /* Subtle dark background */
    backdrop-filter: blur(4px); /* Frosted glass effect */
    -webkit-backdrop-filter: blur(4px); /* Safari support */
    border-radius: 0.75rem; /* Tailwind's rounded-xl */
    /* Padding is now applied directly in HTML using Tailwind classes for responsiveness */
}

/* Example for .btn-primary in css/base.css */
.btn-primary:hover {
    transform: translateY(-3px) scale(1.03); /* Slight lift and scale */
    box-shadow: 0 12px 25px -8px rgba(124, 58, 237, 0.5); /* More pronounced shadow */
}
.btn-primary:hover::before { /* If you have a ::before pseudo-element for gradient animation */
    width: 100%;
    opacity: 0.8; /* Example: make gradient slightly less intense on hover over text */
}

/* Example for .btn-outline in css/base.css */
.btn-outline:hover {
    border-color: white;
    background-color: rgba(255, 255, 255, 0.1); /* Slight fill */
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

/* UPDATED: Winter Season Banner Styles */
.season-banner {
    /* Cool winter gradient: dark blue to lighter blue */
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #60a5fa 100%);
    position: relative;
    overflow: hidden;
    padding-top: 90px;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 -5px 15px -5px rgba(0, 0, 0, 0.2);
}

/* NEW: Add text-shadow for readability */
.season-banner h2,
.season-banner p {
    text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.4);
}


/* Ensure banner content is on top of the effects */
.season-banner .container {
    position: relative;
    z-index: 2;
}

.season-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Subtle pattern from bg-pattern, but with different color */
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.08' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.btn-primary-discount {
    /* A contrasting button style for the discount - keeping amber/gold for warmth against the blue */
    background-color: #d97706; /* amber-600 */
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
.btn-primary-discount:hover {
    background-color: #b45309; /* amber-700 */
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

/* UPDATED: Falling Snow Animation */
.effect-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Allows clicking through the items */
    overflow: hidden;
    z-index: 0; /* Behind the content */
}

.snowflake {
    position: absolute;
    top: -10%; /* Start off-screen */
    /* White/Icy blue for snow */
    color: rgba(255, 255, 255, 0.6); 
    font-size: 1.5rem; 
    user-select: none;
    animation: fall 15s linear infinite;
    text-shadow: 0 0 5px rgba(255,255,255,0.8);
}

/* Keyframes for falling and slight side-to-side motion */
@keyframes fall {
    0% {
        transform: translateY(0) rotate(0deg) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translateY(10vh) rotate(45deg) translateX(10px);
    }
    50% {
        transform: translateY(50vh) rotate(180deg) translateX(-10px);
    }
    100% {
        transform: translateY(110vh) rotate(360deg) translateX(0); 
        opacity: 0;
    }
}

/* Stagger the snowflakes */
.snowflake:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 12s;
    font-size: 1.2rem;
}
.snowflake:nth-child(2) {
    left: 20%;
    animation-delay: -5s; 
    animation-duration: 15s;
    font-size: 1.8rem;
}
.snowflake:nth-child(3) {
    left: 35%;
    animation-delay: -10s;
    animation-duration: 13s;
    font-size: 1rem;
}
.snowflake:nth-child(4) {
    left: 50%;
    animation-delay: -3s;
    animation-duration: 10s;
}
.snowflake:nth-child(5) {
    left: 70%;
    animation-delay: -8s;
    animation-duration: 14s;
    font-size: 1.4rem;
}
.snowflake:nth-child(6) {
    left: 85%;
    animation-delay: -12s;
    animation-duration: 11s;
}
.snowflake:nth-child(7) {
    left: 75%;
    animation-delay: -3s;
    animation-duration: 13s;
    font-size: 0.8rem;
}
.snowflake:nth-child(8) {
    left: 60%;
    animation-delay: -6s;
    animation-duration: 10s;
}
.snowflake:nth-child(9) {
    left: 25%;
    animation-delay: -9s;
    animation-duration: 14s;
    font-size: 1.25rem;
}
.snowflake:nth-child(10) {
    left: 5%;
    animation-delay: -2s;
    animation-duration: 10s;
}


@media (max-width: 768px) {
    .season-banner .flex-col {
        align-items: center;
        text-align: center;
    }
    .season-banner .text-left {
        text-align: center;
    }

    .hero {
        text-align: center;
    }
    
    .category-card img {
        height: 200px;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hero .flex {
        justify-content: center;
    }
}