/*
 * Full Optimized & Enhanced CSS for Ayush Clothes Website
 *
 * This stylesheet adds advanced 3D and animation effects for a highly
 * dynamic and immersive user experience.
 *
 * New Features:
 * - 3D Interactive Tilt Cards
 * - Hero Section Particle Background
 * - Hero H1 Text Shuffle Animation
 * - Parallax Background Effect
 * - Gallery Image Curtain Reveal
 */

/* =========================================================================
   1. Root Variables & General Styling
   ========================================================================= */
:root {
    --light-pink: #f8e1e1;
    --beige: #f5f5dc;
    --white: #ffffff;
    --dark-text: #333333;
    --soft-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --dark-background: #1a1a1a;
    --gray-text: #cccccc;
    --highlight-green: #4CAF50;
    --red-tag: #ff0000;
    --neon-green: #39FF14;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background-color: var(--white);
    color: var(--dark-text);
    overflow-x: hidden;
    cursor: none;
}
h1, h2, h3 { font-weight: 600; margin-bottom: 0.5em; text-align: center; }
section { padding: 80px 5%; position: relative; overflow: hidden; }

/* =========================================================================
   2. Custom Cursor (Enhanced)
   ========================================================================= */
.cursor-dot, .cursor-follower {
    position: fixed; top: -20px; left: -20px; pointer-events: none; z-index: 9999; border-radius: 50%;
}
.cursor-dot {
    width: 6px; height: 6px; background-color: var(--neon-green); transition: transform 0.2s linear;
}
.cursor-follower {
    width: 30px; height: 30px; border: 2px solid var(--highlight-green);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s ease, border-color 0.3s ease;
}
.cursor-follower.active {
    transform: scale(1.8); background-color: rgba(76, 175, 80, 0.2);
}
.cursor-follower.mousedown {
    transform: scale(0.8); border-color: var(--neon-green);
}
@media (max-width: 768px) {
    .cursor-dot, .cursor-follower { display: none; }
    body { cursor: auto; }
}

/* =========================================================================
   3. On-Scroll & Reveal Animations
   ========================================================================= */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.animate-on-scroll.is-visible {
    opacity: 1; transform: translateY(0);
}

/* NEW: Gallery Image Reveal Effect */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}
.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--beige);
    transform: translateX(-101%);
    transition: transform 1s cubic-bezier(0.19, 1, 0.22, 1);
}
.gallery-item.is-visible::after {
    transform: translateX(101%);
}
.gallery-item img {
    transition-delay: 0.4s !important; /* Delay image appearance until after curtain */
}


/* =========================================================================
   4. Header & Navigation
   ========================================================================= */
.main-header {
    position: sticky; top: 0; left: 0; width: 100%; z-index: 1000;
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 5%; background-color: rgba(26, 26, 26, 0.8);
    box-shadow: var(--soft-shadow); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.logo {
    font-weight: 700; font-size: 1.5rem; color: var(--white); text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    text-shadow: 0 1px 0 #ccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbb; /* Subtle 3D Text */
}
.logo:hover {
    color: var(--neon-green);
    text-shadow: 0 0 5px var(--neon-green), 0 0 10px var(--neon-green), 0 0 15px var(--neon-green);
}
.nav-links ul { list-style: none; display: flex; }
.nav-links ul li { margin-left: 30px; }
.nav-links a { position: relative; text-decoration: none; color: var(--gray-text); font-weight: 500; padding: 5px 0; transition: color 0.3s ease; }
.nav-links a::after {
    content: ''; position: absolute; width: 100%; transform: scaleX(0); height: 2px;
    bottom: -5px; left: 0; background-color: var(--white);
    transform-origin: bottom right; transition: transform 0.25s ease-out;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: bottom left; }
.hamburger { display: none; cursor: pointer; flex-direction: column; justify-content: space-around; width: 25px; height: 20px; }
.hamburger .bar { width: 100%; height: 3px; background-color: var(--white); transition: all 0.3s ease; }

/* =========================================================================
   5. Hero Section - Advanced Effects
   ========================================================================= */
.hero-section {
    min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
    align-items: center; text-align: center; color: var(--white); padding: 100px 5% 40px;
    background-color: var(--dark-background);
}
/* NEW: Animated Particle Background */
.hero-section::before, .hero-section::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    border-radius: 50%; background: radial-gradient(circle, var(--neon-green) 1px, transparent 1.5px);
    background-size: 30px 30px; z-index: 0; pointer-events: none;
}
.hero-section::before { animation: particles 20s linear infinite; }
.hero-section::after { animation: particles 25s linear infinite reverse; background-size: 50px 50px; }
@keyframes particles { from { transform: translateY(0); } to { transform: translateY(-100vh); } }

