/* 
   Virtual X Tours - Enhanced Animations CSS
   Additional animations and interactive elements for secondary pages
*/

/* ===== DECORATIVE ELEMENTS ===== */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.shape {
    position: absolute;
    opacity: 0.1;
    z-index: -1;
}

.shape-1 {
    top: 20%;
    left: 5%;
    width: 150px;
    height: 150px;
    background: var(--primary-color);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: float 15s ease-in-out infinite, rotate 20s linear infinite;
}

.shape-2 {
    top: 40%;
    right: 5%;
    width: 200px;
    height: 200px;
    background: var(--secondary-color);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: float 12s ease-in-out infinite reverse, rotate 15s linear infinite reverse;
}

.shape-3 {
    bottom: 10%;
    left: 10%;
    width: 100px;
    height: 100px;
    background: var(--accent-color);
    border-radius: 50% 50% 20% 80% / 25% 80% 20% 75%;
    animation: float 10s ease-in-out infinite, rotate 12s linear infinite;
}

.shape-4 {
    bottom: 30%;
    right: 15%;
    width: 120px;
    height: 120px;
    background: linear-gradient(var(--primary-light), var(--secondary-color));
    border-radius: 30% 70% 50% 50% / 50% 50% 70% 30%;
    animation: float 18s ease-in-out infinite reverse, rotate 25s linear infinite reverse;
}

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

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

/* ===== ENHANCED PAGE BANNER ===== */
.page-banner {
    position: relative;
    padding: 140px 0 80px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    text-align: center;
    color: var(--text-light);
    overflow: hidden;
}

.page-banner h1 {
    position: relative;
    z-index: 2;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(98, 0, 238, 0.2), rgba(3, 218, 198, 0.2)), 
                url('../images/banner-pattern.png') repeat;
    background-size: 300px;
    animation: moveBg 30s linear infinite;
    z-index: 1;
}

.banner-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

@keyframes moveBg {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 300px 300px;
    }
}

/* ===== ENHANCED SECTION TRANSITIONS ===== */
.fade-in-section {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animations for grid items */
.staggered-grid-item {
    opacity: 0;
    transform: translateY(30px);
}

.staggered-grid-item.is-visible {
    animation: fadeInUp 0.6s ease forwards;
}

.staggered-grid-item:nth-child(1).is-visible { animation-delay: 0.1s; }
.staggered-grid-item:nth-child(2).is-visible { animation-delay: 0.2s; }
.staggered-grid-item:nth-child(3).is-visible { animation-delay: 0.3s; }
.staggered-grid-item:nth-child(4).is-visible { animation-delay: 0.4s; }
.staggered-grid-item:nth-child(5).is-visible { animation-delay: 0.5s; }
.staggered-grid-item:nth-child(6).is-visible { animation-delay: 0.6s; }

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

/* ===== ENHANCED CARD INTERACTIONS ===== */
.interactive-card {
    position: relative;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: all 0.4s ease;
    z-index: 1;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.interactive-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-color));
    z-index: -1;
    transition: opacity 0.4s ease;
    opacity: 0;
}

.interactive-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    color: var(--text-light);
}

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

.interactive-card .card-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--text-light);
    border-radius: var(--radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    transition: all 0.4s ease;
}

.interactive-card:hover .card-icon {
    background: var(--text-light);
    color: var(--primary-color);
    transform: rotateY(360deg);
}

.interactive-card h3 {
    transition: color 0.4s ease;
}

.interactive-card p {
    transition: color 0.4s ease;
}

.interactive-card:hover h3,
.interactive-card:hover p {
    color: var(--text-light);
}

