/* Vietnamese Brand Colors - True Logo Tone */
:root {
    --primary-red: #4FC3F7;
    --primary-green: #FF6B6B;
    --gradient-brand: linear-gradient(135deg, #4FC3F7 0%, #29B6F6 25%, #0288D1 50%, #FF5252 75%, #FF6B6B 100%);
    --gradient-red: linear-gradient(135deg, #4FC3F7 0%, #29B6F6 100%);
    --gradient-green: linear-gradient(135deg, #FF6B6B 0%, #FF8A80 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(79, 195, 247, 0.85) 0%, rgba(255, 107, 107, 0.85) 100%);
}

/* Advanced Image Effects */
.image-container {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.image-container:hover::before {
    opacity: 0.2;
}

.image-container img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-container:hover img {
    transform: scale(1.08) rotate(1deg);
}

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

.parallax-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
    z-index: 1;
}

/* Animated CTA Buttons */
.btn-animated {
    position: relative;
    overflow: hidden;
    background: var(--gradient-brand);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    box-shadow: 0 4px 15px rgba(79, 195, 247, 0.4);
    border: none;
}

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

.btn-animated::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-animated:hover::before {
    width: 300px;
    height: 300px;
}

.btn-animated:hover {
    box-shadow: 0 6px 25px rgba(79, 195, 247, 0.6);
    transform: translateY(-3px);
}

/* Pulse Effect for CTAs */
.btn-pulse {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(79, 195, 247, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(79, 195, 247, 0.8),
                    0 0 40px rgba(255, 107, 107, 0.4);
    }
}

/* Animated Icons */
.icon-bounce {
    animation: bounce 2s infinite;
}

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

.icon-rotate-pulse {
    animation: rotatePulse 3s infinite;
}

@keyframes rotatePulse {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(-5deg) scale(1.05);
    }
    75% {
        transform: rotate(5deg) scale(1.05);
    }
}

.icon-glow {
    filter: drop-shadow(0 0 8px rgba(79, 195, 247, 0.6));
    animation: iconGlow 2s infinite;
}

@keyframes iconGlow {
    0%, 100% {
        filter: drop-shadow(0 0 8px rgba(79, 195, 247, 0.6));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(255, 107, 107, 0.8));
    }
}

/* Service Icon Enhanced */
.service-icon,
.type-icon,
.benefit-icon,
.value-icon {
    background: var(--gradient-brand) !important;
    background-size: 200% 200% !important;
    animation: gradientShift 4s ease infinite, iconFloat 3s ease-in-out infinite !important;
    box-shadow: 0 8px 20px rgba(227, 30, 36, 0.3);
}

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

.service-card:hover .service-icon,
.type-card:hover .type-icon {
    animation: gradientShift 4s ease infinite, iconSpin 0.6s ease-in-out !important;
    box-shadow: 0 12px 30px rgba(227, 30, 36, 0.5);
}

@keyframes iconSpin {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.15);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

/* Color Overlay for Images */
.image-overlay-red::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(227, 30, 36, 0.15) 0%, transparent 100%);
    pointer-events: none;
}

.image-overlay-green::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.15) 0%, transparent 100%);
    pointer-events: none;
}

/* Animated Gradient Text */
.gradient-text-animated {
    background: var(--gradient-brand);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

/* Section Title Enhancement */
.section-title {
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-brand);
    border-radius: 2px;
    animation: expandWidth 2s ease-in-out infinite;
}

@keyframes expandWidth {
    0%, 100% {
        width: 80px;
    }
    50% {
        width: 120px;
    }
}

/* Card Shine Effect */
.card-shine {
    position: relative;
    overflow: hidden;
}

.card-shine::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    transform: translateX(-100%) translateY(-100%);
    transition: transform 0.8s;
}

.card-shine:hover::before {
    transform: translateX(100%) translateY(100%);
}

/* Statistics Counter Enhanced */
.stat-number {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    text-shadow: 0 0 30px rgba(227, 30, 36, 0.3);
}

/* Feature Badge with Glow */
.feature-badge {
    background: linear-gradient(135deg, rgba(227, 30, 36, 0.1) 0%, rgba(255, 107, 107, 0.1) 100%);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.feature-badge::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    padding: 2px;
    background: var(--gradient-brand);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.feature-badge i {
    background: var(--gradient-red);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Team Member Card Enhanced */
.team-member {
    position: relative;
}

.team-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 16px;
    pointer-events: none;
}

.team-member:hover::before {
    opacity: 0.1;
}

/* Process Steps with Color */
.process-step .step-icon {
    background: var(--gradient-brand) !important;
    background-size: 200% 200% !important;
    animation: gradientShift 4s ease infinite !important;
}

.process-step .step-number {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Loading Bar Animation */
.loading-bar {
    height: 3px;
    background: var(--gradient-brand);
    background-size: 200% 100%;
    animation: loadingSlide 2s linear infinite;
}

@keyframes loadingSlide {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Micro Interactions */
.interactive-element {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.interactive-element:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.interactive-element:active {
    transform: translateY(0) scale(0.98);
}

/* Vietnamese Image Filters */
.vietnam-image {
    position: relative;
}

.vietnam-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(227, 30, 36, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(255, 107, 107, 0.1) 0%, transparent 50%);
    pointer-events: none;
    border-radius: inherit;
}

/* Floating Animation for Elements */
.float-element {
    animation: floatUpDown 4s ease-in-out infinite;
}

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

/* Ripple Effect on Click */
.ripple-effect {
    position: relative;
    overflow: hidden;
}

.ripple-effect::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple-effect:active::after {
    width: 200px;
    height: 200px;
}

/* Apply to all buttons */
.btn-primary {
    background: var(--gradient-brand) !important;
    background-size: 200% 200% !important;
    animation: gradientShift 3s ease infinite;
}

.btn-secondary {
    border: 2px solid var(--primary-red) !important;
    color: var(--primary-red) !important;
    background: transparent !important;
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-brand);
    transition: left 0.4s ease;
    z-index: -1;
}

.btn-secondary:hover {
    color: white !important;
}

.btn-secondary:hover::before {
    left: 0;
}