/* Hero Section Animations */
.floating-element {
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) { animation-delay: 0s; }
.floating-element:nth-child(2) { animation-delay: 1s; }
.floating-element:nth-child(3) { animation-delay: 2s; }
.floating-element:nth-child(4) { animation-delay: 3s; }

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(1deg);
    }
    66% {
        transform: translateY(-10px) rotate(-1deg);
    }
}

/* Particle Animation */
@keyframes particleFloat {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0.2;
    }
    50% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(-100vh) translateX(200px) rotate(360deg);
        opacity: 0;
    }
}

/* Browser Container Styles */
.browser-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    /*aspect-ratio: 5 / 6; !* 5:6 ratio *!*/
    display: flex;
    flex-direction: column;
}

.browser-header {
    background: linear-gradient(to bottom, #f7f7f7, #e8e8e8);
}

.browser-content {
    /*min-height: 650px;*/
    flex:1;
    width: 100%;
    /*aspect-ratio: 5 / 6;*/
}

/* Desktop Navigation - CREATIVE REDESIGN */
.browser-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
    backdrop-filter: blur(20px);
    border: 3px solid transparent;
    border-radius: 50%;
    color: var(--primary-blue-dark);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 35px rgba(15, 52, 96, 0.15);
    overflow: hidden;
}

.browser-nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-blue-dark), var(--primary-teal-dark));
    border-radius: 50%;
    opacity: 0;
    transition: all 0.6s ease;
    z-index: -1;
}

.browser-nav-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.browser-nav-left {
    left: 120px;
}

.browser-nav-right {
    right: 120px;
}

.browser-nav-btn:hover {
    transform: translateY(-50%) scale(1.2);
    box-shadow: 0 25px 50px rgba(15, 52, 96, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
}

.browser-nav-btn:hover::before {
    opacity: 1;
}

.browser-nav-btn:hover::after {
    width: 100px;
    height: 100px;
}

.browser-nav-btn:hover i {
    color: white;
    transform: scale(1.2);
    transition: all 0.4s ease;
}

.browser-nav-btn:active {
    transform: translateY(-50%) scale(1.05);
}

/* Browser Control Buttons */
.browser-control-btn {
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.browser-control-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.browser-control-btn:hover::before {
    width: 20px;
    height: 20px;
}

.browser-control-btn:active {
    transform: scale(0.9);
}

/* Browser Action Buttons */
.browser-action-btn {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.browser-action-btn:hover::before {
    width: 30px;
    height: 30px;
}

.browser-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Reload Animation Overlay */
.reload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.reload-overlay.active {
    opacity: 1;
    visibility: visible;
}

.reload-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(15, 52, 96, 0.2);
    border-top: 4px solid var(--primary-blue-dark);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.reload-text {
    margin-left: 15px;
    color: var(--primary-blue-dark);
    font-weight: 600;
    font-size: 16px;
}

/* Pagination Styles - ENHANCED */
.desktop-pagination{
    position: relative;
}
.desktop-pagination .swiper-pagination-bullet {
    width: 14px;
    height: 14px;
    background: rgba(15, 52, 96, 0.2);
    opacity: 1;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin: 0 8px;
    position: relative;
    overflow: hidden;
}

.desktop-pagination .swiper-pagination-bullet::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-blue-dark), var(--primary-teal-dark));
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.4s ease;
}

.desktop-pagination .swiper-pagination-bullet-active {
    transform: scale(1.4);
    box-shadow: 0 4px 15px rgba(15, 52, 96, 0.3);
}

.desktop-pagination .swiper-pagination-bullet-active::before {
    transform: scale(1);
}

/* Swiper Inside Browser - 5:6 Ratio */
.hero-swiper {
    width: 100%;
    height: 100%;
}

.hero-swiper .swiper-slide {
    width: 100%;
    /*height: 100%;*/
}

/* Floating Slider Effect */
#showcase {
    position: relative;
    z-index: 30;
}

#showcase::before {
    /*content: '';*/
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.1), white);
    pointer-events: none;
}

#showcase::after {
    /*content: '';*/
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, transparent, rgba(255,255,255,0.1), white);
    pointer-events: none;
}

/* Timeline Steps - Scroll Magic Parallax */
.timeline-step {
    transition: transform 0.1s ease-out;
    opacity: 0;
    transform: translateY(50px);
}

.timeline-step.in-view {
    opacity: 1;
    animation: slideInUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

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

.timeline-step:nth-child(even) {
    transform: translateX(30px);
}

.timeline-step:nth-child(odd) {
    transform: translateX(-30px);
}

/* FAQ Styling - CSS-based animations */
.faq-item {
    margin-bottom: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-question {
    transition: all 0.3s ease;
    position: relative;
}

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

.faq-item.active .faq-question {
    border-color: var(--primary-blue-dark);
    background: linear-gradient(135deg, #f8fafc, white);
}

.faq-item.active .faq-icon {
    background: var(--primary-blue-dark);
    transform: rotate(45deg);
}

.faq-item.active .faq-icon i {
    color: white;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out, padding 0.3s ease-out;
    opacity: 0;
    padding: 0;
}

.faq-item.active .faq-answer {
    max-height: 1000px; /* Large enough value to accommodate any content */
    opacity: 1;
    padding: 16px 0;
}

/* Counter Animation Styles - CSS-based */
.counter {
    transition: all 0.3s ease;
    display: inline-block;
}

.counter.animate {
    animation: countUp 2s ease-out forwards;
}

@keyframes countUp {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 9999;
}

.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue-dark), var(--primary-teal-dark), var(--primary-teal-medium));
    width: 0%;
    transition: width 0.1s ease;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .browser-nav-btn {
        width: 70px;
        height: 70px;
        font-size: 20px;
    }

    .browser-nav-left {
        left: -100px;
    }

    .browser-nav-right {
        right: -100px;
    }
}

@media (max-width: 768px) {
    .floating-element {
        display: none;
    }

    .browser-nav-btn {
        display: none;
    }

    .browser-container {
        max-width: 95%;
    }

    .hero-swiper .swiper-slide {
        width: 100%;
        /*max-width: 400px;*/
        /*height: 480px;*/
    }

    .timeline-step:nth-child(even),
    .timeline-step:nth-child(odd) {
        transform: translateY(50px);
    }
}

@media (max-width: 640px) {
    .browser-container {
        max-width: 100%;
        margin: 0;
    }

    .browser-content {
        /*min-height: 500px;*/
    }

    .hero-swiper .swiper-slide {
        /*height: 400px;*/
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .floating-element {
        animation: none;
    }
}

/* Focus Styles for Accessibility */
button:focus,
.faq-question:focus {
    outline: 2px solid var(--primary-teal-medium);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .no-print,
    #navbar,
    .floating-element,
    .browser-nav-btn,
    .mobile-nav-btn {
        display: none !important;
    }

    * {
        box-shadow: none !important;
        text-shadow: none !important;
        background: white !important;
        color: black !important;
    }
}
