/* PlanoBase - Advanced Animations & Interactive Effects */

/* SMOOTH TRANSITIONS */
* {
    transition: all 0.3s ease;
}

/* HERO SECTION ANIMATIONS */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 123, 255, 0.8);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* APPLY ANIMATIONS */
.hero-content h1 {
    animation: fadeInDown 0.8s ease-out;
}

.hero-content .intro {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.cta-button {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* METRIC BADGES ANIMATION */
.badge {
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.badge:nth-child(1) { animation-delay: 0s; }
.badge:nth-child(2) { animation-delay: 0.1s; }
.badge:nth-child(3) { animation-delay: 0.2s; }
.badge:nth-child(4) { animation-delay: 0.3s; }

.badge:hover .number {
    animation: pulse 0.6s ease-in-out;
    color: #00D4FF; /* Brighter blue on hover */
}

/* PRODUCT SECTION ANIMATIONS */
.product-section {
    animation: fadeInUp 0.8s ease-out;
}

.product-header h2 {
    animation: slideInLeft 0.6s ease-out;
}

.product-number {
    animation: slideInRight 0.6s ease-out;
}

/* SPEC ITEMS INTERACTIVE EFFECTS */
.spec-item {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.spec-item:nth-child(1) { animation-delay: 0s; }
.spec-item:nth-child(2) { animation-delay: 0.1s; }
.spec-item:nth-child(3) { animation-delay: 0.2s; }
.spec-item:nth-child(4) { animation-delay: 0.3s; }

.spec-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 123, 255, 0.2);
}

.spec-item:hover .number {
    color: #00D4FF;
    animation: float 0.6s ease-in-out;
}

/* VISUAL AREA (3D/ANIMATION PLACEHOLDER) */
.visual-area {
    animation: fadeInUp 0.8s ease-out;
    position: relative;
    overflow: hidden;
}

.visual-area::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(0, 123, 255, 0.1) 50%, transparent 70%);
    animation: slide 3s linear infinite;
}

@keyframes slide {
    0% {
        transform: translate(-50%, -50%);
    }
    100% {
        transform: translate(50%, 50%);
    }
}

/* CTA BUTTON HOVER EFFECTS */
.cta-button {
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.3s ease;
}

.cta-button:hover::before {
    left: 100%;
}

/* NAVIGATION HOVER EFFECTS */
.nav-links a {
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-blue);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* CONTACT SECTION */
.contact-section {
    animation: fadeInUp 0.8s ease-out;
}

.email {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.email:hover {
    animation: glow 1s ease-in-out;
}

/* SCROLL REVEAL EFFECT (for elements entering viewport) */
@keyframes revealFromBottom {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    animation: revealFromBottom 0.8s ease-out;
}

/* FOOTER ANIMATIONS */
footer {
    animation: fadeInUp 0.8s ease-out;
}

.footer-links a {
    position: relative;
}

.footer-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--text-light);
    transition: width 0.3s ease;
}

.footer-links a:hover::before {
    width: 100%;
}

/* RESPONSIVE ADJUSTMENTS */
@media (max-width: 768px) {
    .hero-content h1 {
        animation: fadeInDown 0.6s ease-out;
    }

    .badge {
        animation: fadeInUp 0.6s ease-out;
    }

    .spec-item {
        animation: fadeInUp 0.6s ease-out;
    }

    .cta-button {
        animation: fadeInUp 0.6s ease-out 0.3s both;
    }
}

/* ICON ANIMATION (for future icon implementation) */
@keyframes iconPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.icon {
    animation: iconPulse 2s ease-in-out infinite;
}

.icon:hover {
    animation: iconPulse 0.6s ease-in-out;
}

/* BADGE LIVE DATA EFFECT */
@keyframes dataUpdate {
    0% {
        color: var(--accent-blue);
    }
    50% {
        color: #00D4FF;
    }
    100% {
        color: var(--accent-blue);
    }
}

.badge .number.live {
    animation: dataUpdate 2s ease-in-out infinite;
}
