/* ===================================
   A³ TRÊS - Premium Landing Page
   Custom Styles & Animations
   =================================== */

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background: #F7941D;
    color: #FFFFFF;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #111111;
}

::-webkit-scrollbar-thumb {
    background: #F7941D;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #E07800;
}

/* ===================================
   Header Styles
   =================================== */
#header {
    background: transparent;
    transition: all 0.3s ease;
}

#header.scrolled {
    background: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ===================================
   Fade In Animations
   =================================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-60px);
    animation: fadeInLeft 0.8s ease forwards;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(60px);
    animation: fadeInRight 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scroll Animation Classes */
.scroll-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   Hero Section
   =================================== */
#hero {
    background: linear-gradient(135deg, #111111 0%, #2C2C2C 50%, #111111 100%);
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(247, 148, 29, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(247, 148, 29, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Scroll Indicator Animation */
@keyframes scroll {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(8px);
        opacity: 0.5;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-scroll {
    animation: scroll 1.5s ease-in-out infinite;
}

/* ===================================
   Product Mockups
   =================================== */
.product-mockup {
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-mockup::before {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 20px;
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.4) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.product-mockup:hover::before {
    opacity: 1;
}

.product-mockup:hover {
    transform: translateY(-10px) scale(1.02);
}

/* ===================================
   Benefit Cards
   =================================== */
.benefit-card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #F7941D, #E07800);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.benefit-card:hover::before {
    transform: scaleX(1);
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -8px rgba(0, 0, 0, 0.08), 0 8px 12px -6px rgba(0, 0, 0, 0.04);
}

.benefit-card:hover .bg-primary\/10 {
    background: rgba(247, 148, 29, 1);
}

.benefit-card:hover .bg-primary\/10 svg {
    color: #111111;
}

/* ===================================
   Product Cards
   =================================== */
.product-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
}

.product-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(247, 148, 29, 0.1),
        transparent
    );
    transform: rotate(45deg) translateX(-100%);
    transition: transform 0.6s ease;
}

.product-card:hover::after {
    transform: rotate(45deg) translateX(100%);
}

/* ===================================
   Application Cards
   =================================== */
.application-card {
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.application-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(247, 148, 29, 0.3) 0%,
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.application-card:hover::before {
    opacity: 1;
}

.application-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.25);
}

.application-card:hover svg {
    transform: scale(1.2) rotate(5deg);
}

/* ===================================
   Form Styles
   =================================== */
#catalog-form {
    position: relative;
    overflow: hidden;
}

#catalog-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #F7941D, #E07800, #F7941D);
    background-size: 200% 100%;
    animation: gradientMove 3s ease infinite;
}

@keyframes gradientMove {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

#catalog-form input:focus,
#catalog-form textarea:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(247, 148, 29, 0.15);
}

/* ===================================
   Button Styles
   =================================== */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

/* ===================================
   Trust Badge Animation
   =================================== */
.flex.items-center.gap-4 {
    transition: all 0.3s ease;
}

.flex.items-center.gap-4:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ===================================
   WhatsApp Float Button
   =================================== */
.fixed.bottom-6.right-6 {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(34, 197, 94, 0);
    }
}

/* ===================================
   Footer Hover Effects
   =================================== */
footer a {
    transition: all 0.3s ease;
}

footer a:hover {
    transform: translateY(-2px);
}

/* Social Icons */
footer .w-10.h-10 {
    transition: all 0.3s ease;
}

footer .w-10.h-10:hover {
    transform: translateY(-5px) scale(1.1);
}

/* ===================================
   Responsive Adjustments
   =================================== */
@media (max-width: 768px) {
    .fade-in-up,
    .fade-in-left,
    .fade-in-right {
        animation-duration: 0.6s;
    }
    
    .product-mockup {
        transform: scale(0.9);
    }
    
    .application-card {
        min-height: 150px;
    }
}

@media (max-width: 480px) {
    #hero h1 {
        font-size: 2rem;
    }
    
    .product-mockup {
        transform: scale(0.8);
    }
}

/* ===================================
   Loading Animation
   =================================== */
.page-loader {
    position: fixed;
    inset: 0;
    background: #111111;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(247, 148, 29, 0.2);
    border-top-color: #F7941D;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===================================
   Parallax Effect
   =================================== */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* ===================================
   Text Gradient
   =================================== */
.text-gradient {
    background: linear-gradient(135deg, #F7941D 0%, #E07800 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===================================
   Glow Effect
   =================================== */
.glow {
    box-shadow: 0 0 40px rgba(247, 148, 29, 0.3);
}

.glow-hover:hover {
    box-shadow: 0 0 60px rgba(247, 148, 29, 0.5);
}

/* ===================================
   Card Hover Lift
   =================================== */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* ===================================
   Input Focus Animation
   =================================== */
input, textarea, select {
    transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    transform: translateY(-2px);
}

/* ===================================
   Custom Cursor (Optional)
   =================================== */
@media (hover: hover) {
    a, button, .cursor-pointer {
        cursor: pointer;
    }
}

/* ===================================
   Print Styles
   =================================== */
@media print {
    .fixed, #mobile-menu, .animate-bounce {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        color: #000;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
}