/*
Theme Name: Pixenco Studio
Theme URI: https://pixenco.com
Author: Pixenco Studio Team
Description: A premium, modern, and high-converting classic WordPress theme for digital agencies, designed with a sleek dark tech theme and vibrant teal accents.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pixenco-studio
*/

/* Reset & Base styles */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar for Dark Mode */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #0f172a; /* Slate 900 */
}
::-webkit-scrollbar-thumb {
    background: #1e293b; /* Slate 800 */
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #40B48F; /* Teal 500 */
}

/* Classic WordPress Core Alignments */
.aligncenter {
    display: block;
    margin: 1.5rem auto;
}
.alignleft {
    float: left;
    margin: 0.5rem 1.5rem 1.5rem 0;
}
.alignright {
    float: right;
    margin: 0.5rem 0 1.5rem 1.5rem;
}
.alignwide {
    max-width: 1200px;
}
.alignfull {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Custom glow utility for Teal Accents */
.teal-glow {
    box-shadow: 0 0 20px rgba(64, 180, 143, 0.15);
}

.teal-glow-strong {
    box-shadow: 0 0 25px rgba(64, 180, 143, 0.35);
}

.teal-border-glow:hover {
    box-shadow: 0 0 15px rgba(64, 180, 143, 0.25);
    border-color: rgba(64, 180, 143, 0.6);
}

/* =============================================
   SCROLL-REVEAL ANIMATIONS
   ============================================= */

/* Base reveal state — hidden and offset */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Activated state — visible and in place */
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered reveal delays for grid children */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* Slide from left variant */
.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

/* Slide from right variant */
.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Scale-up variant */
.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* =============================================
   PAGE PRELOADER
   ============================================= */

.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #020617; /* slate-950 */
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-logo {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, #319074, #55a899);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 28px;
    color: #fff;
    animation: preloaderPulse 1.5s ease-in-out infinite;
    position: relative;
}

.preloader-ring {
    position: absolute;
    width: 90px;
    height: 90px;
    border: 2px solid rgba(64, 180, 143, 0.3);
    border-top-color: #40B48F;
    border-radius: 50%;
    animation: preloaderSpin 1s linear infinite;
}

@keyframes preloaderPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(64, 180, 143, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 30px 10px rgba(64, 180, 143, 0.15); }
}

@keyframes preloaderSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =============================================
   BUTTON RIPPLE EFFECT
   ============================================= */

.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple .ripple-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: rippleExpand 0.6s ease-out forwards;
    pointer-events: none;
}

@keyframes rippleExpand {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* =============================================
   FAQ ACCORDION
   ============================================= */

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                padding 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-answer.open {
    max-height: 300px;
}

.faq-chevron {
    transition: transform 0.3s ease;
}

.faq-chevron.rotated {
    transform: rotate(180deg);
}

/* =============================================
   TESTIMONIALS CAROUSEL
   ============================================= */

.testimonial-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-card {
    min-width: 100%;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .testimonial-card {
        min-width: 50%;
    }
}

@media (min-width: 1024px) {
    .testimonial-card {
        min-width: 33.333%;
    }
}

/* =============================================
   FLOATING BUTTONS
   ============================================= */

/* WhatsApp bounce-in entrance */
@keyframes floatBounceIn {
    0% { transform: scale(0) rotate(-45deg); opacity: 0; }
    60% { transform: scale(1.15) rotate(0deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.float-bounce-in {
    animation: floatBounceIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* WhatsApp pulse ring */
@keyframes whatsappPulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-pulse {
    animation: whatsappPulse 2s ease-in-out infinite;
}

/* Scroll-to-top fade */
.scroll-top-btn {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    transform: translateY(10px);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* =============================================
   PORTFOLIO OVERLAY
   ============================================= */

.portfolio-overlay {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

/* =============================================
   LOGO BAR MARQUEE (optional subtle animation)
   ============================================= */

.logo-bar-item {
    transition: color 0.3s ease, transform 0.3s ease;
}

.logo-bar-item:hover {
    transform: scale(1.05);
}
