/*
Theme Name: صنایع پلاستیک ستاره (Setareh Plastic)
Theme URI: https://setarehplastic.com
Author: Dev Team (15 Years Experience)
Author URI: https://setarehplastic.com
Description: قالب حرفه ای، مدرن و سرعت بالای صنایع پلاستیک ستاره، طراحی شده به صورت کاملاً لوکال و سازگار با نت ایران، مجهز به پنل تنظیمات پیشرفته، سازگاری کامل با المنتور و وکامرس، سیستم ثبت درخواست مشاوره آژاکس (AJAX) و چندزبانه هوشمند بر پایه گوگل ترنسلیت.
Version: 1.0.0
License: GNU GPLv2 or later
Text Domain: setareh-plastic
*/

/* Import Vazirmatn Local Font */
@import url('assets/css/vazirmatn.css');

* { font-family: 'Vazirmatn', sans-serif; }

/* Force Hide Google UI */
.goog-te-banner-frame.skiptranslate, .goog-te-gadget-icon, #goog-gt-tt { display: none !important; }
body { top: 0px !important; }

/* Dynamic Filter Styles */
.product-card { transition: all 0.5s ease; }
.hidden-product { display: none; }
.filter-btn { transition: all 0.3s; }
.filter-btn.active { background: #e74c3c; color: white; }

/* 3D Tilt Effect CSS */
.tilt-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}
.tilt-content {
    transform: translateZ(30px);
}

/* Floating Buttons System */
.fab-container {
    position: fixed; bottom: 30px; right: 30px;
    z-index: 1000; display: flex; flex-direction: column; gap: 15px;
}
.fab-button {
    width: 55px; height: 55px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white; box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer; position: relative;
}
.fab-button:hover { transform: scale(1.1) rotate(5deg); }
.fab-button span {
    position: absolute; right: 65px; background: rgba(0,0,0,0.8);
    padding: 5px 12px; border-radius: 6px; font-size: 12px;
    white-space: nowrap; opacity: 0; pointer-events: none;
    transition: opacity 0.3s;
}
.fab-button:hover span { opacity: 1; }
.fab-call { background: #2ecc71; }
.fab-whatsapp { background: #25d366; }
.fab-bale { background: #fff; color: #00addd; border: 2px solid #00addd; }

/* Language Switcher */
.lang-flag {
    width: 24px; height: 16px; border-radius: 3px;
    cursor: pointer; transition: transform 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.lang-flag:hover { transform: scale(1.2); }

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #1a1a2e; }
::-webkit-scrollbar-thumb { background: #c0392b; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #e74c3c; }

/* Hero slider */
.hero-slider { position: relative; overflow: hidden; }
.slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; transition: opacity 1.2s ease-in-out;
    background-size: cover; background-position: center;
}
.slide.active { opacity: 1; }
.slide::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(192,57,43,0.7) 0%, rgba(26,26,46,0.8) 100%);
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(192,57,43,0.3); }
    50% { box-shadow: 0 0 40px rgba(192,57,43,0.6); }
}
@keyframes countUp {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

.animate-on-scroll {
    opacity: 0; transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
}
.animate-on-scroll.visible {
    opacity: 1; transform: translateY(0);
}
.animate-on-scroll.hidden-down {
    opacity: 0; transform: translateY(30px);
}

.float-animation { animation: float 3s ease-in-out infinite; }

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #e74c3c, #f39c12);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass card */
.glass-card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

/* Product card hover */
.product-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(192,57,43,0.3);
}
.product-card .product-img {
    transition: transform 0.5s ease;
}
.product-card:hover .product-img {
    transform: scale(1.1);
}

/* Nav styling */
.nav-link {
    position: relative; padding: 8px 0;
}
.nav-link::after {
    content: ''; position: absolute; bottom: 0; right: 0;
    width: 0; height: 2px;
    background: linear-gradient(90deg, #e74c3c, #f39c12);
    transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* Stat counter */
.stat-item {
    position: relative;
}
.stat-item::before {
    content: '';
    position: absolute;
    top: -10px; right: 50%; transform: translateX(50%);
    width: 60px; height: 3px;
    background: linear-gradient(90deg, #e74c3c, #f39c12);
    border-radius: 2px;
}

/* Mobile menu */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.open { transform: translateX(0); }

/* Gallery */
.gallery-item {
    overflow: hidden; border-radius: 12px;
    transition: all 0.4s ease;
}
.gallery-item:hover { transform: scale(1.03); }
.gallery-item img { transition: transform 0.6s ease; }
.gallery-item:hover img { transform: scale(1.15); }
.gallery-overlay {
    opacity: 0; transition: opacity 0.4s ease;
    background: linear-gradient(to top, rgba(192,57,43,0.8), transparent);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* Dot indicators */
.dot {
    width: 12px; height: 12px; border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer; transition: all 0.3s ease;
}
.dot.active {
    background: #e74c3c; width: 32px; border-radius: 6px;
}

/* Contact form */
.form-input {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    transition: all 0.3s ease;
}
.form-input:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 15px rgba(231,76,60,0.2);
    outline: none;
}

/* Particle bg */
.particles {
    position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.particle {
    position: absolute; border-radius: 50%;
    background: rgba(231,76,60,0.15);
    animation: float 6s ease-in-out infinite;
}

/* Star logo */
.star-logo {
    width: 60px; height: 60px;
    position: relative;
}
.star-logo svg { width: 100%; height: 100%; }

/* Back to top */
.back-to-top {
    position: fixed; bottom: 30px; left: 30px;
    width: 50px; height: 50px;
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    border-radius: 50%; z-index: 50;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; opacity: 0; transform: translateY(20px);
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(192,57,43,0.4);
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-3px); }

/* Section divider */
.section-divider {
    width: 80px; height: 4px; border-radius: 2px;
    background: linear-gradient(90deg, #e74c3c, #f39c12);
    margin: 0 auto;
}

/* Loading animation */
.loader {
    position: fixed; inset: 0; z-index: 9999;
    background: #0f0f23;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.5s ease;
}
.loader.hidden { opacity: 0; pointer-events: none; }
.loader-star {
    width: 80px; height: 80px;
    animation: pulse-glow 1.5s ease-in-out infinite, float 2s ease-in-out infinite;
}
