﻿/* ========== FROM: animations.css ========== */
/* --------------------------------
   File: animations.css for homepage2
   Description: Animation effects for homepage2
   Author: GitHub Copilot
   Date: April 25, 2025
   -------------------------------- */

/*------------------------------------*\
  #ANIMATIONS
\*------------------------------------*/

/* Base animation classes */
.home2-animation-fade-in {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.home2-animation-fade-in.animated {
    opacity: 1;
}

.home2-animation-slide-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.home2-animation-slide-up.animated {
    opacity: 1;
    transform: translateY(0);
}

.home2-animation-scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.home2-animation-scale-in.animated {
    opacity: 1;
    transform: scale(1);
}

/* Animation delays */
.home2-animation-delay-100 {
    transition-delay: 0.1s;
}

.home2-animation-delay-200 {
    transition-delay: 0.2s;
}

.home2-animation-delay-300 {
    transition-delay: 0.3s;
}

.home2-animation-delay-400 {
    transition-delay: 0.4s;
}

.home2-animation-delay-500 {
    transition-delay: 0.5s;
}

/* Scroll reveal animations */
.home2-reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.home2-reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Hero typing animation */
.home2-typing {
    position: relative;
}

.home2-typing::after {
    content: '|';
    position: absolute;
    right: -8px;
    animation: home2-cursor-blink 1s infinite;
}

.home2-typing-done::after {
    animation: home2-cursor-blink 1s infinite;
}

@keyframes home2-cursor-blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

/* Floating animation */
.home2-float {
    animation: home2-floating 6s ease-in-out infinite;
}

@keyframes home2-floating {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* Pulse animation */
.home2-pulse {
    animation: home2-pulse-effect 2s infinite;
}

@keyframes home2-pulse-effect {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Bounce animation */
.home2-bounce {
    animation: home2-bounce-effect 2s infinite;
}

@keyframes home2-bounce-effect {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/* Rotate animation */
.home2-rotate {
    animation: home2-rotate-effect 10s linear infinite;
}

@keyframes home2-rotate-effect {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Shimmer effect for cards and buttons */
.home2-shimmer {
    position: relative;
    overflow: hidden;
}

.home2-shimmer::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    animation: home2-shimmer-effect 6s infinite;
}

@keyframes home2-shimmer-effect {
    0% {
        transform: rotate(30deg) translateX(-300%);
    }
    100% {
        transform: rotate(30deg) translateX(300%);
    }
}

/* Fade-in-up staggered animation for lists */
.home2-stagger-container .home2-stagger-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.home2-stagger-container.animated .home2-stagger-item:nth-child(1) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

.home2-stagger-container.animated .home2-stagger-item:nth-child(2) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.home2-stagger-container.animated .home2-stagger-item:nth-child(3) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.home2-stagger-container.animated .home2-stagger-item:nth-child(4) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.home2-stagger-container.animated .home2-stagger-item:nth-child(5) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

.home2-stagger-container.animated .home2-stagger-item:nth-child(6) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

/* Background gradient animation */
.home2-gradient-bg {
    background-size: 400% 400%;
    animation: home2-gradient 15s ease infinite;
}

@keyframes home2-gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* ========== FROM: cursor-effects.css ========== */
/* --------------------------------
   File: cursor-effects.css for homepage2
   Description: Styles for custom cursor effects
   Author: GitHub Copilot
   Date: April 25, 2025
   -------------------------------- */

/* Ensure all interactive elements are clickable */
a, button, input, select, textarea, .interactive, 
.social-link, .footer-widget a, .footer-bottom a,
.home2-blog-all-posts-link {
    position: relative;
    z-index: 5; /* Ensure these are above any overlays */
    cursor: pointer !important; /* Force pointer cursor */
    pointer-events: auto !important; /* Force pointer events */
}

/* Reset cursor follower styles to avoid interference */
.home2-cursor-follower, .home2-cursor-glow {
    display: none !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

/* Make sure footer has proper z-index and is clickable */
.jay-footer, .footer-widgets, .footer-grid, .footer-widget {
    position: relative;
    z-index: 10;
    pointer-events: auto !important;
}

/* Disable any global overlays that might be blocking clicks */
body::before, body::after,
.home-page-2::before, .home-page-2::after,
.home2-section::before, .home2-section::after {
    pointer-events: none !important;
}

/* Override any cursor-related styles */
body, html, * {
    cursor: auto;
}

/* Ensure proper cursor style on interactive elements */
a, button, .interactive-element, [role="button"] {
    cursor: pointer !important;
}

/* Make sure the overlay doesn't block interaction */
.home2-blog-card-shine,
.home2-button-glow,
.home2-stat-circle-backdrop,
.home2-blog-shape {
    pointer-events: none !important;
}

/*------------------------------------*\
  #CURSOR EFFECTS
\*------------------------------------*/

/* Hide cursor on interactive elements when custom cursor is active */
.home2-cursor-active {
    cursor: none !important;
}

/* Base cursor styles */
.home2-cursor-follower,
.home2-cursor-glow {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    will-change: transform;
    transition: transform 0.1s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Main cursor follower */
.home2-cursor-follower {
    width: 12px;
    height: 12px;
    background-color: var(--home2-color-primary);
    border-radius: 50%;
    opacity: 0.8;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease, transform 0.1s ease;
}

/* Cursor glow effect */
.home2-cursor-glow {
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, 
        rgba(79, 70, 229, 0.4) 0%, 
        rgba(79, 70, 229, 0.1) 40%, 
        rgba(79, 70, 229, 0) 60%
    );
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
    transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease, height 0.3s ease;
}

/* Active states (when hovering interactive elements) */
.home2-cursor-follower.active {
    width: 18px;
    height: 18px;
    opacity: 0.9;
    background-color: var(--home2-color-secondary);
    transform: translate(-50%, -50%) scale(0.7);
}

.home2-cursor-glow.active {
    width: 60px;
    height: 60px;
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1.2);
    background: radial-gradient(circle, 
        rgba(139, 92, 246, 0.5) 0%, 
        rgba(139, 92, 246, 0.2) 40%, 
        rgba(139, 92, 246, 0) 60%
    );
}

/* Cursor states for different interactions */
.home2-cursor-click .home2-cursor-follower {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 1;
}

.home2-cursor-click .home2-cursor-glow {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.7;
}

/* Cursor animation for text links */
a:hover ~ .home2-cursor-follower,
button:hover ~ .home2-cursor-follower {
    animation: home2-cursor-pulse 1.5s infinite alternate;
}

@keyframes home2-cursor-pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Media query to disable custom cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
    .home2-cursor-follower,
    .home2-cursor-glow {
        display: none !important;
    }
    
    body {
        cursor: auto !important;
    }
}

/* Vô hiệu hóa cursor-effects trên thiết bị di động */
@media (max-width: 768px) {
    /* Vô hiệu hóa hoàn toàn cursor effects */
    .home2-cursor-follower, 
    .home2-cursor-glow, 
    .cursor-follower, 
    .cursor-glow {
        display: none !important;
        opacity: 0 !important;
        pointer-events: none !important;
        z-index: -999 !important;
    }
    
    /* Đảm bảo body và tất cả elements có cursor mặc định */
    body, html, * {
        cursor: auto !important;
    }
    
    /* Đảm bảo các phần tử tương tác có cursor pointer */
    a, button, input[type="submit"], select, [role="button"],
    .interactive-element, .footer-widget a, .social-link, 
    .category-item a, .jay-nav .menu-item > a {
        cursor: pointer !important;
        pointer-events: auto !important;
    }
}

/* ========== FROM: override-styles.css ========== */
/* --------------------------------
   File: override-styles.css for homepage2
   Description: High priority override styles for homepage2 elements
   Purpose: Contains all !important CSS overrides that were previously inline
   Author: GitHub Copilot
   Date: June 22, 2025
   -------------------------------- */

/* ===================================
   TABLE OF CONTENTS
   1. Comparison Table Override Styles
   2. Mobile Responsive Overrides  
   3. Section Visibility Overrides
   4. General Override Utilities
   =================================== */

/* ===================================
   COMPARISON TABLE OVERRIDE STYLES
   =================================== */

/* Styles ưu tiên cao cho bảng so sánh */

.home2-feature-content {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.home2-badge-positive {
    background-color: rgba(16, 185, 129, 0.15) !important;
    border: 1px solid rgba(16, 185, 129, 0.4) !important;
    color: #10b981 !important;
}

.home2-badge-negative {
    background-color: rgba(239, 68, 68, 0.15) !important;
    border: 1px solid rgba(239, 68, 68, 0.4) !important;
    color: #ef4444 !important;
}

.home2-badge-partial {
    background-color: rgba(245, 158, 11, 0.15) !important;
    border: 1px solid rgba(245, 158, 11, 0.4) !important;
    color: #f59e0b !important;
}

.home2-progress-wrapper {
    width: 100% !important;
    height: 10px !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    margin-top: 0.5rem !important;
}

.home2-progress-bar {
    height: 100% !important;
    border-radius: 20px !important;
    background: linear-gradient(90deg, #3b82f6, #6366f1) !important;
    transition: width 1s ease-in-out !important;
    position: relative !important;
    color: white !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.home2-progress-limited {
    background: linear-gradient(90deg, #f59e0b, #f97316) !important;
}

/* ===================================
   MOBILE RESPONSIVE OVERRIDES
   =================================== */

@media (max-width: 768px) {
    
    .home2-mobile-scroll-indicator {
        display: none !important;
    }
}

@media (max-width: 480px) {

.home2-mobile-scroll-indicator {
        display: none !important;
    }

}

/* ===================================
   SECTION VISIBILITY OVERRIDES
   =================================== */

/* Ẩn các phần metrics social proof */

/* Ẩn section 3.1 (feature comparison) và section 4 (GenStaff) */
.home2-feature-comparison,

/* ===================================
   4. GENERAL OVERRIDE UTILITIES
   =================================== */

/* Inline styles that were moved from PHP file */
#typing-target {
    display: none !important;
}

.home2-blog-all-posts-link.home2-shine-effect {
    color: #fff !important;
}


