/* Responsive Animation for Hero Section Research Effect */

.animated-research {
    display: inline-block;
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.animated-research > div {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.animated-research div > div {
    position: absolute;
    border-radius: 50%;
    animation-timing-function: ease-in-out;
}

.animated-research div > div:nth-child(1) {
    width: 60px;
    height: 60px;
    border: 2px solid rgba(255,255,255,0.3);
    animation: pulse-ring 2s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(255,255,255,0.2);
    transition: all 0.4s ease;
}

.animated-research div > div:nth-child(2) {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255,255,255,0.5);
    top: 10px;
    left: 10px;
    animation: pulse-ring 2s ease-in-out infinite 0.5s;
    box-shadow: 0 0 10px rgba(255,255,255,0.3);
    transition: all 0.4s ease;
}

.animated-research div > div:nth-child(3) {
    width: 20px;
    height: 20px;
    background: rgba(255,255,255,0.8);
    top: 20px;
    left: 20px;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(255,255,255,0.5);
    transition: all 0.3s ease;
}

/* Enhanced Keyframe Animations */
@keyframes pulse-ring {
    0% { 
        transform: scale(1); 
        opacity: 1;
        box-shadow: 0 0 15px rgba(255,255,255,0.2);
    }
    50% { 
        opacity: 0.85;
    }
    100% { 
        transform: scale(1.3); 
        opacity: 0;
        box-shadow: 0 0 0 rgba(255,255,255,0);
    }
}

@keyframes pulse {
    0%, 100% { 
        opacity: 1; 
        box-shadow: 0 0 8px rgba(255,255,255,0.5);
    }
    50% { 
        opacity: 0.4; 
        box-shadow: 0 0 12px rgba(255,255,255,0.7);
    }
}

/* ========== RESPONSIVE BREAKPOINTS ========== */

/* Large Screens (992px and up) - No changes needed, use defaults */
@media (min-width: 992px) {
    .animated-research {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }
}

/* Tablets & Medium Screens (768px to 991px) */
@media (max-width: 991px) and (min-width: 768px) {
    .animated-research {
        width: 54px;
        height: 54px;
        margin-bottom: 18px;
    }
    
    .animated-research div > div:nth-child(1) {
        width: 54px;
        height: 54px;
        border: 1.8px solid rgba(255,255,255,0.3);
    }
    
    .animated-research div > div:nth-child(2) {
        width: 36px;
        height: 36px;
        border: 1.8px solid rgba(255,255,255,0.5);
        top: 9px;
        left: 9px;
    }
    
    .animated-research div > div:nth-child(3) {
        width: 18px;
        height: 18px;
        top: 18px;
        left: 18px;
    }
    
    @keyframes pulse-ring {
        0% { transform: scale(1); opacity: 1; }
        50% { opacity: 0.85; }
        100% { transform: scale(1.25); opacity: 0; }
    }
}

/* Small Tablets (576px to 767px) */
@media (max-width: 767px) and (min-width: 576px) {
    .animated-research {
        width: 48px;
        height: 48px;
        margin-bottom: 16px;
    }
    
    .animated-research div > div:nth-child(1) {
        width: 48px;
        height: 48px;
        border: 1.5px solid rgba(255,255,255,0.3);
    }
    
    .animated-research div > div:nth-child(2) {
        width: 32px;
        height: 32px;
        border: 1.5px solid rgba(255,255,255,0.5);
        top: 8px;
        left: 8px;
    }
    
    .animated-research div > div:nth-child(3) {
        width: 16px;
        height: 16px;
        top: 16px;
        left: 16px;
    }
    
    @keyframes pulse-ring {
        0% { transform: scale(1); opacity: 1; }
        100% { transform: scale(1.22); opacity: 0; }
    }
    
    @keyframes pulse {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.5; }
    }
}

/* Mobile Phones (up to 575px) */
@media (max-width: 575px) {
    .animated-research {
        width: 42px;
        height: 42px;
        margin-bottom: 14px;
    }
    
    .animated-research div > div:nth-child(1) {
        width: 42px;
        height: 42px;
        border: 1.4px solid rgba(255,255,255,0.3);
    }
    
    .animated-research div > div:nth-child(2) {
        width: 28px;
        height: 28px;
        border: 1.2px solid rgba(255,255,255,0.5);
        top: 7px;
        left: 7px;
    }
    
    .animated-research div > div:nth-child(3) {
        width: 14px;
        height: 14px;
        top: 14px;
        left: 14px;
    }
    
    @keyframes pulse-ring {
        0% { transform: scale(1); opacity: 1; }
        100% { transform: scale(1.2); opacity: 0; }
    }
    
    @keyframes pulse {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.55; }
    }
}

/* Extra Small Phones (up to 360px) */
@media (max-width: 360px) {
    .animated-research {
        width: 38px;
        height: 38px;
        margin-bottom: 12px;
    }
    
    .animated-research div > div:nth-child(1) {
        width: 38px;
        height: 38px;
        border: 1.2px solid rgba(255,255,255,0.3);
    }
    
    .animated-research div > div:nth-child(2) {
        width: 25px;
        height: 25px;
        border: 1px solid rgba(255,255,255,0.5);
        top: 6px;
        left: 6px;
    }
    
    .animated-research div > div:nth-child(3) {
        width: 12px;
        height: 12px;
        top: 13px;
        left: 13px;
    }
}

/* Accessibility: Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .animated-research,
    .animated-research > div,
    .animated-research div > div {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .animated-research {
        display: none;
    }
}

