/* Software Page Animations */

/* Hero Section Entrance */
.software-hero {
    animation: fadeInDown 0.8s ease forwards;
}

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

/* OCTOM Feature Icon */
.octom-feature-icon {
    animation: fadeInScale 0.8s ease forwards, float 6s ease-in-out 0.8s infinite;
    transition: transform 0.3s ease, filter 0.3s ease;
    opacity: 0;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.7);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

.octom-feature-icon:hover {
    transform: scale(1.1) rotate(5deg) !important;
    filter: drop-shadow(0 8px 20px rgba(255, 193, 7, 0.6));
    animation-play-state: paused;
}

.octom-feature-icon-wrapper {
    position: relative;
    display: inline-block;
}

.octom-feature-icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 130%;
    height: 130%;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse-glow 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes pulse-glow {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.9;
    }
}

/* Learn More Button */
.btn-learn-more {
    animation: slideInUp 0.8s ease 0.4s forwards;
    opacity: 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.btn-learn-more::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 193, 7, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: -1;
}

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

.btn-learn-more:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
    border-color: #ffc107;
    color: #ffc107;
}

.btn-learn-more:active {
    transform: translateY(0) scale(0.97);
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

/* Content Sections - Scroll Triggered */
.content-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.content-section.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Video Sections */
.video-section {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.video-section.animate-in {
    opacity: 1;
    transform: scale(1);
}

.video-section iframe {
    transition: transform 0.3s ease;
    border-radius: 8px;
}

.video-section:hover iframe {
    transform: scale(1.02);
}

/* Dark Mode Adjustments */
[data-bs-theme="dark"] .octom-feature-icon {
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

[data-bs-theme="dark"] .octom-feature-icon:hover {
    filter: drop-shadow(0 8px 20px rgba(255, 193, 7, 0.7));
}

[data-bs-theme="dark"] .content-section {
    background: rgba(255, 255, 255, 0.02);
}

/* Responsive */
@media (max-width: 768px) {
    .octom-feature-icon:hover {
        transform: scale(1.05) rotate(3deg) !important;
    }
    
    .btn-learn-more:hover {
        transform: translateY(-2px) scale(1.03);
    }
}
