/* 
* الصقر الأول للإتصالات - First Falcon Communications
* Animations Stylesheet
*/

/* Scroll Animations */
.scroll-animation {
    transition: all 0.5s ease;
    opacity: 0;
    transform: translateY(30px);
}

.scroll-animation.scrolled {
    opacity: 1;
    transform: translateY(0);
}

/* Fade In Animation */
.fade-in {
    animation: fadeIn 0.8s ease-in-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Slide In Animations */
.slide-in-right {
    animation: slideInRight 0.8s ease-in-out forwards;
}

@keyframes slideInRight {
    from { transform: translateX(50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-in-out forwards;
}

@keyframes slideInLeft {
    from { transform: translateX(-50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Bounce Animation */
.bounce {
    animation: bounce 1s ease infinite;
}

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

/* Pulse Animation */
.pulse {
    animation: pulse 2s infinite;
}

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

/* Rotate Animation */
.rotate {
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Shimmer Effect */
.shimmer {
    background: linear-gradient(90deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.2) 50%, 
        rgba(255,255,255,0) 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

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

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

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

.hover-glow:hover {
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.7); /* Golden glow */
}

/* Button Effects */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple:after {
    content: "";
    background: rgba(255, 255, 255, 0.3);
    display: block;
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: scale(0);
    opacity: 0;
    transition: transform 0.5s, opacity 0.3s;
}

.btn-ripple:active:after {
    transform: scale(2);
    opacity: 0;
    transition: 0s;
}

/* Reveal Animations */
.reveal-left, .reveal-right, .reveal-up, .reveal-down {
    position: relative;
    overflow: hidden;
}

.reveal-left::before, .reveal-right::before, .reveal-up::before, .reveal-down::before {
    content: '';
    position: absolute;
    background-color: var(--primary-dark);
    z-index: 1;
}

.reveal-left::before {
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    transform: translateX(100%);
}

.reveal-right::before {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translateX(-100%);
}

.reveal-up::before {
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translateY(100%);
}

.reveal-down::before {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translateY(-100%);
}

.reveal-active::before {
    animation: reveal 1s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes reveal {
    0% {
        transform: translateX(0) translateY(0);
    }
    100% {
        transform: translateX(101%) translateY(0);
    }
}

/* Typing Effect */
.typing {
    width: 0;
    white-space: nowrap;
    overflow: hidden;
    border-right: 3px solid var(--primary-gold);
    animation: typing 4s steps(40) infinite alternate, blink 0.7s infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink {
    50% { border-color: transparent }
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-gold);
    animation: spin 1s linear infinite;
}

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

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}