.hero-content { z-index: 1; max-width: 900px; margin-bottom: 80px; }
.new-collection-tag {
    background-color: rgba(255, 255, 255, 0.1); color: var(--gray-text);
    padding: 8px 15px; border-radius: 20px; font-size: 0.9em;
    margin-bottom: 20px; display: inline-block;
}
.hero-content h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem); margin-bottom: 0.3em;
    color: var(--white); line-height: 1.1; font-family: "Courier New", monospace;
}
.hero-content p {
    font-size: clamp(1rem, 3vw, 1.25rem); margin-bottom: 2.5em; color: var(--gray-text);
    max-width: 700px; margin-left: auto; margin-right: auto;
    animation: fadeIn 1.5s ease-in-out 0.5s forwards; opacity: 0;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.cta-button {
    text-decoration: none; color: var(--dark-background); background-color: var(--white);
    padding: 15px 40px; border-radius: 50px; font-weight: 600; box-shadow: var(--soft-shadow);
    position: relative; overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none; cursor: pointer; font-size: 1.1rem; z-index: 1;
}
.cta-button:active { transform: scale(0.97); box-shadow: 0 2px 10px rgba(0,0,0,0.15); } /* 3D Press */
.cta-button::after {
    content: ''; position: absolute; top: 0; left: -100%; width: 200%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.7s ease;
}
.cta-button:hover::after { left: 100%; }

/* Hero Carousel Marquee */
.hero-product-carousel-wrapper {
    width: 100%; display: flex; overflow: hidden; z-index: 1;
    -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
    mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
    animation-play-state: running; /* Controlled by JS */
}
.hero-product-carousel {
    display: flex; align-items: flex-end; gap: 20px; flex-shrink: 0;
    animation: marquee 40s linear infinite;
}
@keyframes marquee { from { transform: translateX(0%); } to { transform: translateX(-50%); } }

.carousel-item {
    position: relative; width: 200px; height: 300px; border-radius: 15px;
    overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease-out, box-shadow 0.4s ease-out;
    background-color: rgba(255, 255, 255, 0.1); flex-shrink: 0;
}
.carousel-item:nth-child(even) { transform: translateY(-20px); }
.carousel-item:hover { transform: translateY(-40px) scale(1.08); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5); }
.carousel-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease-out; }
.carousel-item:hover img { transform: scale(1.05); }
.carousel-item .product-info {
    position: absolute; bottom: 0; left: 0; width: 100%; padding: 15px 10px;
    background: rgba(0, 0, 0, 0.7); color: var(--white); text-align: center;
    opacity: 0; transform: translateY(100%); transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}
.carousel-item:hover .product-info { opacity: 1; transform: translateY(0); }

/* =========================================================================
   6. Sections: Campaigns, Products, Gallery, Banner, Contact
   ========================================================================= */
.campaigns-section, .contact-section { background-color: var(--white); }
.gallery-section { background-color: var(--beige); }
.banner-section { background-color: var(--dark-background); color: var(--white); text-align: center;}
/* NEW: Parallax Background */
.products-section {
    background-color: var(--light-pink);
    background-image: url('https://www.transparenttextures.com/patterns/light-sketch.png');
    background-attachment: fixed;
    background-position: center;
    background-repeat: repeat;
    position: relative;
    z-index: 1;
}
.products-section::before { /* Darken overlay for text readability */
    content: ''; position: absolute; top:0; left:0; width: 100%; height: 100%;
    background-color: rgba(248, 225, 225, 0.8); z-index: -1;
}