/* ===== ENHANCED TIMELINE EFFECTS ===== */
.timeline {
    position: relative;
    padding: 0 20px;
    margin-bottom: var(--spacing-xl);
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    width: 50%;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.timeline-item.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-item:nth-child(even) {
    margin-left: 50%;
    transform: translateX(50px);
}

.timeline-item:nth-child(even).is-visible {
    transform: translateX(0);
}

.timeline-content {
    position: relative;
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 20px;
    right: -15px;
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 15px solid var(--bg-light);
}

.timeline-item:nth-child(even) .timeline-content::before {
    right: auto;
    left: -15px;
    border-left: none;
    border-right: 15px solid var(--bg-light);
}

.timeline-icon {
    position: absolute;
    top: 20px;
    right: -60px;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: var(--radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1rem;
    z-index: 1;
    box-shadow: 0 0 0 4px var(--bg-light), 0 0 0 8px rgba(98, 0, 238, 0.1);
}

.timeline-item:nth-child(even) .timeline-icon {
    right: auto;
    left: -60px;
}

/* ===== 3D TRANSFORM EFFECTS ===== */
.tilt-card {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.3s ease;
}

.tilt-card-inner {
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.card-3d-effect:hover .tilt-card-inner {
    transform: rotateY(10deg) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* ===== ENHANCED BUTTONS AND LINKS ===== */
.btn-glow {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--primary-light), var(--primary-color));
    background-size: 400%;
    z-index: -1;
    border-radius: inherit;
    animation: glowingEffect 20s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-glow:hover::before {
    opacity: 1;
}

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

/* ===== PARALLAX SECTIONS ===== */
.parallax-section {
    position: relative;
    overflow: hidden;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: var(--spacing-xxl) 0;
    color: var(--text-light);
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 0, 48, 0.8), rgba(18, 18, 18, 0.9));
    z-index: 1;
}

.parallax-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

/* ===== ANIMATED COUNTERS ===== */
.counter-box {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.counter-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.counter-label {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 500;
}

/* ===== ENHANCED TESTIMONIALS ===== */
.testimonial-enhanced {
    padding: var(--spacing-lg);
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    position: relative;
    margin-top: 40px;
    transition: all 0.3s ease;
}

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

.testimonial-enhanced::before {
    content: '"';
    position: absolute;
    top: -30px;
    left: 20px;
    font-size: 100px;
    line-height: 1;
    color: var(--primary-color);
    opacity: 0.2;
    font-family: Georgia, serif;
}

.client-image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-round);
    border: 4px solid var(--primary-color);
    overflow: hidden;
    margin: -60px auto 20px;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.client-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== ENHANCED FORMS ===== */
.enhanced-form .form-group {
    position: relative;
    margin-bottom: var(--spacing-md);
}

.enhanced-form .form-control {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    outline: none;
    background: var(--bg-light);
}

.enhanced-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(98, 0, 238, 0.1);
}

.enhanced-form .form-label {
    position: absolute;
    top: 12px;
    left: 15px;
    color: var(--text-gray);
    pointer-events: none;
    transition: all 0.3s ease;
}

.enhanced-form .form-control:focus ~ .form-label,
.enhanced-form .form-control:not(:placeholder-shown) ~ .form-label {
    top: -10px;
    left: 10px;
    font-size: 0.8rem;
    background: var(--bg-light);
    padding: 0 5px;
    color: var(--primary-color);
}

/* ===== CUSTOM CURSOR ===== */
.custom-cursor {
    position: fixed;
    width: 30px;
    height: 30px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.2s ease, width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
    display: none;
}

.custom-cursor.active {
    transform: scale(1.5);
    border-color: var(--secondary-color);
}

/* ===== ICON ANIMATIONS ===== */
.animated-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

a:hover .animated-icon,
button:hover .animated-icon {
    transform: translateY(-5px);
}

/* Pulsating effect */
.pulse-icon {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* ===== IMAGE HOVER EFFECTS ===== */
.image-hover-effect {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.image-hover-effect img {
    transition: transform 0.5s ease;
}

.image-hover-effect:hover img {
    transform: scale(1.1);
}

.image-overlay-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10, 0, 48, 0.8), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.image-hover-effect:hover .image-overlay-effect {
    opacity: 1;
}

/* ===== TEXT ANIMATIONS ===== */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.text-reveal {
    display: inline-block;
    overflow: hidden;
}

.text-reveal span {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
}

.text-reveal.is-visible span {
    animation: revealText 0.5s forwards;
}

@keyframes revealText {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ===== HOVER ANIMATIONS FOR CARDS ===== */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.hover-glow {
    transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(98, 0, 238, 0.4);
}

/* ===== ENHANCED TABS ===== */
.enhanced-tabs {
    margin-bottom: var(--spacing-xl);
}

.tabs-nav {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: var(--spacing-lg);
}

.tab-link {
    padding: var(--spacing-md) var(--spacing-lg);
    font-weight: 600;
    color: var(--text-gray);
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-link.active {
    color: var(--primary-color);
}

.tab-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.tab-link.active::after {
    width: 100%;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 992px) {
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        margin-left: 40px;
        margin-bottom: 30px;
    }
    
    .timeline-item:nth-child(even) {
        margin-left: 40px;
    }
    
    .timeline-content::before {
        right: auto;
        left: -15px;
        border-left: none;
        border-right: 15px solid var(--bg-light);
    }
    
    .timeline-icon {
        right: auto;
        left: -60px;
    }
}

@media (max-width: 768px) {
    .shape {
        transform: scale(0.7);
    }
    
    .counter-value {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .shape {
        transform: scale(0.5);
    }
}
