.phone-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInOverlay 0.3s ease;
}

@keyframes fadeInOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}

.phone-dialog {
    background-color: #fff;
    border-radius: 12px;
    padding: 20px;
    width: 300px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    animation: scaleIn 0.3s ease;
    position: relative;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.phone-dialog-content p {
    margin: 0 0 15px;
    text-align: center;
    font-size: 1.1rem;
    color: #333;
}

.dialog-actions {
    display: flex;
    justify-content: center;
}

.dialog-actions button {
    margin: 0 5px;
}

.fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.bounce-in {
    animation: bounceIn 0.8s ease-out;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.zoom-in {
    animation: zoomIn 0.6s ease-out;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.typewriter {
    overflow: hidden;
    border-right: 3px solid #C8102E;
    white-space: nowrap;
    margin: 0 auto;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink-caret {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: #C8102E;
    }
}

.float {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

.wobble {
    animation: wobble 1s ease-in-out;
}

@keyframes wobble {
    0%, 100% {
        transform: translateX(0%);
    }
    15% {
        transform: translateX(-5px) rotate(-5deg);
    }
    30% {
        transform: translateX(4px) rotate(3deg);
    }
    45% {
        transform: translateX(-3px) rotate(-3deg);
    }
    60% {
        transform: translateX(2px) rotate(2deg);
    }
    75% {
        transform: translateX(-1px) rotate(-1deg);
    }
}

.glow {
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #C8102E, 0 0 20px #C8102E;
    }
    to {
        box-shadow: 0 0 10px #fff, 0 0 15px #C8102E, 0 0 20px #C8102E, 0 0 25px #C8102E;
    }
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.contact-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInOverlay 0.3s ease;
}

.contact-dialog {
    background: white;
    border-radius: 16px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: scaleIn 0.3s ease;
    text-align: center;
}

.contact-dialog-content .contact-icon-large {
    font-size: 3rem;
    color: #C8102E;
    margin-bottom: 1rem;
}

.contact-dialog-content h4 {
    color: #2B2B2B;
    margin-bottom: 1rem;
    font-weight: 700;
}

.contact-dialog-content p {
    color: #666;
    margin-bottom: 0.5rem;
}

.contact-value {
    font-size: 1.1rem;
    color: #2B2B2B;
    margin: 1rem 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #e9ecef;
}

.dialog-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.dialog-actions .btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.dialog-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.contact-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    z-index: 10000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    border-left: 4px solid #28a745;
}

.contact-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.contact-notification-error {
    border-left-color: #dc3545;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2B2B2B;
    font-weight: 500;
}

.notification-content i {
    font-size: 1.2rem;
}

.contact-notification-success .notification-content i {
    color: #28a745;
}

.contact-notification-error .notification-content i {
    color: #dc3545;
}

@keyframes bounceInUp {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.5);
    }
    60% {
        opacity: 1;
        transform: translateY(-10px) scale(1.05);
    }
    80% {
        transform: translateY(5px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(139, 0, 0, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(139, 0, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(139, 0, 0, 0);
    }
}

@keyframes floatUpDown {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes rotateChevron {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes shakeClick {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-2px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(2px);
    }
}

@keyframes scaleIn {
    0% {
        opacity: 0;
        transform: scale(0.3) rotate(180deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.1) rotate(0deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes waveEffect {
    0% {
        box-shadow: 0 0 0 0 rgba(139, 0, 0, 0.6);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(139, 0, 0, 0.3);
    }
    100% {
        box-shadow: 0 0 0 20px rgba(139, 0, 0, 0);
    }
}

@keyframes gentleGlow {
    0%, 100% {
        filter: brightness(1);
        box-shadow: 0 4px 15px rgba(139, 0, 0, 0.3);
    }
    50% {
        filter: brightness(1.2);
        box-shadow: 0 6px 20px rgba(139, 0, 0, 0.5);
    }
}

@keyframes bounceGentle {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

.back-to-top.animate-bounce-in {
    animation: bounceInUp 0.6s ease-out;
}

.back-to-top.animate-pulse-glow {
    animation: pulseGlow 2s infinite;
}

.back-to-top.animate-float {
    animation: floatUpDown 3s ease-in-out infinite;
}

.back-to-top.animate-rotate {
    animation: rotateChevron 0.8s ease-out;
}

.back-to-top.animate-shake {
    animation: shakeClick 0.5s ease-in-out;
}

.back-to-top.animate-scale-in {
    animation: scaleIn 0.5s ease-out;
}

.back-to-top.animate-wave {
    animation: waveEffect 2s ease-out;
}

.back-to-top.animate-glow {
    animation: gentleGlow 2s ease-in-out infinite;
}

.back-to-top.animate-bounce-gentle {
    animation: bounceGentle 2s infinite;
}

.back-to-top.animate-complex {
    animation: 
        bounceInUp 0.6s ease-out,
        floatUpDown 3s ease-in-out 0.6s infinite,
        gentleGlow 2s ease-in-out 0.6s infinite;
}

.back-to-top .fa-chevron-up {
    transition: transform 0.3s ease;
}

.back-to-top:hover .fa-chevron-up {
    transform: translateY(-3px);
}

.back-to-top:active .fa-chevron-up {
    transform: translateY(1px);
}

.back-to-top.hover-glow:hover {
    animation: pulseGlow 1s ease-in-out;
}

.back-to-top.hover-bounce:hover {
    animation: bounceGentle 0.5s ease-in-out;
}

@keyframes fadeOutDown {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(20px);
    }
}

.back-to-top.animate-fade-out {
    animation: fadeOutDown 0.3s ease-in forwards;
}