/* --- Campaigns Section (NEW 3D Tilt) --- */
.featured-campaigns-title { font-size: 2.5rem; margin-bottom: 50px; }
.featured-campaigns-title .highlight { color: var(--highlight-green); }
.campaign-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px; max-width: 1200px; margin: 0 auto 50px auto;
}
.campaign-card {
    background-color: var(--white); border-radius: 8px; overflow: hidden;
    position: relative; box-shadow: var(--soft-shadow); text-align: center;
    transform-style: preserve-3d; /* Enable 3D space for children */
    transition: transform 0.4s ease, box-shadow 0.4s ease; /* Transition for reset */
}
.campaign-card img, .campaign-card h3, .campaign-card p {
    transform: translateZ(20px); /* Move content forward in 3D space */
}
.countdown-tag {
    position: absolute; top: 10px; left: 10px; background: var(--dark-text); color: var(--white);
    padding: 5px 10px; border-radius: 5px; font-size: 0.8em; font-weight: 600;
    transform: translateZ(50px); /* Make tag pop out */
}
.countdown-tag.red-tag { background-color: var(--red-tag); }
.campaign-card img { width: 100%; height: 300px; object-fit: cover; }
.campaign-card h3 { font-size: 1.1rem; padding: 15px 10px 5px 10px; }
.campaign-card p { font-size: 1.2rem; padding-bottom: 15px; font-weight: 600; color: var(--highlight-green); }

/* --- Gallery Section (New Reveal) --- */
.gallery-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px; max-width: 1200px; margin: auto;
}
.gallery-grid img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease, opacity 0.5s ease;
    opacity: 0; /* Initially hidden */
}
.gallery-item.is-visible img {
    opacity: 1; /* Fade in after curtain */
}
.gallery-grid img:hover { transform: scale(1.05); filter: brightness(1.1); }


/* Other Sections */
.view-more-button { display: inline-block; text-decoration: none; color: var(--dark-text); font-weight: 600; font-size: 1.1rem; margin-top: 20px; padding: 10px 20px; border: 2px solid var(--dark-text); border-radius: 50px; transition: background-color 0.3s, color 0.3s; }
.view-more-button span { display: inline-block; transition: transform 0.3s ease; margin-left: 5px; }
.view-more-button:hover { background-color: var(--dark-text); color: var(--white); }
.view-more-button:hover span { transform: translateX(5px); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; max-width: 1200px; margin: auto; }
.product-card { background-color: var(--white); border-radius: 8px; overflow: hidden; box-shadow: var(--soft-shadow); text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.product-card:hover { transform: scale(1.05); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12); }
.product-card img { width: 100%; height: 280px; object-fit: cover; }
.product-card h3 { padding: 15px 10px 0; }
.product-card p { padding-bottom: 15px; }
.banner-title { font-size: clamp(3rem, 10vw, 6rem); font-weight: 700; text-transform: uppercase; line-height: 1; }
.banner-title span { display: inline-block; opacity: 0; transform: translateY(100%) rotate(10deg); animation: textReveal 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }
.banner-title span:last-child { animation-delay: 0.2s; }
@keyframes textReveal { to { opacity: 1; transform: translateY(0) rotate(0); } }
.banner-subtitle { font-size: 1.2rem; opacity: 0; transition-delay: 0.5s !important; }
.contact-info-container { max-width: 600px; margin: auto; text-align: center; }
.contact-info-container p { margin: 10px 0; }
.social-icon { display: inline-flex; align-items: center; text-decoration: none; color: var(--white); padding: 12px 20px; border-radius: 50px; margin: 10px; font-weight: 500; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.social-icon:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.2); }
.social-icon i { font-size: 1.5rem; margin-right: 10px; }
.instagram-icon { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.whatsapp-icon { background: #25D366; }

/* =========================================================================
   7. Footer & Responsive Design
   ========================================================================= */
.footer { background-color: var(--dark-background); color: var(--gray-text); text-align: center; padding: 20px 5%; font-size: 0.9em; }
@media (max-width: 768px) {
    .nav-links {
        position: fixed; top: 70px; right: -100%; width: 100%; height: calc(100vh - 70px);
        background-color: var(--dark-background); flex-direction: column; align-items: center;
        justify-content: center; transition: right 0.4s ease-in-out;
    }
    .nav-links.active { right: 0; }
    .nav-links ul { flex-direction: column; align-items: center; }
    .nav-links ul li { margin: 20px 0; }
    .nav-links a { font-size: 1.5rem; }
    .hamburger { display: flex; }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    .hero-content { margin-bottom: 40px; }
    .carousel-item { width: 150px; height: 225px; }
    .products-section { background-attachment: scroll; } /* Disable parallax on mobile for performance */
}